Blockchain
This section has operations to read from and write to the blockchain
Reads the status from the blockchain for a particular job id
Request Body
Name
Type
Description
Example response
{
"message": "Error reading from the blockchain."
}Operation parameters
Parameter
Type/Format
Required
Description
Example code
curl --location 'https://api.bws.ninja/v1/call' \
--header 'X-Api-Key: API-KEY' \
--header 'Content-Type: application/json' \
--data '{
"solution": "BWS.ESG.Credits",
"operation": "getJobStatusFromBlockchain",
"parameters": {
"job_id": "8707b226-a4ac-4e34-9dde-8c9f233e0a64"
}Writes a framework to the blockchain for a particular reporting year (HTML format)
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Writes a framework to the blockchain for a particular reporting year (JSON format)
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Writes the impacts of a particular investment in a green asset to the blockchain (HTML format)
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Writes the impacts of a particular investment in a green asset to the blockchain (JSON format)
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Returns the framework data as written on the blockchain (HTML format)
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Returns the framework data as written on the blockchain (JSON format)
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Returns the impact data for an investment as written to the blockchain (HTML format)
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Returns the impact data for an investment in a green asset as written to the blockchain (JSON format)
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Returns the blockchain job IDs for a particular framework
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Returns the blockchain job IDs for a particular investor
Request Body
Name
Type
Description
Example responses
Operation parameters
Parameter
Type/Format
Required
Description
Example code
Last updated