An introduction to adapters and how to use them
Property | Description | Required |
---|---|---|
vmType | A string representing a supported vmType (evm svm bvm suivm ) | ✅ |
getChainId | An async function that returns a chain id | ✅ |
handleSignMessageStep | An async function that given a signature step item and a step generates a signature | ✅ |
handleSendTransactionStep | An async function that given a chain id, a transaction step item and a step returns a transaction hash | ✅ |
handleConfirmTransactionStep | An async function that given a transaction hash, a chain id, an onReplaced function and an onCancelled function returns a promise with either an evm receipt or an svm receipt | ✅ |
address | An async function that returns the currently connected to address, an address that can sign messages and submit transactions | ✅ |
switchChain | An async function that given a chain id switches to that chain, either by prompting the user or automatically switching chains | ✅ |
transport | An optional transport to use when making rpc calls. | ❌ |
getBalance | An optional method to override the default balance fetching logic for selected tokens in the ui kit. | ❌ |
supportsAtomicBatch | An optional async function that takes a chain ID and returns whether the wallet supports EIP-5792’s atomic batch capability. EVM wallets only. | ❌ |
handleBatchTransactionStep | An optional async function that takes a chain ID and an array of transaction step items, returning a call bundle identifier for batch processing. Only available for EVM wallets that support atomic batching. | ❌ |