A successful response.
const response = await fetch('https://luna.nownodes.io/cosmwasm/wasm/v1/code/{code_id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "code_info": { "code_id": "text", "creator": "text", "data_hash": "Ynl0ZXM=", "instantiate_permission": { "permission": "ACCESS_TYPE_UNSPECIFIED", "addresses": [ "text" ] } }, "data": "Ynl0ZXM=" }
pagination defines the pagination in the response.
const response = await fetch('https://luna.nownodes.io/cosmwasm/wasm/v1/code', { method: 'GET', headers: {}, }); const data = await response.json();
{ "code_infos": [ { "code_id": "text", "creator": "text", "data_hash": "Ynl0ZXM=", "instantiate_permission": { "permission": "ACCESS_TYPE_UNSPECIFIED", "addresses": [ "text" ] } } ], "pagination": { "next_key": "Ynl0ZXM=", "total": "text" } }