⛏️approveSale
Description
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.
Parameters
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
Response
tokenId
number
The ID of the NFT that was sold
txHash
string
The transaction hash of the sale approval
Example Request and Response
Prerequisites
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:
Request
Here is an example of how to make a approveSale
request using the Nest SDK:
Response
Use Cases
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.
Last updated