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

SellAssetOnMarketplaceTron

Model getters

Method name Return type Description Notes
getChain() string Blockchain to work with.
Example: TRON
 
getContractAddress() string Address of the marketplace smart contract.
Example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh
 
getNftAddress() string Address of the NFT asset to sell smart contract.
Example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh
 
getSeller() string Address of the seller of the NFT asset.
Example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh
 
getErc20Address() string Optional address of the TRC20 token, which will be used as a selling currency of the NFT.
Example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh
[optional]
getListingId() string ID of the listing. It’s up to the developer to generate unique ID
Example: null
 
getAmount() string Amount of the assets to be sent. For ERC-721 tokens, enter 1.
Example: 1
[optional]
getTokenId() string ID of token, if transaction is for ERC-721 or ERC-1155.
Example: 100000
 
getPrice() string Price of the asset to sell. Marketplace fee will be obtained on top of this price.
Example: 100000
 
getIsErc721() bool True if asset is NFT of type ERC721, false if ERC1155.
Example: true
 
getFromPrivateKey() string Private key of sender address. Private key, or signature Id must be present.
Example: 05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2
 
getFeeLimit() float Fee in TRX to be paid.
Example: 0.01