Sending an insurance claim to the driver at fault

The last HTTP request available in the Postman collection is called "Send insurance claim," and it sends an insurance claim from the claimant to the driver at fault. The request is again very straightforward, as it only contains arguments that reference other assets present in the chaincode state. The sendClaim transaction/chaincode function expects exactly four arguments, including the ID of the accident report, the ID of the insurance policy of the claimant, the ID of the insurance policy of the at-fault driver, and the best repair quote received.

The request to invoke the sendClaim function of the chaincode is as follows:

{  "channel": "insurancechain",  "chaincode": "insurancechain", "method": ...

Get Blockchain across Oracle now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.