Creates a new Resolver client with the given configuration supplied as IResolverConfig interface. If not supplied, the default configuration containing a list of community-operated resolvers will be used.
Optional
args: string[] | IResolverConfigReadonly
urlsList of public Kaspa Resolver URLs.
Connect to a public Kaspa wRPC endpoint for the given encoding and network identifier supplied via IResolverConnect interface.
Fetches a public Kaspa wRPC endpoint for the given encoding and network identifier.
Generated using TypeDoc
Resolver is a client for obtaining public Kaspa wRPC URL.
Resolver queries a list of public Kaspa Resolver URLs using HTTP to fetch wRPC endpoints for the given encoding, network identifier and other parameters. It then provides this information to the RpcClient.
Each time RpcClient disconnects, it will query the resolver to fetch a new wRPC URL.
See
IResolverConfig, IResolverConnect, RpcClient