system_accountNextIndex

Retrieves the next accountIndex as available on the node

Example Request and Result for system_accountNextIndex method

In this section, we provide an illustrative example of a request made to retrieve details contents using the system_accountNextIndex method. Additionally, we present the resulting response containing information about the next accountIndex available on the node.

Parameters

FieldsType

accountid*

string

The example in this section uses a non-existing project id.

Make sure you replace it with your Vara Mainnet endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Retrieves the next accountIndex as available on the node

POST https://vara-mainnet.blastapi.io/<project-id>

Request Body

NameTypeDescription

accountId*

string

kGh8BxQwYcznPHexau4fpNKx3oF27sSG34pcxcy1ahPtfWT53

{
    "jsonrpc": "2.0",
    "result": 425,
    "id": 1
}

Curl Request example

curl --location 'https://vara-mainnet.blastapi.io/<project-id>' \
--header 'Content-Type: application/json' \
--data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "system_accountNextIndex",
    "params":["kGh8BxQwYcznPHexau4fpNKx3oF27sSG34pcxcy1ahPtfWT53"]
}'

Last updated