Documentation Index
Fetch the complete documentation index at: https://docs.moralis.com/llms.txt
Use this file to discover all available pages before exploring further.
Introduction
In this tutorial, you’ll learn how to retrieve internal transactions for any wallet address using the Moralis API. Internal transactions are calls made between smart contracts during a transaction’s execution, including ETH transfers from contracts. These are not visible in standard transaction lists but are important for tracking the complete flow of funds. We’ll use the following Moralis API endpoint:- Get Decoded Transactions - Fetch transactions with internal calls and detailed execution data
Prerequisites
- Node.js v18+ installed
- A Moralis API key (get one free)
Step 1: Set Up Your Project
Create a new directory for your project and initialize it:Step 2: Create the Script
Create a file calledindex.js and add the following code:
YOUR_API_KEY with your actual Moralis API key.
Step 3: Run the Script
Execute the script to fetch the internal transactions:Example Response
Understanding the Response
| Field | Description |
|---|---|
hash | Parent transaction hash |
from_address | Address that initiated the transaction |
to_address | Address the transaction was sent to |
value | ETH value transferred (in wei) |
receipt_status | Transaction status (1 = success, 0 = failed) |
block_timestamp | When the transaction was mined |
internal_transactions | Array of internal calls within this transaction |
internal_transactions.type | Type of internal call (CALL, CREATE, DELEGATECALL, etc.) |
internal_transactions.from | Address initiating the internal call |
internal_transactions.to | Address receiving the internal call |
internal_transactions.value | ETH value transferred internally (in wei) |
Next Steps
- Get Wallet History - Get complete transaction history
- Get Transaction by Hash - Get specific transaction details

