Skip to content

Instantly share code, notes, and snippets.

@danintel
Last active October 24, 2018 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danintel/0f878141c60bb566237e8db11226aa4e to your computer and use it in GitHub Desktop.
Save danintel/0f878141c60bb566237e8db11226aa4e to your computer and use it in GitHub Desktop.
<!-- wget http://localhost:8008/receipts?id=50c090ffd3f0529b406b1896084a445c4fdb08a06ce1dc0d56a2b2b16d41a74745975b679843f84fb7659915567870018eaadb2eff3b84795fc3b7ca29e58a2a
REST-API is documented at https://sawtooth.hyperledger.org/docs/core/releases/latest/rest_api.htm -->
{
"data": [
{
"data": [],
"events": [],
"id": "50c090ffd3f0529b406b1896084a445c4fdb08a06ce1dc0d56a2b2b16d41a74745
975b679843f84fb7659915567870018eaadb2eff3b84795fc3b7ca29e58a2a",
"state_changes": [
{
"address": "a4d2195bef15a7ff5752dd2355f9b69ab3201f3abeb9acb884214fd7f
0a900539a9797",
"type": "SET",
"value": "MTA="
}
]
}
],
"link": "http://localhost:8008/receipts?id=50c090ffd3f0529b406b1896084a445c4f
db08a06ce1dc0d56a2b2b16d41a74745975b679843f84fb7659915567870018eaadb2eff3b84795
fc3b7ca29e58a2a"
@danintel
Copy link
Author

danintel commented Oct 24, 2018

Hyperledger Sawtooth transaction receipt example, using the REST API /receipts?id= interface

The value "MTA=" is base64 encoded for "10", which is the new value of the state at state address a4d219....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment