getTokens
The getTokens() method of Nectar instances returns tokens on a blockchain of the given Nectar chain ID.
Usage
import { Nectar } from "@wasd3rplay/nectar-sdk";
const nectar = new Nectar();
const address = "0x6b21C2F07E94d41B26038C01252fc9eE55C2ed8e";
const nectarChainId = "4kjoay9lwrx8wmvn"; // Ethereum Sepolia Testnet
const tokens = await nectar.getTokens(address, nectarChainId);Parameters
address: stringA wallet address.
nectarChainId: stringA chain ID, which is a unique value created by Nectar.
Returns
Token[]Tokens on a blockchain of the given Nectar chain ID.
Last updated