Prepares, signs, and sends a user operation for an end user’s Smart Account.
A JWT signed using the developer's own JWT private key (in the case of JWT authentication), or an end user JWT signed by CDP, encoded in base64. This is used for End User Account APIs.
An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.
1 - 128A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.
A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.
The ID of the end user.
^[a-zA-Z0-9-]{1,100}$"e051beeb-7163-4527-a5b6-35e301529ff2"
The address of the EVM Smart Account to execute the user operation from.
^0x[0-9a-fA-F]{40}$The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).
^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"8e03978e-40d5-43e8-bc93-6894a57f9324"
The network the user operation is for.
base-sepolia, base, arbitrum, optimism, zora, polygon, bnb, avalanche, ethereum, ethereum-sepolia "base"
The list of calls to make from the Smart Account.
Whether to use the CDP Paymaster for the user operation.
true
The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the useCdpPaymaster option.
11 - 2048^https?://.*$"https://api.developer.coinbase.com/rpc/v1/base/<token>"
Required when not using delegated signing. The ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header.
^[a-zA-Z0-9-]{1,100}$"e051beeb-7163-4527-a5b6-35e301529ff2"
The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
^0x[0-9a-fA-F]+$"0xdddddddd62617365617070070080218021802180218021802180218021"
The user operation was successfully prepared, signed, and sent.
The network the user operation is for.
base-sepolia, base, arbitrum, optimism, zora, polygon, bnb, avalanche, ethereum, ethereum-sepolia "base"
The hash of the user operation. This is not the transaction hash, as a transaction consists of multiple user operations. The user operation hash is the hash of this particular user operation which gets signed by the owner of the Smart Account.
^0x[0-9a-fA-F]{64}$"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
The list of calls in the user operation.
[
{
"to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"value": "0",
"data": "0xa9059cbb000000000000000000000000fc807d1be4997e5c7b33e4d8d57e60c5b0f02b1a0000000000000000000000000000000000000000000000000000000000000064"
},
{
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"value": "1000000000000000",
"data": "0x"
}
]The status of the user operation.
pending, signed, broadcast, complete, dropped, failed "pending"
The hash of the transaction that included this particular user operation. This gets set after the user operation is broadcasted and the transaction is included in a block.
^0x[0-9a-fA-F]{64}$|^$"0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
The list of receipts associated with the user operation.
[
{
"revert": {
"data": "0x123",
"message": "reason for failure"
},
"blockHash": "0x386544b58930c0ec9e8f3ed09fb4cdb76b9ae0a1a37ddcacebe3925b57978e65",
"blockNumber": 29338819,
"gasUsed": "100000"
}
]