Catalyst Blockchain Manager API
For communication between your business application and a chaincode, Catalyst Blockchain Manager provides an API to invoke/query deployed chaincodes and subscribe for chaincode events.
Invoke Endpoint
POST {domain}/api/v1/channels/{channelID}/cc/{chaincodeID}/invoke
Invoke example (Basic Auth):
Query Endpoint
POST {domain}/api/v1/channels/{channelID}/cc/{chaincodeID}/query
Same path and body parameters as Invoke, with one addition:
use_local_peers
Boolean
Set to true to use only peers that belong to your organization
Query example (OpenID):
Subscribe Endpoint
Server-Sent Events (SSE) that allows your client to receive automatic updates from the server via HTTP for a specific chaincode.
GET {domain}/api/v1/channels/{channelID}/cc/{chaincodeID}/subscribe?startFrom={startFromValue}&eventFilter={eventFilterValue}
Subscribe example (OpenID):
Last updated
Was this helpful?