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
Name | Type | Description |
---|---|---|
solution* | string | BWS.NFT.zK |
version* | number | 1 |
network* | string | check available networks |
operation* | string | new |
parameters* | JSON | check Method Parameters |
Create NFT Method Parameters
Parameter | Type | Desciption |
---|---|---|
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:
Parameter | Type | Description |
---|---|---|
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 | (check NFT Urls) |
status | string | The NFT status: "created" or "transferred" |
transferCodes | json | (check Transfer Codes) |
NFT Urls
Easy-to-use URLs for you to get access to NFT's most relevant data.
Parameter | Type | Description |
---|---|---|
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).
Parameter | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
solution* | string | BWS.NFT.zK |
operation* | string | list |
parameters | JSON | check Methods Parameters |
If no range is defined, the last 20 NFTs are returned.
Parameter | Type | Desciption |
---|---|---|
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
Name | Type | Description |
---|---|---|
solution* | string | BWS.NFT.zK |
version* | number | 1 |
network* | string | check available networks |
operation* | string | transfer |
parameters* | JSON | check Method Parameters |
Transfer NFT Method Parameters
Parameter | Type | Desciption |
---|---|---|
nftId | string | The unique identifier of the NFT to be transferred. |
address | string | Wallet address to send the NFT to (check NFT Owerneship) |
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
Name | Type | Description |
---|---|---|
solution* | string | BWS.NFT.zK |
network* | string | check available networks |
operation* | string | send |
parameters* | JSON | check Method Parameters |
Send NFT Method Parameters
Parameter | Type | Desciption |
---|---|---|
nftId | string | The unique identifier of the NFT to be transferred. |
string | Email address to send the NFT to (check NFT Owerneship) |
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