🎞️Querying Token Information

Getting Token Details via Contract

  1. Basic Token InformationGovernance Operations

    const token = await tokenRegistry.getToken(tokenAddress);
  2. With Full Metadata

    const tokenWithMetadata = await tokenRegistry.getToken(tokenAddress, true);
  3. List Tokens by Status

    const [tokens, total] = await tokenRegistry.listTokens(
        offset,  // starting index
        limit,   // number of tokens to return
        TokenStatus.APPROVED  // status to filter by
    );

Last updated