State

AllContractState gets all raw store data for a single contract

GEThttps://inj.nownodes.io/cosmwasm/wasm/v1/contract/{address}/state
Path parameters
address*string

address is the address of the contract

Query parameters
Response

A successful response.

Body
modelsarray of Model is a struct that holds a KV pair
paginationobject

pagination defines the pagination in the response.

Request
const response = await fetch('https://inj.nownodes.io/cosmwasm/wasm/v1/contract/{address}/state', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "models": [
    {
      "key": "Ynl0ZXM=",
      "value": "Ynl0ZXM="
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}