Class Sdk

The main class for the SDK

Hierarchy

  • Sdk

Constructors

  • Parameters

    • provider: string | WsProvider

      RPC url or WsProvider instance of circuit

    • circuitSigner: any

      The signer to use for signing transactions

    • exportMode: boolean = false

    Returns Sdk

Properties

circuit: Circuit
client: ApiPromise
exportMode: boolean
gateways: {
    [id: string]: Gateway;
}

Type declaration

nonce: number
provider: WsProvider
signer: any

Methods

  • Initializes ApiPromise instance and loads available gateways via XDNS

    Returns

    ApiPromise instance

    Returns Promise<ApiPromise>

Generated using TypeDoc