Thruput TypeScript protocol bindings
    Preparing search index...

    Create an ONC-RPC client for a given program.

    Usage:

    const client = createRpcClient(transport, WalletProgram);
    const ack = await client.call("wallet_submit", request);
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Call a generated RPC method by name.

      The request and response bodies are encoded and decoded with the method codecs from the supplied RpcProgramMeta.

      Type Parameters

      • Req
      • Resp

      Parameters

      • methodName: string
      • request: Req

      Returns Promise<Resp>

    • Close the underlying transport.

      Returns void