Actions19
- Block Actions
- DeFi Actions
- NFT Actions
- Token Actions
- Transaction Actions
- Wallet Actions
Transaction → Get Transaction
AI-generatedOverview
This node interacts with the Moralis Web3 API to retrieve detailed information about a specific blockchain transaction. It is useful for scenarios where users need to fetch transaction details by providing the transaction hash and selecting the blockchain network (chain) such as Ethereum, Polygon, or BSC. For example, developers or analysts can use this node to verify transaction status, inspect transaction metadata, or analyze transaction contents on various supported blockchains.
Use Case Examples
- Fetch details of a transaction on the Ethereum blockchain by providing its transaction hash.
- Retrieve transaction information on Polygon to verify transaction success and view associated metadata.
Properties
| Name | Meaning |
|---|---|
| Chain | The blockchain network to query for the transaction data, e.g., Ethereum, Polygon, BSC. |
| Transaction Hash | The unique hash identifier of the transaction to retrieve. |
| Additional Fields | Optional parameters to customize the response, including limit, cursor for pagination, whether to include metadata, and number format (decimal or hex). |
Output
JSON
json- The detailed transaction data returned from the Moralis API, including transaction fields, metadata, and blockchain-specific information.operation- The operation performed, here it is 'getTransaction'.resource- The resource type, here it is 'transaction'.chain- The blockchain network queried.timestamp- The timestamp when the data was retrieved.
Dependencies
- Moralis Web3 API
- An API key credential for Moralis
Troubleshooting
- Common issues include invalid or missing transaction hash, unsupported chain selection, or API key authentication errors.
- Error messages may indicate 'No data found' if the transaction hash does not exist or is incorrect.
- Ensure the API key is valid and has the necessary permissions to access transaction data.
- Check that the chain parameter matches the blockchain where the transaction was executed.
Links
- Moralis API - Get Transaction - Official Moralis API documentation for retrieving transaction details.