wallet_getCallsStatus
Monitor the status and results of bundled wallet calls.
Gets the status of a call bundle.
Request#
_10type Request = {_10 method: 'wallet_getCallsStatus',_10 params: [_10 /** ID of the call bundle. */_10 id: `0x${string}`_10 ]_10}
Response#
_30type Response = {_30 /** Chain ID the calls were submitted to. */_30 chainId: `0x${string}`,_30 /** ID of the call bundle. */_30 id: `0x${string}`,_30 /** Transaction receipts of the calls. */_30 receipts: {_30 /** Block hash. */_30 blockHash: `0x${string}`,_30 /** Block number. */_30 blockNumber: `0x${string}`,_30 /** Gas used by the transaction. */_30 gasUsed: `0x${string}`,_30 /** Logs of the call. */_30 logs: {_30 /** Address of the contract that emitted the log. */_30 address: `0x${string}`,_30 /** Data of the log. */_30 data: `0x${string}`,_30 /** Topics of the log. */_30 topics: `0x${string}`[],_30 }[],_30 /** Status. */_30 status: `0x${string}`,_30 /** Transaction hash. */_30 transactionHash: `0x${string}`,_30 }[],_30 /** Status code. See "Status Codes" below. */_30 status: number_30}
Example#
To make these instructions concrete, we have created a sample cross-app wallet called Rapidfire ID. To interact with it, you can find its SDK in the NPM package directory: @rapidfire/id.
You can check out the GitHub repository for Rapidfire Wallet to learn how to create your own wallet.
_10import RapidfireID from '@rapidfire/id'_10_10const rapidfire = new RapidfireID()_10const provider = rapidfire.getEthereumProvider()_10_10const status = await provider.request({ _10 method: 'wallet_getCallsStatus', _10 params: ['0xdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef'], _10})