Reputation: 1
If i want to get the data from the XO Family i do
ubuntu@ip-172-31-46-61:~$ curl http://127.0.0.1:8008/state?address=5b7349
{
"data": [
{
"address": "5b73495267768822ee624d48fce15ec5ca79cbd602cb7f4c2157a516556991f22ef8c7",
"data": "YiwtLS0tLS0tLS0sUDEtTkVYVCws"
}
],
"head": "45915c727658ff63ff99a471becfb9f5d98fbd9827c3d31d608326fa369bb66024163807ce2d5d01f652da3ef53f47113af881a6cd766158e084a777c081310c",
"link": "http://127.0.0.1:8008/state?head=45915c727658ff63ff99a471becfb9f5d98fbd9827c3d31d608326fa369bb66024163807ce2d5d01f652da3ef53f47113af881a6cd766158e084a777c081310c&start=5b73495267768822ee624d48fce15ec5ca79cbd602cb7f4c2157a516556991f22ef8c7&limit=100&address=5b7349",
"paging": {
"limit": null,
"start": null
}
This works fine, but if i try to request my own:
ubuntu@ip-172-31-46-61:~$ curl http://127.0.0.1:8008/state?address=769c10
{
"data": [
{
"address": "769c10c1a09d05cf2b232ea60cd2fecf7fd0ac3358dafa7208ef751bc76bd59f98253d",
"data": ""
}
],
"head": "45915c727658ff63ff99a471becfb9f5d98fbd9827c3d31d608326fa369bb66024163807ce2d5d01f652da3ef53f47113af881a6cd766158e084a777c081310c",
"link": "http://127.0.0.1:8008/state?head=45915c727658ff63ff99a471becfb9f5d98fbd9827c3d31d608326fa369bb66024163807ce2d5d01f652da3ef53f47113af881a6cd766158e084a777c081310c&start=769c10c1a09d05cf2b232ea60cd2fecf7fd0ac3358dafa7208ef751bc76bd59f98253d&limit=100&address=769c10",
"paging": {
"limit": null,
"start": null
}
But my Transaction is in the Blockchain :
curl http://127.0.0.1:8008/blocks
"transactions": [
{
"header": {
"batcher_public_key": "023e3dfe1542ae5365c1429f62976f240f40acc792459489e9ad7a1261f96b6505",
"dependencies": [],
"family_name": "dk",
"family_version": "1.0",
"inputs": [
"769c10b4710e7d032d41f6b30dc72b3047b6b4573b0099be52e6d28f5aaa711f00c48d"
],
"nonce": "0xaa4148f543e063dc",
"outputs": [
"769c10b4710e7d032d41f6b30dc72b3047b6b4573b0099be52e6d28f5aaa711f00c48d"
],
"payload_sha512": "430813da0388e5ca52abe3c64e61cb36c7214a3fa0ca40bd2eb9eecca0148e68bd02c7bea821c9832fa40db4ad84ba0412ccff8de11416481d75c58286ab5d37",
"signer_public_key": "023e3dfe1542ae5365c1429f62976f240f40acc792459489e9ad7a1261f96b6505"
},
"header_signature": "227c132f307e580189fde4787c64c185eedab7bba7d14ae5668b1c94769868a80fe7a3aec9298284bd0315ef565adaf90469f39cee900c1137556729f57f38ee",
"payload": "NWZhMTEsY3JlYXRlLDAsYWY1MixhNWYzLGE0ZjU2"
}
]
My payload is listed in the Blockchain. What am I doing wrong?
Upvotes: 0
Views: 109
Reputation: 1307
It seems like your transaction is failing. Just because your payload is in the blockchain does not mean it makes it into the state.
Try running sawtooth state list
to see everything in the current state.
Upvotes: 1