Skip to content

wallet_getCallsStatus

Returns the status of a call batch that was sent via wallet_sendCalls.

Example Usage

provider.request({
  method: 'wallet_getCallsStatus',
  params: ['0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331']
})
{
status: 'CONFIRMED',
receipts: [
{
logs: [
{
address: '0xa922b54716264130634d6ff183747a8ead91a40b',
topics: ['0x5a2a90727cc9d000dd060b1132a5c977c9702bb3a52afe360c9c22f0e9451a68'],
data: '0xabcd'
}
],
status: '0x1',
blockHash: '0xf19bbafd9fd0124ec110b848e8de4ab4f62bf60c189524e54213285e7f540d4a',
blockNumber: '0xabcd',
gasUsed: '0xdef',
transactionHash: '0x9b7bb827c2e5e3c1a0a44dc53e573aa0b3af3bd1f9f5ed03071b100bb039eaff'
}
]
}

Parameters

  • [string]

An array with a single element: a call bundle identifier returned by a wallet_sendCalls call.

Returns

  • status

    • PENDING | CONFIRMED
    • The status of the call bundle.
  • receipts

    • Receipt[]
    • The receipts associated with a call bundle. This could be one receipt if a wallet supports submitting multiple calls as part of a single transaction. The receipts here are a subset of a full transaction receipt and are defined as an object with the following fields:
      • logs
        • Log[]
        • The logs generated by a call (or call bundle if executed atomically). Note that these should only be the logs associated with the call bundle. For example, an ERC-4337 wallet that submits multiple calls as a user operation should respond to this method with logs relevant only to that user operation. It should not include other logs that might have been included in the transaction submitted by a bundler.
      • status
        • 0x1 | 0x0
        • 0x1 for success, 0x0 for failure
      • blockHash
        • Hash
        • Hash of the block where this call (or call bundle if executed atomically) was in.
      • blockNumber
        • Hex
        • Block number where this call (or call bundle if executed atomically) was in.
      • gasUsed
        • Hex
        • The amount of gas used by this call (or call bundle if executed atomically).
      • transactionHash
        • Hash
        • Hash of the transaction this call (or call bundle if executed atomically) was executed in.