We're going to use the BWS.Blockchain.Hash solution to save a message to the blockchain.
Write "Hello World!" to Matchain blockchain.
POSThttps://api.bws.ninja/v1/smart-contracts/call
Let's write "Hello World!" to the Matchain blockchain network without managing network fees or Web3 wallets by calling a regular Web2 API.
Request Body
Name
Type
Description
solution*
string
BWS.Blockchain.Hash
version*
number
1
network*
string
matchain
operation*
string
insert
parameters*
JSON
{key: "mykey",
value: "Hello World!"
}
Please copy & Paste one of the following code snippets and run it (remember to use your API Key).
If executed correctly, check forjobId in the response body part. We will use it to verify that the blockchain operation has been completed correctly and to receive the blockchain transaction receipt and Certificate of Trust.
Check for Status
To check for job completion and results, use the jobId you got from the previous call.
Please note that interacting with blockchain(s) is asynchronous, so it may take some time for the operation to finish and for the blockchain receipt to be received.