ODCinterfacesdataobject-interfaces
INonFungibleTokenOperations
Provides the operations of the NonFungibleTokenDO to interact with non fungible tokens and their associated data
balanceOf
Operation used to get the balance of an account
Parameters
Name | Type | Description |
---|---|---|
account | address | The account address |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The balance of the account |
ownerOf
Operation used to get the owner of a token
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token id |
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The owner of the token |
mint
Operation used to mint new tokens
Parameters
Name | Type | Description |
---|---|---|
to | address | The account address to mint the tokens to |
tokenId | uint256 | The tokenId of tokens to mint |
burn
Operation used to burn tokens
Parameters
Name | Type | Description |
---|---|---|
from | address | The account address to burn the tokens from |
tokenId | uint256 | The tokenId of tokens to burn |
transferFrom
Operation used to transfer tokens
Parameters
Name | Type | Description |
---|---|---|
from | address | The account address to transfer the tokens from |
to | address | The account address to transfer the tokens to |
tokenId | uint256 | The tokenId of tokens to transfer |
batchTransferFromMultipleIds
Operation used to transfer batch of tokens
Parameters
Name | Type | Description |
---|---|---|
from | address | The account address to transfer the tokens from |
to | address | The account address to transfer the tokens to |
tokenIds | uint256[] | The tokenIds of tokens to transfer |
batchTransferFromMultipleTargetsIds
Operation used to transfer batch of tokens
Parameters
Name | Type | Description |
---|---|---|
from | address | The account address to transfer the tokens from |
to | address[] | The accounts addresses to transfer the tokens to |
tokenIds | uint256[] | The tokenIds of tokens to transfer |