The Crosschain module is responsible for handling inbound, outbound and crosstalk requests.

Example

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

const endpoint =  getEndpointsForNetwork(Network.Devnet).grpcEndpoint;
const client = new ChainGrpcCrosschainApi(endpoint);
const response = await client.fetchCrosschainRequests();

Hierarchy

  • default
    • ChainGrpcCrosschainApi

Methods

  • Fetch crosschain ack request confirmation

    Returns

    Parameters

    • sourceChainId: string
    • requestIdentifier: number
    • claimHash: string | Uint8Array
    • orchestrator: string

    Returns Promise<AsObject>

  • Fetch crosschain ack request confirmations

    Returns

    Parameters

    • sourceChainId: string
    • requestIdentifier: number
    • claimHash: string | Uint8Array
    • Optional pageRequestObject: AsObject

    Returns Promise<AsObject>

  • Fetch crosschain request confirmation

    Returns

    Parameters

    • sourceChainId: string
    • requestIdentifier: number
    • claimHash: string | Uint8Array
    • orchestrator: string

    Returns Promise<AsObject>

  • Fetch crosschain request confirmations

    Returns

    Parameters

    • sourceChainId: string
    • requestIdentifier: number
    • claimHash: string | Uint8Array
    • Optional pageRequestObject: AsObject

    Returns Promise<AsObject>

Generated using TypeDoc