Interface IRpcConfig

RPC client configuration options

interface IRpcConfig {
    encoding?: Encoding;
    networkId?: string | NetworkId;
    resolver?: Resolver;
    url?: string;
}

Properties

encoding?: Encoding

RPC encoding: borsh or json (default is borsh)

networkId?: string | NetworkId

Network identifier: mainnet, testnet-10 etc. networkId is required when using a resolver.

resolver?: Resolver

An instance of the Resolver class to use for an automatic public node lookup. If supplying a resolver, the url property is ignored.

url?: string

URL for wRPC node endpoint

Generated using TypeDoc