Paymaster RPC
sponsorUserOperation
Learn how to use the sponsorUserOperation JSON-RPC method.
POST
/
#pm_sponsorUserOperation
Contextualizing sponsorUserOperation
sponsorUserOperation
returns a Paymaster signature to sponsor a given UserOperation, pulling from the USDT balance of the Paymaster. It takes:- UserOperation object.
entrypointAddress
- string.
Query example
JavaScript
Body
application/json
jsonrpc
string
default: 2.0requiredVersion of the JSON-RPC protocol, should be 2.0.
id
integer
default: 0requiredThe request identifier.
method
enum<string>
requiredAPI method being called.
Available options:
pm_sponsorUserOperation
params
object[]
requiredParameters for sponsoring a user operation.
Response
200 - application/json
jsonrpc
string
default: 2.0requiredVersion of the JSON-RPC protocol, should be 2.0.
id
integer
default: 0requiredThe request identifier.
result
object
requiredWas this page helpful?