Class: Tokens

Tokens(options)

Service class for obtaining metadata information about ERC20/NFT tokens.

Constructor

new Tokens(options)

Create an instance of the Tokens service.
Parameters:
Name Type Description
options See CaskSDK configuration.
See:

Methods

currentWalletAddress() → {string}

Get the wallet our current connection represents.
Returns:
Type
string

(async) init(args)

Initialize the tokens service.
Parameters:
Name Type Description
args Object Function arguments
Properties
Name Type Attributes Description
ethersConnection EthersConnection <optional>
EthersConnection instance