Skip to content

Latest commit

 

History

History
175 lines (117 loc) · 5.69 KB

File metadata and controls

175 lines (117 loc) · 5.69 KB

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

  • 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

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

Erc721Symbol

Get erc-721 symbol

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

Erc721Uri

Get erc-721 uri

  • 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

  • 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

  • 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

  • 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

  • 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.

  • 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.

  • 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.

  • 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.

  • 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: Erc721SafeTransferFrom callback

Erc721SafeTransferFromWithData

Safely transfers token_id token from from_address to to_address with additional_data.

  • 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: Erc721SafeTransferFromWithData callback

Erc721Approve

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

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