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

GenerateMarketplaceSolana

Model getters

Method name Return type Description Notes
getChain() string Blockchain to work with.
Example: SOL
 
getMarketplaceFee() float The percentage of the amount that an NFT was sold for that will be sent to the marketplace as a fee. To set the fee to 1%, set this parameter to 100; to set 10%, set this parameter to 1000; to set 50%, set this parameter to 5000, and so on.
Example: 150
 
getFrom() string The address that will be the owner of the marketplace
Example: FZAS4mtPvswgVxbpc117SqfNgCDLTCtk5CoeAtt58FWU
 
getTreasuryMint() string Address of a SPL token contract
Example: FZAS4mtPvswgVxbpc117SqfNgCDLTCtk5CoeAtt58FWU
[optional]
getTreasuryWithdrawalDestination() string The address that will be able to withdraw funds from the marketplace treasury account to own address
Example: FZAS4mtPvswgVxbpc117SqfNgCDLTCtk5CoeAtt58FWU
[optional]
getFeeWithdrawalDestination() string The address that will be able to withdraw funds from the marketplace fee account to own address
Example: FZAS4mtPvswgVxbpc117SqfNgCDLTCtk5CoeAtt58FWU
[optional]
getRequiresSignOff() bool Set to “false” if you do not want the marketplace to sign all operations related to the listings and sales; if not set, defaults to “true” (the marketplace must sign all the operations)
Example: true
[optional]
getCanChangeSalePrice() bool Set to “true” to allow the marketplace to change the sale price that the seller intentionally set to 0; if not set, defaults to “false” (the marketplace cannot change the sale price)
Example: true
[optional]
getFromPrivateKey() string The private key of the blockchain address from which the fee will be deducted
Example: zgsAKfjuXrAxEyuYRxbbxPM3rdsPbJPnGreaGMbcdUApJ6wHnCqQnf9b1RNPdeZxsRMkezh4VgXQ7YrbpndGtEv