Function getQueryClient

  • Gets a client used to interact with the Sei chain.

    Returns

    A client object that can be used to query the Sei chain. For an example of how to use this client, refer to getPool.

    Parameters

    • restEndpoint: string

      The endpoint of the RPC node used to interact to the Sei chain.

    Returns Promise<{
        cosmos: {
            auth: {
                v1beta1: LCDQueryClient;
            };
            authz: {
                v1beta1: LCDQueryClient;
            };
            bank: {
                v1beta1: LCDQueryClient;
            };
            distribution: {
                v1beta1: LCDQueryClient;
            };
            gov: {
                v1beta1: LCDQueryClient;
            };
            staking: {
                v1beta1: LCDQueryClient;
            };
            tx: {
                v1beta1: LCDQueryClient;
            };
            upgrade: {
                v1beta1: LCDQueryClient;
            };
        };
        seiprotocol: {
            seichain: {
                dex: LCDQueryClient;
                epoch: LCDQueryClient;
                mint: LCDQueryClient;
                oracle: LCDQueryClient;
                tokenfactory: LCDQueryClient;
            };
        };
    }>

Generated using TypeDoc