Skip to content
docs

CctpProviderConfig

Defined in: protocol-swap2-cctp/src/provider.ts:52

optional apiUrl?: string

Defined in: protocol-swap2-cctp/src/provider.ts:55

Circle attestation API base (default https://iris-api.circle.com).


optional enabled?: boolean

Defined in: protocol-swap2-cctp/src/provider.ts:53


optional feeBufferPct?: number

Defined in: protocol-swap2-cctp/src/provider.ts:59

Extra headroom on the published Fast fee, in percent of the fee (default 10). The excess is never charged.


optional fetchImpl?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: protocol-swap2-cctp/src/provider.ts:69

Injectable for tests.

(input, init?): Promise<Response>

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | URL | Request

RequestInit

Promise<Response>


optional mode?: CctpMode

Defined in: protocol-swap2-cctp/src/provider.ts:57

Fast when offered and within the allowance (default), or force one path.


optional quoteTtlMs?: number

Defined in: protocol-swap2-cctp/src/provider.ts:67

Local lifetime of a quote (fees are stable; default 60 s).


optional rpcUrls?: Readonly<Record<string, string>>

Defined in: protocol-swap2-cctp/src/provider.ts:65

JSON-RPC URLs per CAIP-2 chain. Optional, but with them the provider verifies the contracts before the burn and detects the mint on the destination (usedNonces) so the status reaches “completed” by itself.