Skip to main content Link Menu Expand (external link) Document Search Copy Copied

ApproveNftSpending

Model getters

Method name Return type Description Notes
getChain() string The blockchain to work with
Example: ETH
 
getSpender() string The blockchain address of the auction/marketplace smart contract
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
 
getIsErc721() bool Set to “true” if the asset is an NFT; set to “false” is the asset is a Multi Token
Example: true
 
getTokenId() string The ID of the asset (NFT or Multi Token)
Example: 100000
 
getContractAddress() string The blockchain address of the smart contract from which the asset (NFT or Multi Token) was minted
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
 
getFromPrivateKey() string The private key of the blockchain address from which the fee will be deducted
Example: 0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2
 
getNonce() float The nonce to be set to the transaction; if not present, the last known nonce will be used
Example: 1
[optional]
getFee() \Tatum\Model\CustomFee
Example: null
[optional]