πAccount
Last updated
ERC6551Account is a versatile contract designed to interact with multiple token standards (ERC20, ERC721, ERC1155) and execute general transactions.
It features functions for token management and transaction execution, leveraging OpenZeppelin's robust contract libraries.
executeCallExecutes a transaction to a specified address.
to
address
Recipient address of the call.
value
uint256
Amount of ETH to send.
data
bytes
Transaction data.
tokenRetrieves token details associated with the account.
chainId
uint256
Chain ID.
tokenContract
address
Token contract address.
tokenId
uint256
Token ID.
ownerReturns the owner of the token.
address - Owner address.
withdrawERC20Withdraws ERC20 tokens from the contract.
token
address
ERC20 token address.
amount
uint256
Amount to withdraw.
to
address
Recipient address.
withdrawERC1155Withdraws ERC1155 tokens.
token
address
ERC1155 token address.
id
uint256
Token ID.
amount
uint256
Amount to withdraw.
to
address
Recipient address.
withdrawERC721Withdraws an ERC721 token.
token
address
ERC721 token address.
tokenId
uint256
Token ID.
to
address
Recipient address.
Last updated