Contract

ContractInfo gets the contract meta data

get
Authorizations
Path parameters
addressstringRequired

address is the address of the contract to query

Responses
200
A successful response.
application/json
get
GET /cosmwasm/wasm/v1/contract/{address} HTTP/1.1
Host: lunc.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "contract_info": {
    "code_id": "text",
    "creator": "text",
    "admin": "text",
    "label": "text",
    "created": {
      "block_height": "text",
      "tx_index": "text"
    },
    "ibc_port_id": "text"
  }
}

ContractHistory gets the contract code history

get
Authorizations
Path parameters
addressstringRequired

address is the address of the contract to query

Query parameters
pagination.keystring · byteOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /cosmwasm/wasm/v1/contract/{address}/history HTTP/1.1
Host: lunc.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "entries": [
    {
      "code_id": "text",
      "updated": {
        "block_height": "text",
        "tx_index": "text"
      },
      "msg": "Ynl0ZXM="
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

RawContractState gets single key from the raw store data of a contract

get
Authorizations
Path parameters
addressstringRequired

address is the address of the contract

query_datastring · byteRequired
Responses
200
A successful response.
application/json
get
GET /cosmwasm/wasm/v1/contract/{address}/raw/{query_data} HTTP/1.1
Host: lunc.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "data": "Ynl0ZXM="
}

SmartContractState get smart query result from the contract

get
Authorizations
Path parameters
addressstringRequired

address is the address of the contract

query_datastring · byteRequired

QueryData contains the query data passed to the contract

Responses
200
A successful response.
application/json
get
GET /cosmwasm/wasm/v1/contract/{address}/smart/{query_data} HTTP/1.1
Host: lunc.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "data": "Ynl0ZXM="
}

AllContractState gets all raw store data for a single contract

get
Authorizations
Path parameters
addressstringRequired

address is the address of the contract

Query parameters
pagination.keystring · byteOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /cosmwasm/wasm/v1/contract/{address}/state HTTP/1.1
Host: lunc.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "models": [
    {
      "key": "Ynl0ZXM=",
      "value": "Ynl0ZXM="
    }
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}

ContractsByCreator gets the contracts by creator

get
Authorizations
Path parameters
creator_addressstringRequired

CreatorAddress is the address of contract creator

Query parameters
pagination.keystring · byteOptional

key is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.

pagination.offsetstring · uint64Optional

offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.

pagination.limitstring · uint64Optional

limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.

pagination.count_totalbooleanOptional

count_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.

pagination.reversebooleanOptional

reverse is set to true if results are to be returned in the descending order.

Since: cosmos-sdk 0.43

Responses
200
A successful response.
application/json
get
GET /cosmwasm/wasm/v1/contracts/creator/{creator_address} HTTP/1.1
Host: lunc.nownodes.io
api-key: YOUR_API_KEY
Accept: */*
{
  "contract_addresses": [
    "text"
  ],
  "pagination": {
    "next_key": "Ynl0ZXM=",
    "total": "text"
  }
}