# ERC721

## Functions

All ERC721 functions are members of **DefiWalletCoreActor**. The Target should be **Defi Wallet Core Actor**.

### Erc721Balance

Get erc-721 balance, minted token total count of this address

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-f8e25e3a05dcbc58363f1ac497609421b5396035%2Fimage%20(24).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract address
* `Account Address`: account address to fetch balance
* `Balance`: to get balance of this address
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721Name

Get erc-721 name

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-39606e4903ac756a4d2866c29de31c85f3902f3b%2Fimage%20(11)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract address
* `Name`:: get name
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721Symbol

Get erc-721 symbol

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-ddab76d7bf7000e742f7b74e8600f0f28facb697%2Fimage%20(31).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: contract address
* `Symbol`:: get symbol
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721Uri

Get erc-721 uri

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-d388a6e86996a2876f77a5c9c888f95df58d5363%2Fimage%20(13).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract address
* `Token ID`: token id
* `Uri`: get uri
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721GetApproved

Get erc-721 Approved

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-e2dc580daaa62ae8deb5067ab0ef27543dff1674%2Fimage%20(3)%20(2).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract address
* `Token ID`: token id
* `Result`: approved
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721IsApprovedForAll

Get erc-721 IsApprovedForAll

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-76abc20384a229fb9c113840b45daf784e476242%2Fimage%20(4).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract address
* `Erc 721owner`: owner address
* `Erc 721approvedaddress`: approved address
* `Result`: is approved for all
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721Owner

Get erc-721 owner

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-1feb87f65795da1d59d1cf9d45a2147064fb7daf%2Fimage%20(9)%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc 721 contract address
* `Token ID`: token id
* `Ercowner`: get owner
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721TotalSupply

Get erc-721 total suppy

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-53bdec24f5c32b233e14ffde02f6f6ea896b531d%2Fimage%20(17).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc 721 contract address
* `Totalsupply`: total suppy
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721TokenByIndex

Returns a token ID at a given index of all the tokens stored by the contract. Use along with totalSupply to enumerate all tokens.

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-da24b7f415a268aea81f261587d9a06c5c36b070%2Fimage%20(10)%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc 721 contract address
* `Erc 721index`: which index
* `Token`: a token ID at a given index
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721TokenOwnerByIndex

Returns a token ID owned by owner at a given index of its token list. Use along with balanceOf to enumerate all of owner's tokens.

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-fe451367956da7965dcfbffe0f21b451ce67855c%2Fimage%20(8).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc 721 contract address
* `Erc 721owner`: owner
* `Erc 721index`: which index
* `Token` a token ID at a given index
* `Success`: whether succeed or not
* `Output message`: error message, "" if succeed

### Erc721TransferFrom

erc721 Moves `amount` tokens from `from_address` to `to_address` using the allowance mechanism.

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-f87c12795e5a34a80fff0938665ae4fc26a0188d%2Fimage%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract
* `Walletindex`: wallet index which starts from 0
* `From Address`: from address to move
* `To Address`: to address
* `Tokenid`: token id
* `Out`: Erc721TransferFrom callback

### Erc721SafeTransferFrom

Safely transfers `token_id` token from `from_address` to `to_address`.

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-9074847f2d4dd8ae69d422db2529ba643f904554%2Fimage%20(5)%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract
* `Walletindex`: wallet index which starts from 0
* `From Address`: from address to move
* `To Address`: to address
* `Token`id: token id
* `Out`: Erc721SafeTransferFrom callback

### Erc721SafeTransferFromWithData

Safely transfers `token_id` token from `from_address` to `to_address` with `additional_data`.

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-a1a171f908f462256cbc3ff30015d5e5310b0495%2Fimage%20(15).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract
* `Walletindex`: wallet index which starts from 0
* `From Address`: from address to move
* `To Address`: to address
* `Token`id: token id
* `Out`: Erc721SafeTransferFromWithData callback

### Erc721Approve

erc721 Allows `approved_address` to withdraw from your account multiple times, up to the `amount` amount.

<figure><img src="https://1786307500-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqXsIo4b4WtOTfICyOIxa%2Fuploads%2Fgit-blob-e150636dd7d7c85eca8e443dbbe61ce3c052f1ea%2Fimage%20(2)%20(5).png?alt=media" alt=""><figcaption></figcaption></figure>

* `Contract Address`: erc721 contract
* `Walletindex`: wallet index which starts from 0
* `Approved Address`: address to approve
* `Token`id: token id
* `Out`: Erc721Approve callback
