Token Bound Accounts
Last updated
Was this helpful?
Was this helpful?
IERC6551Registry("0x_<Registry-Deployment>")
.account(
"0x_<Account-Deployment>",
block.chainid,
"0x_<NFT-Deployment>",
tokenId,
salt
);ExampleERC6551Account("0x_<Account Address>")
.execute(
"0x_<recipient/to address>",
vetBalanceToTransferOr0,
encodedData,
0
)TBA.execute(
// VTHO Address
"0x0000000000000000000000000000456e65726779",
// VET Value to transfer
0,
// Instructions on the recipient
vtho.interface.encodeFunctionData("transfer", [owner, vthoAmount]),
// must be 0 in the example contract
0
)IERC721(tokenContract).ownerOf(tokenId);