メインコンテンツまでスキップ

Interface: ConnectExternalOptions

Options for UpbondClient.connectExternal().

Properties​

chains?​

optional chains?: number[]

WalletConnect only: extra numeric chain ids to offer the wallet, on top of DEFAULT_WALLETCONNECT_CHAINS (always offered). All chains are optional: the wallet approves the ones it supports, and the session starts on the wallet's current chain — move it with wallet_switchEthereumChain on the session's provider.


connector​

connector: ExternalConnector

'injected' for an EIP-6963 browser-extension wallet; 'walletconnect' for WalletConnect v2 (QR / deep link).


rdns?​

optional rdns?: string

Injected only: the EIP-6963 rdns of the wallet to use. Defaults to 'io.metamask'.


rpcMap?​

optional rpcMap?: Record<number, string>

WalletConnect only: JSON-RPC URL per chain id for read calls; chains left out use WalletConnect's public RPC. URLs stay for the client's lifetime — a later connect can replace a chain's URL but not remove it.