Account
Last updated
Last updated
This component holds the base implementation for a tokenbound account. All functions contained within it is compulsory to maintain compatibility with SNIP-14.
The full contract code of the AccountComponent
can be found .
owner
This function retrieves the owner of the associated NFT.
token
This function returns the contract address and token ID of the associated NFT.
state
This function retrieves the current state of the account.
supports_interface
This function checks if the account supports the tokenbound interface.
felt252
interface_id
The interface ID to be checked against.
bool
: Returns true
If the interface is supported, otherwise false.