Skip to main content
POST
paymasterBalance

Understanding paymasterBalance

  • paymasterBalance returns the USD balance (6 decimals) of the Paymaster associated with your projectId (projectUuid) and serverKey (projectKey). It takes no parameters other than the projectUuid and projectKey for authentication.

Query example

JavaScript

Query Parameters

projectUuid
string
required

UUID of the project.

projectKey
string
required

Key of the project.

Body

application/json

Request to retrieve the balance of the paymaster.

jsonrpc
string
default:2.0
required

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

Example:

"2.0"

id
integer
default:0
required

The request identifier.

Example:

0

method
enum<string>
required

API method being called.

Available options:
pm_paymasterBalance
params
any[]
required

No parameters are needed for this request.

Response

200 - application/json

Successful response with the paymaster balance.

jsonrpc
string
default:2.0
required

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

Example:

"2.0"

id
integer
default:0
required

The request identifier.

Example:

0

result
object
required