Skip to main content
POST
sendUserOperation

Contextualizing sendUserOperation

  • sendUserOperation pushes a signed UserOperation to the network, in this case through the Particle Bundler. It takes:
    • UserOperation object.
    • entrypointAddress - string.

Query example

JSON

Body

application/json

Request to send a user operation.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

chainId
integer
required

The chain ID.

Example:

80001

method
enum<string>
required

API method being called.

Available options:
eth_sendUserOperation
params
(object | string)[]
required

Parameters for sending a user operation.

Response

200 - application/json

Successful response with the result of the user operation.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

chainId
integer
required

The chain ID.

Example:

80001

result
string
required

Transaction hash of the user operation.

Example:

"0xTransactionHash"