BWS API Docs
Contact UsCreate AccountSign In
  • Welcome!
    • Developer Grants
  • Quick Start
  • Platform Fees
    • Fees Calculator
  • API How Tos
    • API Endpoint
    • Authentication
      • Get your API Key
    • Main API Methods
      • 'call' API Method
      • 'fetch' API Method
    • API Responses
      • Error Status Codes
  • Certificate Of Trust
  • Media Assets
    • BWS Logo
    • Snapshots
      • BWS.IPFS.Upload
  • PLATFORM APIs
    • BWS.IPFS.Upload
      • Solution Overview
      • Operations
    • BWS.Blockchain.Save
      • Solution Overview
      • Operations
    • BWS.Blockchain.Hash
      • Solution Overview
      • Operations
    • BWS.NFT.zK
      • Solution Overview
        • NFT Ownership
        • NFT Data Location
        • Available Networks
      • Operations
        • Create NFT
        • List NFTs
        • Transfer NFT
        • Send NFT by Email
      • NFT Attributes (traits)
  • Marketplace Solutions
    • BWS.Blockchain.Badges
      • Badges User Interface
      • Badges API
        • Issuers
        • Badges
        • Awards (Credentials)
    • BWS.NFT.GameCube
      • NFT Game Overview
      • NFT Game Cube API
        • Calendar
        • Field
        • Cubes
        • Plays (Field-Calendar)
        • Match
        • Prizes
        • Event Types
        • Live Events
    • BWS.ESG.Credits
      • Solution Overview
      • ESG Credits API
        • Taxonomy
        • Translations
        • Currencies
        • Frameworks
        • Projects
        • Issuers
        • Assets
        • Investors
        • Positions
        • Portfolios
        • Impacts
        • Blockchain
        • Users
  • TELEGRAM BOTS
    • X BOT
      • Install
        • How does it work?
      • Commands
        • Monitoring Setup
Powered by GitBook
On this page
  • Insert
  • Request Body
  • Curl Example
  • Select
  • Request Body
  • Method Parameters
  • Curl Example

Was this helpful?

  1. PLATFORM APIs
  2. BWS.Blockchain.Hash

Operations

Use the blockchain as your trusted database.

PreviousSolution OverviewNextBWS.NFT.zK

Last updated 4 months ago

Was this helpful?

Saves data to selected blockchain network you can later retrieve using operation.

POST https://api.bws.ninja/v1/call

Request Body

Name
Type
Value

solution*

string

BWS.Blockchain.Hash

version*

number

1

network*

string

operation*

string

insert

parameters*

JSON

{
    "statusCode": 200,
    "statusMessage": "",
    "info": {
        "jobId": "59d0f46b-0b58-4972-8aca-51d06f69f25e"
    }
}

Parameter
Type
Max. Size
Desciption

key

string

network limits

value

string

network limits

The value to save to the selected blockchain

Curl Example

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "solution": "BWS.Blockchain.Hash",
    "version": 1,
    "network": "matchain",
    "operation": "insert",
    "parameters": {
        "key": "my patient id",
        "value": "my patient data"
    }
}'

POST https://api.bws.ninja/v1/call

Request Body

Name
Type
Description

solution*

string

BWS.Blockchain.Hash

version*

number

1

network*

string

operation*

string

select

parameters*

JSON

{
    "statusCode": 200,
    "statusMessage": "",
    "info": {
        "jobId": "59d0f46b-0b58-4972-8aca-51d06f69f25e"
    }
}

Method Parameters

Parameter
Type
Max. Size
Desciption

key

string

network limits

Curl Example

curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
    "contract": "Ethereum.Database.Mutable",
    "version": 1,
    "network": "matchain",
    "operation": "select",
    "parameters": {
        "key": "my patient id"
    }
}'

check

check

The key for your data. You can use this key to select the data using operation.

This operation is asynchronous. Once executed, check the results using and the providedjobId.

Retrieve previously saved data using operation.

check

check

The hash key you previously used to save data using operation.

This operation is asynchronous. Once executed, check the results using and the providedjobId.

fetch API
fetch API
Insert
select
Method Parameters
Select
insert
Method Parameters
select
Method Parameters
insert
networks
networks