I have a contract with an ABI and I'm currently interacting with it on ropsten network.
I have this function that ask metamask to sign transaction, it's a smart contract interaction and I transfer a NFT token to another address :
async function transferToken(index) {
let address = document.getElementById("inputTransferAddress").value;
const account = await getCurrentAccount();
const tx = await MyContract.methods.transfertoken(address, index).send({ from: account })
}
}
Metamask ask me to sign the transaction, and data for this smart contract interaction :
GAS FEE 0.000281
etc.
FUNCTION TYPE:Contract Interaction
HEX DATA: 68 BYTES
0x215e2325000000000000000000000000607065f59bdb0cdba95..........000078
Is there away to read up this "hex data" without sending them to metamask ?
I want to do it on a FUTURE transaction, because I want to make a scannable QRCODE with a raw transaction.