Query Client
It's an encapsulation of the BlockChain API
In most cases, you probably don't need to use the Query Client
directly.
getAuthQueryClient
const rpc = await client.queryClient.getAuthQueryClient();
await rpc.Account({
address: '0x0000000000000000000000000000000000000001',
});
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/AccountInfo
getBankQueryClient
const rpc = await client.queryClient.getBankQueryClient();
await rpc.Balance({
address: '0x0000000000000000000000000000000000000001',
denom: 'BNB',
});
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/AccountInfo
getBridgeQueryClient
const rpc = await client.queryClient.getBridgeQueryClient();
await rpc.Params();
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/BridgeParams
getChallengeQueryClient
const rpc = await client.queryClient.getChallengeQueryClient();
await rpc.Params();
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/AttestedChallenge
getCrosschainQueryClient
const rpc = await client.queryClient.getCrosschainQueryClient();
await rpc.Params();
More apis: https://greenfield-chain.bnbchain.org/openapi#/Query/AttestedChallenge
getFeeGrantQueryClient
const rpc = await client.queryClient.getFeeGrantQueryClient();
await rpc.Params();
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/Allowance
getGashubClient
const rpc = await this.queryClient.getGashubClient();
await rpc.MsgGasParams(request);
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/MsgGasParams
getPaymentQueryClient
const rpc = await this.queryClient.getPaymentQueryClient();
await rpc.Params();
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/MsgGasParams
getSpQueryClient
const rpc = await this.queryClient.getSpQueryClient();
await rpc.Params();
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/QueryGlobalSpStorePriceByTime
getStorageQueryClient
const rpc = await client.queryClient.getStorageQueryClient();
await rpc.HeadBucketById({
bucketId: '1',
});
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/QueryGroupMembersExist
getVirtualGroupClient
const rpc = await client.queryClient.getVirtualGroupClient();
await rpc.Params();
More APIs: https://greenfield-chain.bnbchain.org/openapi#/Query/AvailableGlobalVirtualGroupFamilies