Interface RPCInterface

Implement this interface if the built-in RPC class does not fit your needs. The easiest way to do this is by just extending the built-in RPC class

interface RPCInterface {
    rpc_url: string;
    use_pending: boolean;
    call(payload): Promise<Record<string, string>>;
    get_block_count(): Promise<BlockCountRPC>;
}

Implemented by

Properties

rpc_url: string
use_pending: boolean

Methods

  • Parameters

    • payload: Record<string, any>

    Returns Promise<Record<string, string>>