The Multichain module is responsible for persisting the configuration of all supported chains by the Router chain and provides chain configuration related methods.

Example

To use Multichain methods, initialise a ChainGrpcMultiChainApi object to with a gRPC endpoint. An endpoint can be retrieved by using networkEndpoints.

const endpoint =  getEndpointsForNetwork(Network.Devnet).grpcEndpoint;
const bankClient = new ChainGrpcMultiChainApi(endpoint.grpcEndpoint);
const response = await bankClient.fetchAllChainConfig();

Hierarchy

  • default
    • ChainGrpcMultiChainApi

Methods

Generated using TypeDoc