📔Account
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 here.
Functions
owner
owner
This function retrieves the owner of the associated NFT.
token
token
This function returns the contract address and token ID of the associated NFT.
state
state
This function retrieves the current state of the account.
supports_interface
supports_interface
This function checks if the account supports the tokenbound interface.
Parameters
Name | Type | Description |
---|---|---|
|
| The interface ID to be checked against. |
Returns
bool
: Returns true
If the interface is supported, otherwise false.
Last updated