Web3JS Online
Viem Online
Webhooks, Alerts, and a simple API.
parseTransaction is a function that takes a serialized RLP-encoded transaction as input and returns a parsed transaction object. The function supports a variety of transaction types, including signed and unsigned EIP-1559, EIP-2930, and Legacy Transactions.
The function takes a single parameter, serializedTransaction, which is a hex string representing the serialized transaction data. The function uses RLP (Recursive Length Prefix) decoding to parse the transaction data and return a JavaScript object representing the transaction.
Here's an example of how to use the parseTransaction function:
The returned transaction object has a format similar to the following:
Output will appear here. You can scroll the text if it becomes too long.