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

BuyAssetOnMarketplaceKMS

Model getters

Method name Return type Description Notes
getChain() string The blockchain to work with
Example: ETH
 
getContractAddress() string The blockchain address of the marketplace smart contract
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
 
getListingId() string The ID of the listing with the asset that you want to buy
Example: null
 
getSignatureId() string The KMS identifier of the private key of the blockchain address from which the fee will be deducted
Example: 26d3883e-4e17-48b3-a0ee-09a3e484ac83
 
getIndex() float (Only if the signature ID is mnemonic-based) The index of the address from which the fee will be deducted that was generated from the mnemonic
Example: null
[optional]
getAmount() string (Only if you pay with the native blockchain currency) The price of the asset that you want to buy plus the marketplace fee. Do not use if you pay with fungible tokens.
Example: 1
[optional]
getErc20Address() string (Only if you pay with the fungible tokens) The blockchain address of the fungible tokens. Do not use if you pay with the native blockchain currency.
Example: 0x687422eEA2cB73B5d3e242bA5456b782919AFc85
[optional]
getBuyer() string (Only if you want to buy the asset on behalf of someone else and this person wants to pay with the fungible tokens; for example, for buying the asset from a custodial wallet address) The blockchain address of the buyer on whose behalf you are buying the asset
The buyer must allow the marketplace smart contract to access their tokens before you make the purchase.
Example: 0x587422eEA2cB73B5d3e242bA5456b782919AFc85
[optional]
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]