blockpi_ruBalance

Using any existing key to query the currently RU balance of the account which owns the api key

This method is to use any existing key to check the RU balance of your account, no matter how many keys in the account. The key is the last 40 digits of an private endpoint.

For example, a user created 4 private endpoints and his remaining RU is 99M

https://bsc.blockpi.network/v1/rpc/60794794c00003b35af4e11863311826619a3bcc,

https://polygon-zkevm.blockpi.network/v1/rpc/4e322aee2acbba7229823619efa64afc20706107

https://arbitrum-nova.blockpi.network/v1/rpc/1ee7d16c79ada6621ebd97745fda72f57e593bd8

https://klaytn.blockpi.network/v1/rpc/c338e93b14dc91370070e6c58d3689405ff7b1cb

Using 4e322aee2acbba7229823619efa64afc20706107 or c338e93b14dc91370070e6c58d3689405ff7b1cb as the parameter will give the same response of the 99M remaining RU.

Parameters:

BlockPI API key - any API key that the users already created in their account.

Returns:

QUANTITY - the remaining RU balance of the account.

Example:

// Request
curl  https://api.blockpi.io/openapi/v1/rpc -X POST -H "Content-Type: application/json" 
--data '{
    "jsonrpc": "2.0",
    "method": "blockpi_ruBalance",
    "params": [
        {
            "apiKey": "60794794c00003b35af4e11863311826619a3bcc" 
        }
    ],
    "id": 1
}'

// Result
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "balance": 0
    }
}

Last updated