Actions19
- Block Actions
- DeFi Actions
- NFT Actions
- Token Actions
- Transaction Actions
- Wallet Actions
Transaction → Decode Transaction
AI-generatedOverview
This node operation decodes the data of a blockchain transaction using the Moralis Web3 API. It is useful for developers and analysts who want to understand the details and contents of a specific transaction on various supported blockchains such as Ethereum, Polygon, BSC, and others. For example, it can be used to decode the input data of a transaction to see which smart contract function was called and with what parameters.
Use Case Examples
- Decoding a transaction on Ethereum to analyze the function call and parameters.
- Decoding a transaction on Polygon to verify the details of a token transfer.
Properties
| Name | Meaning |
|---|---|
| Chain | The blockchain network to query, e.g., Ethereum, Polygon, BSC, etc. |
| Transaction Hash | The hash of the transaction to decode, used to identify the specific transaction on the blockchain. |
| Additional Fields | Optional parameters to customize the response, including limit on results, pagination cursor, whether to include metadata, and number format (decimal or hex). |
Output
JSON
operation- The operation performed, here it is 'decodeTransaction'.resource- The resource type, here it is 'transaction'.chain- The blockchain network used for the query.timestamp- The timestamp when the data was retrieved.*- All other properties returned by the Moralis API representing the decoded transaction data.
Dependencies
- Moralis Web3 API
- An API key credential for Moralis API
Troubleshooting
- Common issues include invalid or missing transaction hash, unsupported blockchain network, or API key authentication errors.
- Error messages may indicate 'No data found' if the transaction hash is incorrect or the transaction does not exist on the specified chain.
- API rate limits or network errors may also cause failures; ensure valid API credentials and network connectivity.
Links
- Moralis API - Decode Transaction - Official Moralis documentation for decoding transaction data using the verbose endpoint.