Reading asset data to check the current values

To be sure that all demo assets have been created, or to check what the data object of a certain asset contains, we can execute the second HTTP request in the collection. This HTTP request invokes the readAssetData transaction (chaincode function). In our case, the HTTP request retrieves (reads) the data from one of the Vehicle assets (registration number: JN6ND01S3GX194659).

Instead of calling the same REST proxy of Acme Services, we call the REST proxy of one of the other member organizations, such as emergency services, in order to demonstrate that the data is distributed to the other member organizations. The request will call the {{ErsProxyHost}}/bcsgw/rest/v1/transaction/invocation endpoint. ...

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.