blockreq_walletBalance

Description

Returns your PAYG wallet balance in USD cents, formatted amount, plan, and auto-recharge settings. This method is only available on private endpoints (requires API key).

Parameters

None

Returns

FieldTypeDescription
balanceUsdintegerWallet balance in cents (e.g. 1050 = $10.50)
balanceFormattedstringHuman-readable balance (e.g. "$10.50")
planstringActive plan type
autoRechargeEnabledbooleanWhether auto-recharge is on

Request Example

{ "jsonrpc": "2.0", "method": "blockreq_walletBalance", "params": [], "id": 1 }

Response Example

{ "jsonrpc": "2.0", "id": 1, "result": { "balanceUsd": 1050, "balanceFormatted": "$10.50", "plan": "payg", "autoRechargeEnabled": true } }

Code Examples

curl -X POST https://ethereum-rpc.blockreq.com/v1/rpc/public \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"blockreq_walletBalance","params":[],"id":1}'

Try It