# new MarketplaceRealFvr(params)
MarketplaceRealFvr Object
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
contractAddress |
Address
|
Contract Address (If Deployed) |
Methods
# approveERC721use(params) → {TransactionObject}
Approve ERC721 to be put on Sale
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
to |
Address
|
Address To |
approve |
Bool
|
If to Approve |
Success the Tx Object if operation was successful
TransactionObject
# buyERC721(params) → {TransactionObject}
Buy ERC721 from Sale
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
tokenId |
String
|
Token Id |
value |
Integer
|
If Native ETH, value = 0.1 ETH; if ERC20 value is 0 or optional |
Success the Tx Object if operation was successful
TransactionObject
# changeERC20(params) → {TransactionObject}
Change ERC20 Address
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
erc20TokenAddress |
String
|
ERC20TokenAddress |
Success the Tx Object if operation was successful
TransactionObject
# changeERC721(params) → {TransactionObject}
Change ERC20 Address
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
erc721TokenAddress |
String
|
ERC721TokenAddress |
Success the Tx Object if operation was successful
TransactionObject
# deploy(params, options) → {Boolean}
User deploys the contract
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
erc20TokenAddress |
Address
|
Address of the Contract - Optional (Dont insert if you want to use ETH or BNB or the native currency) |
erc721TokenAddress |
Address
|
Address of the Contract |
options |
IContract~TxOptions
|
Success the Tx Object if operation was successful
Boolean
# getAmountofNFTsEverInSale() → {Integer}
Get Amount of ERC721s ever in sale
Amount of NFTs in Sale
Integer
# putERC721OnSale(params) → {TransactionObject}
Put ERC721 on Sale
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
tokenId |
String
|
Token Id |
price |
String
|
Price (Token Amount) |
Success the Tx Object if operation was successful
TransactionObject
# removeERC721FromSale(params) → {TransactionObject}
Remove ERC721 from Sale
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
tokenId |
String
|
Token Id |
Success the Tx Object if operation was successful
TransactionObject
# setFixedFees(params) → {TransactionObject}
Change ERC20 Address
Parameters:
Name | Type | Description |
---|---|---|
params |
Object
|
Parameters |
feeAddress |
String
|
Fee Address |
feePercentage |
String
|
Fee Percentage (1 = 1%) |
Success the Tx Object if operation was successful
TransactionObject