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

MintNft

Model getters

Method name Return type Description Notes
getChain() string The blockchain to work with
Example: ETH
 
getTo() string The blockchain address to send the NFT to
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
 
getContractAddress() string The blockchain address of the smart contract to build the NFT on
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
 
getTokenId() string The ID of the NFT
Example: 123
 
getUrl() string The URL pointing to the NFT metadata; for more information, see EIP-721
Example: https://my_token_data.com
 
getFromPrivateKey() string The private key of the blockchain address that will pay the fee for the transaction
Example: 0x05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2
 
getErc20() string The blockchain address of the custom fungible token
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
[optional]
getProvenance() bool Set to “true” if the NFT smart contract is of the provenance type; otherwise, set to “false”.
Example: true
[optional]
getAuthorAddresses() string[] The blockchain addresses where the royalties will be sent every time the minted NFT is transferred; the royalties are paid in a native blockchain currency such as ETH on Ethereum, MATIC on Polygon, and so on
Example: null
[optional]
getCashbackValues() string[] The amounts of the royalties that will be paid to the authors of the minted NFT every time the NFT is transferred; the amount is defined as a fixed amount of the native blockchain currency for cashback smart contracts or as a percentage of the NFT price for provenance smart contracts
Example: null
[optional]
getFixedValues() string[] The fixed amounts of the native blockchain currency to which the cashback royalty amounts will be compared to; if the fixed amount specified in this parameter is greater than the amount of the cashback royalties, this fixed amount will be sent to the NFT authors instead of the cashback royalties
Example: null
[optional]
getNonce() float The nonce to be set to the transaction; if not present, the last known nonce will be used
Example: null
[optional]
getFee() \Tatum\Model\CustomFee
Example: null
[optional]