smart

GET

/cosmwasm/wasm/v1/contract/{address}/smart/{query_data}

SmartContractState get smart query result from the contract

Parameters

address*stringpath

address is the address of the contract

query_data*stringpath

format: byte

QueryData contains the query data passed to the contract

Responses

Example Usage

import { getQueryClient } from '@sei-js/cosmjs';

const queryClient = await getQueryClient("YOUR_RPC_URL");
const { eCosmwasmWasmV1SmartContractState } = queryClient.cosmwasm.wasm.v1;

const params: QueryeRequest = { 
	address: "",
	query_data: ""
 };
const response: QueryeResponseSDKType = await eCosmwasmWasmV1SmartContractState(params);