'fetch' API Method
POST https://api.bws.ninja/v1/fetch
Blockchain operations are mostly asynchronous, meaning you request something and need to wait until the response or confirmation is available.
Because of that, you will find most Blockchain Web Services API calls are also asynchronous, meaning you get a jobId
you can use it to fetch the operation status and results.
CODE EXAMPLE
Javascript code example to 'fetch' job status and results.
Fetch
Use this operation to fetch the status and results of a previously called operation.
POST
https://api.bws.ninja/v1/fetch
Request Body
Method Parameters
API RESPONSE EXAMPLE (BWS.NFT.zK)
A response showing a job has correctly been registered.
Blockchain Job Status List
When calling fetch
API endpoint to get a job status, you can get one of the following statuses, representing which status your blockchain process is.
registered
The job has correctly been registered for execution.
calling
The transaction is been called.
running
The transaction is running on Blockchain Network.
transferring
In some scenarios, there is a transfer (e.g. transferring an NFT).
snapshotting
The blockchain transaction has finished, and BWS is creating the Certificate Of Trust (optional).
completed
Call has completed (success).
failed
Call execution has failed.
Last updated