For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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