⛏️approveSale
Last updated
Last updated
The approveSale
function facilitates the approval of a sale transaction of a non-fungible token (NFT) on the Casper blockchain.
The function makes use of the CasperClient and CEP47Client libraries to interact with the Casper blockchain and returns the transaction hash for the sale approval.
Parameter | Type | Description |
---|---|---|
Property | Type | Description |
---|---|---|
Before making requests with Nest SDK, you must have it installed.
You can install Nest SDK using either npm
or yarn
. Use the following commands to install Nest SDK:
Here is an example of how to make a approveSale
request using the Nest SDK:
NFT Marketplace: The function can be used by an NFT marketplace to facilitate the sale of NFTs on the Casper blockchain.
Individual NFT Owners: The function can be used by individual NFT owners to approve the sale of their NFTs on the Casper blockchain.
NFT Collectors: The function can be used by NFT collectors to approve the sale of NFTs they wish to acquire on the Casper blockchain.
RPC_API
string
The RPC API URL of the Casper network
privateKey
string
The private key of the user
tokenId
number
The ID of the NFT to be sold
tokenId
number
The ID of the NFT that was sold
txHash
string
The transaction hash of the sale approval