Skip to content

WalletConnectTransportConfig

Defined in: node_modules/@sigilry/dapp/dist/src/transport/walletconnect.d.ts:3

optional chainId: string

Defined in: node_modules/@sigilry/dapp/dist/src/transport/walletconnect.d.ts:7

CAIP-2 chain, e.g. canton:mainnet. Default canton:devnet.


optional ledgerApiAllowedOrigins: string[]

Defined in: node_modules/@sigilry/dapp/dist/src/transport/walletconnect.d.ts:18

Allowlist of origins the wallet-advertised network.ledgerApi may use for DIRECT, bearer-authed reads (e.g. ["https://gateway.example.com"]). The ledgerApi URL comes from the wallet’s canton_status; without an allowlist a malicious/compromised wallet could point the dApp’s authed fetch at an arbitrary origin and exfiltrate the session token (confused-deputy). When set, the ledgerApi origin MUST match one of these or the read is refused. Strongly recommended in production. When unset, only the scheme is enforced (https, or http for localhost).


optional ledgerApiTimeoutMs: number

Defined in: node_modules/@sigilry/dapp/dist/src/transport/walletconnect.d.ts:20

Per-request timeout (ms) for direct ledger-api reads. Default 30000.


metadata: object

Defined in: node_modules/@sigilry/dapp/dist/src/transport/walletconnect.d.ts:27

dApp metadata shown to the user in their wallet at the connection prompt (name, description, url, icon). REQUIRED: the wallet renders this as the dApp’s identity, so it must always be the real dApp — never a generic placeholder the user wouldn’t recognize (a trust/anti-phishing concern).

description: string

icons: string[]

name: string

url: string


optional onEvent: (event, data) => void

Defined in: node_modules/@sigilry/dapp/dist/src/transport/walletconnect.d.ts:40

Forward wallet-originated events (accountsChanged, statusChanged) and session lifecycle (session_delete) to the provider’s emitter. The @sigilry/react connect path wires this into the provider’s emit.

string

unknown

void


optional onUri: (uri) => void

Defined in: node_modules/@sigilry/dapp/dist/src/transport/walletconnect.d.ts:34

Called with the pairing URI so the dApp can render a QR / deep-link.

string

void


projectId: string

Defined in: node_modules/@sigilry/dapp/dist/src/transport/walletconnect.d.ts:5

Reown/WalletConnect Cloud project id.