Operations
BWS.NFT.zK API Operations.
This operation is asynchronous (the blockchain network takes a while to confirm transactions). Check the blockchain transaction status and receipt using the fetch API and the providedjobId.
Creates a new NFT.
POST
https://api.bws.ninja/v1/call
Use this operation to create (Mint) a new NFT on a selected blockchain Network.
Request Body
solution*
string
BWS.NFT.zK
version*
number
1
network*
string
operation*
string
new
parameters*
JSON
Create NFT Method Parameters
name
string
Name of your NFT.
description
string
The NFT description.
image
URL (or IPFS URI)
This is the URL or IPFS URI of your NFT image.
attributes optional
JSON
These are the attributes of your NFT.
Create NFT Request Example
Create NFT Fetch Response
The fetch operation, once the NFT creation job is completed, will return the following:
guid
string
NFT unique id
network
string
Network the NFT has been created in.
nftTxHash
string
Blockchain transaction hash
nftId
string
NFT id
nftIPFSHash
string
NFT metadata file IPFS hash
nftImageIPFSHash
string
NFT image file IPFS hash
nftJson
json
NFT metadata json
url
json
status
string
The NFT status: "created" or "transferred"
transferCodes
json
NFT Urls
Easy-to-use URLs for you to get access to NFT's most relevant data.
nft
URL
NFT metada URL
image
URL
NFT image URL
transaction
URL
NFT blockchain transaction explorer URL
Transfer Codes
Transfer codes that are required to transfer ownership when sending an NFT through email (check NFT Ownership to learn more).
owner
string
Owner code is required to execute a transfer when sending an NFT over email.
receiver
string
The receiver code the new owner should indicate to execute the NFT transfer.
Lists your NFTs.
POST
https://api.bws.ninja/v1/call
Get the list of your NFTs.
Request Body
solution*
string
BWS.NFT.zK
operation*
string
list
parameters
JSON
If no range is defined, the last 20 NFTs are returned.
from
long
Number of milliseconds representing a timestamp to select NFTs from.
to
long
Number of milliseconds representing a timestamp to select NFTs to.
LIST NFT Request Example
List NFT Response
The list operation returns the list of your NFTs, including NFT-relevant data and the network you created the NFT in.
This operation is asynchronous.
(once executed, check the results using fetch API and the providedjobId)
Transfer an NFT ownership.
POST
https://api.bws.ninja/v1/call
Transfer an NFT ownership by using the new owner's wallet or email address.
Request Body
solution*
string
BWS.NFT.zK
version*
number
1
network*
string
operation*
string
transfer
parameters*
JSON
Transfer NFT Method Parameters
nftId
string
The unique identifier of the NFT to be transferred.
address
string
Transfer NFT Request Example
Transfer NFT Fetch Response
The fetch operation for the NFT transfer API call will mainly state if the transfer has been successful (completed) and the related costs.
Send an NFT by email.
POST
https://api.bws.ninja/v1/call
Send an NFT by using the new owner's email address.
Request Body
solution*
string
BWS.NFT.zK
network*
string
operation*
string
send
parameters*
JSON
Send NFT Method Parameters
nftId
string
The unique identifier of the NFT to be transferred.
string
Send NFT Request Example
Send NFT by Email Response
As a confirmation message response, if the NFT send is confirmed you will get your NFT-related details, including the codes that the new owner will have to use to execute a blockchain NFT transfer.
Last updated