Moralis icon

Moralis

Interact with Moralis Web3 APIs for blockchain data, NFTs, tokens, and DeFi

Token → Get Token Transfers

AI-generated

Overview

This node operation fetches the transfer history of a specified token on a selected blockchain. It is useful for tracking token movements, analyzing transaction patterns, or auditing token activity. For example, a user can retrieve recent transfers of an ERC20 token on Ethereum or Polygon to monitor token distribution or detect unusual activity.

Use Case Examples

  1. Retrieve the last 50 transfers of a specific token on the Ethereum blockchain.
  2. Get token transfer history with pagination support using a cursor.
  3. Fetch token transfers with metadata included for detailed information.

Properties

Name Meaning
Chain The blockchain network to query for token transfers, such as Ethereum, Polygon, or BSC.
Token Address The contract address of the token for which transfer history is requested.
Additional Fields Optional parameters to customize the query.

Output

JSON

  • result - Array of token transfer records returned by the API.
  • operation - The operation performed, here 'getTokenTransfers'.
  • resource - The resource type, here 'token'.
  • chain - The blockchain network queried.
  • timestamp - Timestamp when the data was fetched.

Dependencies

  • Moralis Web3 API accessed via an API key credential

Troubleshooting

  • Common issues include invalid or missing token contract address, unsupported blockchain network, or exceeding API rate limits.
  • Errors may occur if the API key is invalid or missing; ensure the Moralis API key credential is correctly configured.
  • Pagination errors can happen if the cursor parameter is incorrect or expired; verify the cursor value when paginating results.

Links

Discussion