Retrieve keys that have a specified prefix, with support for pagination.

Example Request and Result for state_getKeysPaged method

In this section, we provide an illustrative example of a request made to retrieve details contents using the state_getKeysPaged method. Additionally, we present the resulting response containing information about retrieving keys that have a specified prefix.


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!

Retrieve the keys that have a specified prefix.


Request Body

    "jsonrpc": "2.0",
    "result": [
    "id": 1

Curl Request example

curl --location '<project-id>' \
--header 'Content-Type: application/json' \
--data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "state_getKeysPaged",
    "params": {

Last updated