Function getStargateClient

Gets a @cosmjs/stargate client used to interact with the Sei chain.

With custom registry and amino types

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

...

// Create a client with registry
const signingClient = await getStargateClient(RPC_URL);
  • Parameters

    • rpcEndpoint: string | HttpEndpoint

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

    • Optionaloptions: StargateClientOptions

      A StargateClientOptions object used to configure the stargate client.

    Returns Promise<StargateClient>

    A StargateClient object used to interact with the Sei chain.