Cosmwasm
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/code HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"code_infos": [
{
"code_id": "text",
"creator": "text",
"data_hash": "Ynl0ZXM=",
"instantiate_permission": {
"permission": "ACCESS_TYPE_UNSPECIFIED",
"addresses": [
"text"
]
}
}
],
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/code/{code_id} HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"code_info": {
"code_id": "text",
"creator": "text",
"data_hash": "Ynl0ZXM=",
"instantiate_permission": {
"permission": "ACCESS_TYPE_UNSPECIFIED",
"addresses": [
"text"
]
}
},
"data": "Ynl0ZXM="
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/code/{code_id}/contracts HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"contracts": [
"text"
],
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/codes/params HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"params": {
"code_upload_access": {
"permission": "ACCESS_TYPE_UNSPECIFIED",
"addresses": [
"text"
]
},
"instantiate_default_permission": "ACCESS_TYPE_UNSPECIFIED"
}
}
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/codes/pinned HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"code_ids": [
"text"
],
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}
CodeHash is the hash of the code.
CreatorAddress is the address of the contract instantiator.
Salt is a hex encoded salt.
InitArgs are optional json encoded init args to be used in contract address building if provided.
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/contract/build_address HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"address": "text"
}
address is the address of the contract to query
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/contract/{address} HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"address": "text",
"contract_info": {
"code_id": "text",
"creator": "text",
"admin": "text",
"label": "text",
"created": {
"block_height": "text",
"tx_index": "text"
},
"ibc_port_id": "text",
"extension": {
"type_url": "text",
"value": "Ynl0ZXM="
}
}
}
address is the address of the contract to query
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/contract/{address}/history HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"entries": [
{
"operation": "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",
"code_id": "text",
"updated": {
"block_height": "text",
"tx_index": "text"
},
"msg": "Ynl0ZXM="
}
],
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}
address is the address of the contract
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/contract/{address}/raw/{query_data} HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"data": "Ynl0ZXM="
}
address is the address of the contract
QueryData contains the query data passed to the contract
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/contract/{address}/smart/{query_data} HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"data": "Ynl0ZXM="
}
address is the address of the contract
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/contract/{address}/state HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"models": [
{
"key": "Ynl0ZXM=",
"value": "Ynl0ZXM="
}
],
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}
CreatorAddress is the address of contract creator
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.
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.
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.
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.
reverse is set to true if results are to be returned in the descending order.
Since: cosmos-sdk 0.43
A successful response.
An unexpected error response.
GET /cosmwasm/wasm/v1/contracts/creator/{creator_address} HTTP/1.1
Host: lcd.uno.sentry.testnet.v3.kiivalidator.com
Accept: */*
{
"contract_addresses": [
"text"
],
"pagination": {
"next_key": "Ynl0ZXM=",
"total": "text"
}
}
Last updated
Was this helpful?