Paymaster RPC
paymasterBalance
Learn how to use the paymasterBalance JSON-RPC method.
POST
/
#pm_paymasterBalance
Understanding paymasterBalance
paymasterBalance
returns the USD balance (6 decimals) of the Paymaster associated with yourprojectId
(projectUuid
) andserverKey
(projectKey
). It takes no parameters other than theprojectUuid
andprojectKey
for authentication.
Query example
JavaScript
Query Parameters
projectUuid
string
requiredUUID of the project.
projectKey
string
requiredKey of the project.
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_paymasterBalance
params
any[]
requiredNo parameters are needed for this request.
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?