Documentation Index
Fetch the complete documentation index at: https://thrackle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Git Source
Inherits:
NFTPricingErrors
Author:
@ShaneDuncan602, @oscarsernarosero, @TJ-Everett
This contract is a simple pricing mechanism only. Its main purpose is to store prices.
This interface is used for simplicity in implementation of actual pricing module.
Functions
getNFTPrice
Gets the price for an NFT. It will return the NFT’s specific price, or the
price of the collection if no specific price has been given.
function getNFTPrice(address nftContract, uint256 id) external view returns (uint256 price);
Parameters
| Name | Type | Description |
|---|
nftContract | address | is the address of the NFT contract |
id | uint256 | of the NFT |
Returns
| Name | Type | Description |
|---|
price | uint256 | of the Token in weis of dollars. 10^18 => $ 1.00 USD |
getNFTCollectionPrice
Gets the default price for an NFT collection.
function getNFTCollectionPrice(address nftContract) external view returns (uint256 price);
Parameters
| Name | Type | Description |
|---|
nftContract | address | is the address of the NFT contract |
Returns
| Name | Type | Description |
|---|
price | uint256 | of the Token in weis of dollars. 10^18 => $ 1.00 USD |