ERC721 Non-Fungible Token Standard basic implementation
Developer note: see https://eips.ethereum.org/EIPS/eip-721
constructor(string,string) public
| Name | Type | Description |
|---|---|---|
| name_ | string | |
| symbol_ | string |
balanceOf(address) view public
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |
ownerOf(uint256) view public
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | address |
name() view public
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | string |
symbol() view public
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | string |
tokenURI(uint256) view public
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | string |
baseURI() view public
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | string |
tokenOfOwnerByIndex(address,uint256) view public
| Name | Type | Description |
|---|---|---|
| owner | address | |
| index | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |
totalSupply() view public
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |
tokenByIndex(uint256) view public
| Name | Type | Description |
|---|---|---|
| index | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |
approve(address,uint256) public
| Name | Type | Description |
|---|---|---|
| to | address | |
| tokenId | uint256 |
getApproved(uint256) view public
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | address |
setApprovalForAll(address,bool) public
| Name | Type | Description |
|---|---|---|
| operator | address | |
| approved | bool |
isApprovedForAll(address,address) view public
| Name | Type | Description |
|---|---|---|
| owner | address | |
| operator | address |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | bool |
transferFrom(address,address,uint256) public
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 |
safeTransferFrom(address,address,uint256) public
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 |
safeTransferFrom(address,address,uint256,bytes) public
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 | |
| _data | bytes |
ERC721 Non-Fungible Token Standard basic implementation
Developer note: see https://eips.ethereum.org/EIPS/eip-721
constructor(string,string) public
| Name | Type | Description |
|---|---|---|
| name_ | string | |
| symbol_ | string |
balanceOf(address) view public
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |
ownerOf(uint256) view public
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | address |
name() view public
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | string |
symbol() view public
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | string |
tokenURI(uint256) view public
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | string |
baseURI() view public
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | string |
tokenOfOwnerByIndex(address,uint256) view public
| Name | Type | Description |
|---|---|---|
| owner | address | |
| index | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |
totalSupply() view public
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |
tokenByIndex(uint256) view public
| Name | Type | Description |
|---|---|---|
| index | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | uint256 |
approve(address,uint256) public
| Name | Type | Description |
|---|---|---|
| to | address | |
| tokenId | uint256 |
getApproved(uint256) view public
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | address |
setApprovalForAll(address,bool) public
| Name | Type | Description |
|---|---|---|
| operator | address | |
| approved | bool |
isApprovedForAll(address,address) view public
| Name | Type | Description |
|---|---|---|
| owner | address | |
| operator | address |
Returns:
| Name | Type | Description |
|---|---|---|
| [0] | bool |
transferFrom(address,address,uint256) public
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 |
safeTransferFrom(address,address,uint256) public
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 |
safeTransferFrom(address,address,uint256,bytes) public
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 | |
| _data | bytes |