constructor

The constructor initializes the SDK and sets the RPC endpoint used for network calls.

public constructor(config: Config, decimalFetcher?: DecimalFetcher)
Name
Type
Description

config

config

This includes the rpcURL, the endpoint that data will be acquired through.

decimalFetcher

decimalFetcher (optional)

This optional parameter allows flexibility to get only the decimals of tokens that will be used.

If unspecified, it is automatically generated and will fetch the decimals of all tokens.

Last updated