The number of blocks that have been mined (including the initial block) since this transaction.
Example
const newUri = <NEW_URI>
await marketplaceSdk.setContractURI(newUri, owner)| Field | Type | Description |
| -------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | number | The [EIP-2718](https://eips.ethereum.org/EIPS/eip-2718) type of this transaction. |
| chainId | number | The id of the network. |
| nonce | number | The nonce used as part of the proof-of-work to mine this block |
| maxPriorityFeePerGas | BigNumber | The price (in wei) per unit of gas for this transaction. |
| maxFeePerGas | BigNumber | The maximum price (in wei) per unit of gas this transaction will pay for (the combined [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) block's base fee and this transaction's priority fee). |
| gasPrice | BigNumber | The price (in wei) per unit of gas this transaction will pay. |
| gasLimit | BigNumber | The maximum amount of gas that this block was permitted to use. |
| to | string | The address of the target. |
| value | BigNumber | The amount (in wei) this transaction is sending. |
| data | string | Transaction data. |
| accessList | AccessList | The [AccessList](https://docs.ethers.org/v5/api/providers/types/#providers-AccessList) to include; only available for [EIP-2930](https://eips.ethereum.org/EIPS/eip-2930) and [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) transactions. |
| hash | string | Transaction hash. |
| v | number | Values for the _transaction's_ signature. |
| r | string | Values for the _transaction's_ signature. |
| s | string | Values for the _transaction's_ signature. |
| from | string | The sender address of the transaction. |
| confirmations | number | The number of blocks that have been mined (including the initial block) since this transaction.
updateFees
Modify the information of feeReceiver , listingFeeToken , listingFee and fulfillmentFeeBPS of the marketplace contract
Parameter
Argument
Type
Description
feeReceiver
string
The wallet address of the new feeReceiver
listingFeeToken
string
The new token address of the listing fee
listingFee
string
The new amount of listing fee of marketplace contract
fulfillmentFeeBPS
string
The new amount of the fulfillmenFeeBPS. It must be less than or equal to the bps_denom and maxFulfillmentFeeBPS of the marketplace contract
signer
Signer
An instance to represent the one of the admins' wallet accounts.
Modify the lister whitelist of the marketplaceContract to include or remove wallet addresses from the lister whitelist if listWhitelist of the marketplace contract is true
Parameter
Argument
Type
Description
listers
string[]
List of wallet addresses that will be included or removed from the lister whitelist of the marketplace contract
isEnabled
boolean[]
Array of boolean value that listers[i] will be included in marketplace lister white list if isEnabled[i] is true. Vice versa.
signer
Signer
An instance to represent the one of the admins' wallet accounts.
Modify the nft whitelist of the marketplaceContract to include or remove token addresses from the nft whitelist if nftWhitelist of the marketplace contract is true
Parameter
Argument
Type
Description
nftAddresses
string[]
List of nft contract addresses that will be included or removed from the nft whitelist of the marketplace contract
isEnabled
boolean[]
Array of boolean value that nftAddresses[i] wil be included in marketplace nft white list if isEnabled[i] is true. Vice versa.
signer
Signer
An instance to represent the one of the admins' wallet accounts.
Modify the payment whitelist of the marketplaceContract to include or remove token addresses from the payment whitelist if paymentWhitelist of the marketplace contract is true
Parameter
Argument
Type
Description
paymentAddresses
string[]
List of crypto token addresses that will be included or removed from the payment whitelist of the marketplace contract
isEnabled
boolean[]
Array of boolean value that paymentAddresses[i] wil be included in marketplace payment white list if isEnabled[i] is true. Vice versa.
signer
Signer
An instance to represent the one of the admins' wallet accounts.