Token

The token API Endpoints facilitate the retrieval of detailed token information, checking of token balances, and tracking of token transactions, among other operations. Here are the available token API Endpoints:

/token/metadata

This endpoint retrieves critical metadata about a specified ERC20 token. The metadata include the token's name, its symbol, and decimal details.

Usage:

GET /token/metadata?tokenAddress={tokenAddress}

Where {tokenAddress} is the address of the ERC20 token for which you want to retrieve metadata.

/token/balance

This endpoint queries the token balances for a provided address.

Usage:

GET /token/balance?walletAddress={walletAddress}

Where {walletAddress} is the address of the wallet you want to check the token balances for.

/token/price

Fetches the current market price of a specified token. This endpoint is useful for keeping track of market fluctuations.

Usage:

GET /token/price?tokenAddress={tokenAddress}

Where {tokenAddress} is the address of the token for which you want to get the current price.

/token/transfers

Lists the transfer events related to a specific token. This endpoint is ideal for tracking token transactions and understanding the token's transfer history.

Usage:

GET /token/transfers?walletAddress={walletAddress}

Where {walletAddress} is the address of the wallet for which you want to list token transfer events.

/token/allowances

Retrieves the quantity of a specific token that an owner has allowed another specific address to spend. This endpoint is particularly useful for smart contract interactions that require permission to spend tokens from a user's wallet.

Usage:

GET /token/allowances?walletAddress={walletAddress}

Where {walletAddress} is the address of the spender.