Terra Classic - gRPC Gateway docs
v2.2.0https://lunc.nownodes.ioREST interface for Terra Classic https://github.com/classic-terra/core
Authentication
api-keyAuthapiKeyAPI Key: api-key in header
API reference
Code
Codes gets the metadata for all stored wasm codes
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
pagination.keystring<byte>querykey 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<uint64>queryoffset 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<uint64>querylimit 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_totalbooleanquerycount_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.reversebooleanqueryreverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
Response
A successful response.
An unexpected error response.
Code gets the binary code and metadata for a singe wasm code
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
code_idstring<uint64>requiredpathResponse
A successful response.
An unexpected error response.
ContractsByCode lists all smart contracts for a code id
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
code_idstring<uint64>requiredpathpagination.keystring<byte>querykey 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<uint64>queryoffset 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<uint64>querylimit 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_totalbooleanquerycount_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.reversebooleanqueryreverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
Response
A successful response.
An unexpected error response.
Codes
Params gets the module params
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Response
A successful response.
An unexpected error response.
PinnedCodes gets the pinned code ids
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
pagination.keystring<byte>querykey 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<uint64>queryoffset 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<uint64>querylimit 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_totalbooleanquerycount_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.reversebooleanqueryreverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
Response
A successful response.
An unexpected error response.
Contract
ContractInfo gets the contract meta data
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the address of the contract to query
Response
A successful response.
An unexpected error response.
ContractHistory gets the contract code history
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the address of the contract to query
pagination.keystring<byte>querykey 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<uint64>queryoffset 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<uint64>querylimit 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_totalbooleanquerycount_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.reversebooleanqueryreverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
Response
A successful response.
An unexpected error response.
RawContractState gets single key from the raw store data of a contract
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the address of the contract
query_datastring<byte>requiredpathResponse
A successful response.
An unexpected error response.
SmartContractState get smart query result from the contract
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the address of the contract
query_datastring<byte>requiredpathQueryData contains the query data passed to the contract
Response
A successful response.
An unexpected error response.
AllContractState gets all raw store data for a single contract
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
addressstringrequiredpathaddress is the address of the contract
pagination.keystring<byte>querykey 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<uint64>queryoffset 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<uint64>querylimit 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_totalbooleanquerycount_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.reversebooleanqueryreverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
Response
A successful response.
An unexpected error response.
ContractsByCreator gets the contracts by creator
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Parameters
creator_addressstringrequiredpathCreatorAddress is the address of contract creator
pagination.keystring<byte>querykey 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<uint64>queryoffset 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<uint64>querylimit 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_totalbooleanquerycount_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.reversebooleanqueryreverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
Response
A successful response.
An unexpected error response.