NFT
NFTClient
The NFTClient
provides a suite of functions to perform various operations related to NFTs, such as creating collections and minting tokens
Methods
createCollection
createIPCollection
mintFromCollection
mintFromProtocolCollection
mintIPFromIPCollection
createCollection
The createCollection
function is used to create a standard collection
Method | Type |
---|---|
|
|
Parameters:
Name | Type | Description |
---|---|---|
name | string | The name to associate with the NFT collection. |
symbol | string | The symbol representing the collection. |
Returns:
Name | Type | Description |
---|---|---|
transactionResponse | Object | Contains details of the transaction, including the transactionHash, logs, and other relevant information. |
result | Object | Object containing the contract address of the newly created collection. |
response.result.collectionAddress
- the contract address of the newly created collection.
createIPCollection
Creates an IP collection, which allows the addition of licensing details to the NFTs.
Method | Type |
---|---|
|
|
Parameters:
Name | Type | Description |
---|---|---|
name | string | The name of the IP collection. |
symbol | string | The symbol representing the IP collection. |
mintPrice | number | The mint price for the NFTs in the collection. |
maxSupply | number | The maximum supply of NFTs that can be minted in this collection. |
licensors | [address, address, address] | A list of up to three wallet address representing licensors for the IP collection. Pass zero address (0x0000000000000000000000000000) for empty address |
licenseTermID | number | The ID corresponding to the licensing terms for the IP collection. |
Returns:
Name | Type | Description |
---|---|---|
transactionResponse | Object | Contains details of the transaction, including the transactionHash, logs, and other relevant information. |
result | Object | Object containing the contract address of the newly created collection. |
response.result.collectionAddress
- The contract address of the newly created IP collection.
mintFromCollection
Mints an NFT from an existing standard collection.
Method | Type |
---|---|
|
|
Parameters:
Name | Type | Description |
---|---|---|
collectionAddress | address | The contract address of the NFT collection. |
recipientAddress | string | The wallet address where the newly minted NFT will be sent. |
metadataURI | string | The URI pointing to the metadata associated with the NFT. |
Returns:
Name | Type | Description |
---|---|---|
transactionResponse | Object | Contains details of the transaction, including the transactionHash, logs, and other relevant information. |
result | Object | Object containing the contract address and token id of the newly created collection. |
response.result.collectionAddress
- The contract address of the collection.response.result.tokenId
- The ID of the newly minted NFT.
mintFromProtocolCollection
Mints an NFT from a protocol-based collection.
Method | Type |
---|---|
|
|
Parameters:
Name | Type | Description |
---|---|---|
recipientAddress | string | The wallet address where the newly minted NFT will be sent. |
metadataURI | string | The URI pointing to the metadata associated with the NFT. |
Returns:
Name | Type | Description |
---|---|---|
transactionResponse | Object | Contains details of the transaction, including the transactionHash, logs, and other relevant information. |
result | Object | Object containing the contract address and token id of the newly created collection. |
response.result.collectionAddress
- The contract address of the collection.response.result.tokenId
- The ID of the newly minted NFT.
mintIPFromIPCollection
Mints an NFT from an IP collection, attaching intellectual property (IP) information.
Method | Type |
---|---|
|
|
Parameters:
Name | Type | Description |
---|---|---|
recipientAddress | string | The wallet address where the newly minted NFT will be sent. |
ipID | address | The ID of the IP being associated with the NFT. |
uri | string | The URI pointing to the metadata associated with the NFT. |
Returns:
Name | Type | Description |
---|---|---|
transactionResponse | Object | Contains details of the transaction, including the transactionHash, logs, and other relevant information. |
result | Object | Object containing the contract address, IP id and token id of the newly created collection. |
response.result.collectionAddress
- The contract address of the IP collection.response.result.tokenId
- The ID of the newly minted NFT.response.result.ipID
- The ID of the intellectual property associated with the NFT.
Last updated