Moralis icon

Moralis

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

Wallet → Get Transaction History

AI-generated

Overview

This node interacts with the Moralis Web3 API to retrieve the transaction history of a specified wallet address on a selected blockchain network. It is useful for users who want to track or analyze the transaction activities of a wallet across various supported blockchains such as Ethereum, Polygon, BSC, and others. For example, a user can fetch the latest transactions of their Ethereum wallet to monitor incoming and outgoing transfers.

Use Case Examples

  1. Fetch the last 50 transactions of an Ethereum wallet to analyze spending patterns.
  2. Retrieve transaction history of a Polygon wallet to audit token transfers.

Properties

Name Meaning
Chain The blockchain network to query for the wallet transaction history. Options include Ethereum, Polygon, BSC, Arbitrum, Avalanche, Base, and Optimism.
Wallet Address The wallet address whose transaction history is to be retrieved. This is a required string input.
Additional Fields Optional parameters to customize the query such as limiting the number of results, pagination cursor, including metadata, and number format (decimal or hex).

Output

JSON

  • json - The JSON response from Moralis API containing the transaction history data along with metadata such as operation, resource, chain, and timestamp.

Dependencies

  • Moralis Web3 API accessed via an API key credential

Troubleshooting

  • Common issues include invalid or missing wallet address, unsupported chain selection, or exceeding API rate limits.
  • Errors from the Moralis API such as 'No data found' indicate that no transactions were retrieved for the given wallet and parameters.
  • Ensure the API key credential is correctly configured and has sufficient permissions.

Links

Discussion