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

BuyAssetOnMarketplaceTronKMS

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
 
getFrom() string Address of the recipient of the fee for the trade.
Example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh
 
getBuyer() string In case of the ERC20 listing, it’s possible to buy on behalf of someone else. This value is the address of the buyer, which should approve spending of the ERC20 tokens for the Marketplace contract. This could be used for a buying from the custodial wallet address.
Example: 0x587422eEA2cB73B5d3e242bA5456b782919AFc85
[optional]
getListingId() string ID of the listing. It’s up to the developer to generate unique ID
Example: null
 
getSignatureId() string Identifier of the private key associated in signing application. Private key, or signature Id must be present.
Example: 26d3883e-4e17-48b3-a0ee-09a3e484ac83
 
getIndex() float If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic.
Example: null
[optional]
getErc20Address() string Optional address of the TRC20 token, which will be used as a selling currency of the NFT.
Example: TYMwiDu22V6XG3yk6W9cTVBz48okKLRczh
[optional]
getAmount() string Amount of the assets to be sent. For ERC-721 tokens, enter 1.
Example: 1
[optional]
getFromPrivateKey() string Private key of sender address. Private key, or signature Id must be present.
Example: 05e150c73f1920ec14caa1e0b6aa09940899678051a78542840c2668ce5080c2
[optional]
getFeeLimit() float Fee in TRX to be paid.
Example: 0.01