Skip to main content

parseTransaction


Parse a transaction hash formed with the formTransaction function

Returns all the data within the formed transaction hash
This function needs the person to gather some data from the smart contract to pass to it.

getvaults.md

import { parseTransaction, getVaults } from "@intuweb3/web-exp";
let myVaults = getVaults("0x12345_user_address", provider);
let transactionExample = myVaults[0].txData[1].transactionData;
await parseTransaction(transactionExample);

Arguments:

InputType of InputDescription
txDataStringthe original, unsigned transaction
OutputType of OutputDescription
chainIdstringchainId of transaction
noncestringnonce of transaction
gasTipCapstringgasTipCap of transaction
gasFeeCapstringgasFeeCap of transaction
gasstringgas for transaction
tostringaddress to send to
valuestringamount of value to send
datastringAdditional data associated with the tx