Readonly
wasm
wasm: { getAllContractState: ( ( address: string , paginationKey?: Uint8Array ) => Promise < QueryAllContractStateResponse > ) ; getCode: ( ( id: number ) => Promise < QueryCodeResponse > ) ; getContractCodeHistory: ( ( address: string , paginationKey?: Uint8Array ) => Promise < QueryContractHistoryResponse > ) ; getContractInfo: ( ( address: string ) => Promise < QueryContractInfoResponse > ) ; listCodeInfo: ( ( paginationKey?: Uint8Array ) => Promise < QueryCodesResponse > ) ; listContractsByCodeId: ( ( id: number , paginationKey?: Uint8Array ) => Promise < QueryContractsByCodeResponse > ) ; listContractsByCreator: ( ( creator: string , paginationKey?: Uint8Array ) => Promise < QueryContractsByCreatorResponse > ) ; queryContractRaw: ( ( address: string , key: Uint8Array ) => Promise < QueryRawContractStateResponse > ) ; queryContractSmart: ( ( address: string , query: any ) => Promise < any > ) ; }
Type declaration
Readonly
get All Contract State: ( ( address: string , paginationKey?: Uint8Array ) => Promise < QueryAllContractStateResponse > )
( address: string , paginationKey?: Uint8Array ) : Promise < QueryAllContractStateResponse >
Parameters
address: string
Optional
paginationKey: Uint8Array
Returns Promise < QueryAllContractStateResponse >
Readonly
get Code: ( ( id: number ) => Promise < QueryCodeResponse > )
( id: number ) : Promise < QueryCodeResponse >
Returns Promise < QueryCodeResponse >
Readonly
get Contract Code History: ( ( address: string , paginationKey?: Uint8Array ) => Promise < QueryContractHistoryResponse > )
( address: string , paginationKey?: Uint8Array ) : Promise < QueryContractHistoryResponse >
Parameters
address: string
Optional
paginationKey: Uint8Array
Returns Promise < QueryContractHistoryResponse >
Readonly
get Contract Info: ( ( address: string ) => Promise < QueryContractInfoResponse > )
( address: string ) : Promise < QueryContractInfoResponse >
Returns Promise < QueryContractInfoResponse >
Readonly
list Code Info: ( ( paginationKey?: Uint8Array ) => Promise < QueryCodesResponse > )
( paginationKey?: Uint8Array ) : Promise < QueryCodesResponse >
Parameters
Optional
paginationKey: Uint8Array
Returns Promise < QueryCodesResponse >
Readonly
list Contracts By Code Id: ( ( id: number , paginationKey?: Uint8Array ) => Promise < QueryContractsByCodeResponse > )
( id: number , paginationKey?: Uint8Array ) : Promise < QueryContractsByCodeResponse >
Parameters
id: number
Optional
paginationKey: Uint8Array
Returns Promise < QueryContractsByCodeResponse >
Readonly
list Contracts By Creator: ( ( creator: string , paginationKey?: Uint8Array ) => Promise < QueryContractsByCreatorResponse > )
( creator: string , paginationKey?: Uint8Array ) : Promise < QueryContractsByCreatorResponse >
Parameters
creator: string
Optional
paginationKey: Uint8Array
Returns Promise < QueryContractsByCreatorResponse >
Readonly
query Contract Raw: ( ( address: string , key: Uint8Array ) => Promise < QueryRawContractStateResponse > )
( address: string , key: Uint8Array ) : Promise < QueryRawContractStateResponse >
Parameters
address: string
key: Uint8Array
Returns Promise < QueryRawContractStateResponse >
Readonly
query Contract Smart: ( ( address: string , query: any ) => Promise < any > )
( address: string , query: any ) : Promise < any >
Parameters
address: string
query: any
Returns Promise < any >
Returns all contract state. This is an empty array if no such contract, or contract has no data.