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.
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:
Input | Type of Input | Description |
---|---|---|
txData | String | the original, unsigned transaction |
Output | Type of Output | Description |
---|---|---|
chainId | string | chainId of transaction |
nonce | string | nonce of transaction |
gasTipCap | string | gasTipCap of transaction |
gasFeeCap | string | gasFeeCap of transaction |
gas | string | gas for transaction |
to | string | address to send to |
value | string | amount of value to send |
data | string | Additional data associated with the tx |