> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# Integrating with the Canton Network

> Necessary and optional features for integrating a wallet, hosting a validator, and connecting to a synchronizer.

When integrating with the Canton Network, we recommend that wallet providers support the necessary features outlined below to optimal user experience. Additionally, there are optional features that can further enhance the integration and provide additional value to users.

## Necessary Features

The following features are required for wallet providers to integrate with the Canton Network:

* Support the [CIP-0056 token standard](https://github.com/canton-foundation/cips/blob/main/cip-0056/cip-0056.md) to enable the holding and transferring of assets on the Canton Network. Documentation and guidance on how to implement this with the Wallet SDK is in the Token Standard section of this guide.
* Provide support specifically for Canton Coin and USDCx. The Canton Coin package of Amulet is preinstalled with all validators and USDCx is issued with the Digital Asset Registry and that dars for that application can be found in the DAR Package Versions of the Utilities documentation.
* [Memo tag support](https://docs.canton.network/integrations/wallets-and-exchanges/memo-tags.md) to allow deposits to be sent to exchanges
* [UTXO management](https://docs.canton.network/sdks-tools/sdks/wallet-sdk/guides/preparing-and-signing-a-transaction.md#utxo-management-and-locked-funds) to reduce the number of UTXOs

## Optional Features

While optional for wallet providers, the following features are strongly recommended to ensure full support for the Canton Network and maximize user adoption:

* [Canton Coin pre-approvals](https://docs.canton.network/appdev/modules/m7-canton-coin-preapprovals.md). Documentation on how to implement pre-approvals with the Wallet SDK are in the [two-step transfer vs one-step transfer section of this guide](https://docs.canton.network/sdks-tools/sdks/wallet-sdk/guides/transfer-types.md#two-step-transfer-vs-one-step-transfer).
* dApp support by conforming to [CIP-0103](https://github.com/canton-foundation/cips/blob/main/cip-0103/cip-0103.md), the standard for wallet and dApp integration.
* The requirement to hold and transfer USDCx is included in the Necessary Features section above, however there are additional levels of support for USDCx for wallet providers to support such as supporting xReserves deposits and withdrawals and integrating the xReserve UI into the wallet directly. The options and instructions are laid out in the [USDCx Support for Wallets section of this guide](https://docs.canton.network/integrations/wallets-and-exchanges/usdcx-support.md).
* Pre-approvals for DA Registry issued assets.

## Hosting a Validator

As stated in the [Implications for Wallet Providers section](https://docs.canton.network/integrations/wallets-and-exchanges/canton-network-overview.md#implications-for-wallet-providers), it's important for wallet providers to have a validator to host their users' parties. It's also strongly advised to operate a node in all three network environments so that you can test and verify your applications and integration as the Canton Network evolves.

Links to the node deployment docs are below depending on the deployment choice:

* [Validator onboarding process](https://docs.canton.network/global-synchronizer/deployment/onboarding-process.md)
* [Docker Compose docs](https://docs.canton.network/global-synchronizer/deployment/validator-docker-compose.md)
* [Kubernetes docs](https://docs.canton.network/global-synchronizer/deployment/validator-kubernetes.md)

## Connection parameters

A wallet or dApp that reads and submits transactions on MainNet needs a handful of endpoints, identifiers and credentials. There is no single network-wide list of them, because almost all of them belong to the validator that hosts your users' parties. If you run that validator, you already have them. If a node provider runs it for you, ask the provider for the values in the first list below. The values in the second list you then read from the validator itself, so they don't need to be hardcoded.

The same parameters apply to DevNet and TestNet, with each environment's own validator. The parameters for setting up the validator itself, such as the migration ID and onboarding secret, are in [Required Network Parameters](https://docs.canton.network/global-synchronizer/deployment/required-network-parameters.md).

### From your validator or node provider

* **JSON Ledger API URL**: the base URL of the participant's JSON Ledger API. `curl <json-ledger-api-url>/v2/version` returns the Canton version and enabled features when the URL is right.
* **Authentication**: the OIDC provider's issuer, its discovery URL (usually ending in `/.well-known/openid-configuration`), a client ID and client secret for the client credentials flow, and the audience and scope that the participant expects in tokens. Self-signed tokens are for LocalNet and test setups only. See [OIDC providers](https://docs.canton.network/global-synchronizer/deployment/oidc-providers.md) for how validators are configured.
* **Ledger API user and rights**: the user ID your backend acts as, which is the `sub` claim of its token. The user needs `CanActAs` and `CanReadAs` rights for the parties it submits for, or `CanExecuteAsAnyParty` and `CanReadAsAnyParty` for a wallet backend that serves many parties. Granting rights to a user needs `ParticipantAdmin` rights, or `IdentityProviderAdmin` rights within the same identity provider, so on a hosted validator you may have to ask the provider to do it. See [User management](https://docs.canton.network/sdks-tools/sdks/wallet-sdk/guides/user-management.md).
* **Validator API URL**: the validator app's REST API. In the standard Docker Compose and Kubernetes deployments it is served under `/api/validator` on the validator's host. `curl <validator-api-url>/version` returns the Splice version.

### From the validator, once you have access

* **Synchronizer ID**: the ID of the Global Synchronizer, which looks like `global-domain::1220...`. Read it from `GET /v2/state/connected-synchronizers` on the JSON Ledger API instead of hardcoding it. A validator can be connected to more than one synchronizer. The Global Synchronizer is the entry with the alias `global`.
* **Scan**: reach the Super Validators' Scan data through the validator's [Scan Proxy](https://docs.canton.network/overview/reference/validator-node-components.md#scan-proxy) at `<validator-api-url>/v0/scan-proxy`. The proxy queries several Super Validators' Scan instances and returns the result they agree on, so you don't depend on one Super Validator.
* **Canton Coin registry URL**: Canton Coin's token standard registry is served through Scan, so the Scan Proxy URL is also the registry URL for Canton Coin.
* **Registry URLs for other tokens**: every other token standard asset has its own registry, run by its issuer, and you get its URL from that issuer. For USDCx and other assets issued through the Digital Asset Registry, see [USDCx support](https://docs.canton.network/integrations/wallets-and-exchanges/usdcx-support.md).

If you use the [Wallet Gateway](https://docs.canton.network/integrations/wallet-gateway/operate/networks-and-identity.md), each network in its configuration also has an `id`. You choose that value yourself in [CAIP-2](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md) form, for example `canton:mainnet`, and the network doesn't issue it. To check every value with the Wallet SDK, see [How do I validate my configurations?](https://docs.canton.network/sdks-tools/sdks/wallet-sdk/using-the-sdk/configuration.md#how-do-i-validate-my-configurations).
