Skip to main content
Version: 1.14.0

Type Alias: CantonConfig

CantonConfig = { ccipParty: string; ccvs?: string[]; chainId?: string; defaultSendGasLimit?: number | bigint; edsUrl: string; externalEdsUrlsByOwner?: Record<string, string>; feeTransferFactoryAmount?: string; indexerUrl?: string; jwt?: string | (() => Promise<string>); packages?: Partial<{ ccipReceiver: string; ccipSender: string; perPartyRouter: string; }>; party: string; transferInstructionUrl: string; }

Defined in: chain.ts:230

Configuration for connecting to a Canton Ledger API and fetch CCIP disclosures.

Properties​

ccipParty​

ccipParty: string

Defined in: chain.ts:235

CCIP operator party (CCIPSender signatory / fee recipient on ledger).


ccvs?​

optional ccvs?: string[]

Defined in: chain.ts:303

Optional Canton CCV instance addresses (hex hashes and/or raw instanceId@party). Used for execute (EDS disclosures + receiver matching) and as the default for Canton send senderRequiredCCVs when extraArgs.ccvRawAddresses is omitted. CLI -x ccvRawAddresses=… overrides this list for send.


chainId?​

optional chainId?: string

Defined in: chain.ts:273

Optional CCIP Canton chain ID (e.g. canton:TestNet). When set, skips synchronizer-alias detection — required when the ledger reports a generic alias such as global.


defaultSendGasLimit?​

optional defaultSendGasLimit?: number | bigint

Defined in: chain.ts:289

Default gas limit for Canton → destination sends when message.extraArgs.gasLimit is omitted. ccip-cli --gas-limit and extraArgs.gasLimit override this.


edsUrl​

edsUrl: string

Defined in: chain.ts:250

Base URL for the EDS (Explicit Disclosure Service) API.


externalEdsUrlsByOwner?​

optional externalEdsUrlsByOwner?: Record<string, string>

Defined in: chain.ts:257

Optional mapping from a Canton RawInstanceAddress owner party to that owner's external EDS base URL. When absent, edsUrl is used for both global and external EDS endpoints.


feeTransferFactoryAmount?​

optional feeTransferFactoryAmount?: string

Defined in: chain.ts:295

Transfer-factory preview amount for Canton fee-token payments. Rarely needs changing; defaults to "1.0".


indexerUrl?​

optional indexerUrl?: string

Defined in: chain.ts:266

Optional base URL for a transaction indexer to fetch CCV verifications. Used when --indexer is omitted on ccip-cli (CLI --indexer overrides this).


jwt?​

optional jwt?: string | (() => Promise<string>)

Defined in: chain.ts:247

JSON Web Token for authentication with the Canton Ledger API.

Pass a string for a static (pre-obtained) token, or a () => Promise<string> getter for a refreshable token (e.g. an OAuth2 caching provider). When a getter is supplied, the SDK clients call it per request to obtain a fresh JWT, enabling automatic refresh. The CLI resolves its auth block upfront and injects either a string or a getter here; web/Electron embedders inject their own.


packages?​

optional packages?: Partial<{ ccipReceiver: string; ccipSender: string; perPartyRouter: string; }>

Defined in: chain.ts:279

Optional DAR package names for ACS template filters. Prod testnet bundles PerPartyRouter in ccip-runtime instead of the dev default ccip-perpartyrouter.


party​

party: string

Defined in: chain.ts:232

User ledger party for actAs, ACS queries, and transaction visibility.


transferInstructionUrl​

transferInstructionUrl: string

Defined in: chain.ts:260

Base URL for the Transfer Instruction API.