Skip to content

Instantly share code, notes, and snippets.

@rootulp
Created March 24, 2023 16:05
Show Gist options
  • Save rootulp/0f41cb1b1ff73ed40502c3bd38cbc2cf to your computer and use it in GitHub Desktop.
Save rootulp/0f41cb1b1ff73ed40502c3bd38cbc2cf to your computer and use it in GitHub Desktop.
query-tx-hash
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"txs": [
{
"hash": "A97BC12DE1295B20EAAD813D4EE1B08022195FB1B7AC21A8BE6364CFA4FEC9B6",
"height": "46",
"index": 0,
"tx_result": {
"code": 0,
"data": "EioKKC9jZWxlc3RpYS5ibG9iLnYxLk1zZ1BheUZvckJsb2JzUmVzcG9uc2U=",
"log": "[{\"msg_index\":0,\"events\":[{\"type\":\"celestia.blob.v1.EventPayForBlobs\",\"attributes\":[{\"key\":\"blob_sizes\",\"value\":\"[11]\"},{\"key\":\"namespace_ids\",\"value\":\"[\\\"AwMDAwMDAwM=\\\"]\"},{\"key\":\"signer\",\"value\":\"\\\"celestia1vdjkcetnw35kzvtnv9jxvue4dferjutrwpaxkans8y6kkvrkw3kx2aes89ar2drgwakxvvr6xsusqj6htv\\\"\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/celestia.blob.v1.MsgPayForBlobs\"}]}]}]",
"info": "",
"gas_wanted": "210000",
"gas_used": "66376",
"events": [
{
"type": "coin_spent",
"attributes": [
{
"key": "c3BlbmRlcg==",
"value": "Y2VsZXN0aWExc2FkZnM1anI5cWNwemt2cDk1azB2dGxldzA5ejU0aHdsZjB6NDk=",
"index": true
},
{
"key": "YW1vdW50",
"value": "MjEwdXRpYQ==",
"index": true
}
]
},
{
"type": "coin_received",
"attributes": [
{
"key": "cmVjZWl2ZXI=",
"value": "Y2VsZXN0aWExN3hwZnZha20yYW1nOTYyeWxzNmY4NHoza2VsbDhjNWxwbmpzM3M=",
"index": true
},
{
"key": "YW1vdW50",
"value": "MjEwdXRpYQ==",
"index": true
}
]
},
{
"type": "transfer",
"attributes": [
{
"key": "cmVjaXBpZW50",
"value": "Y2VsZXN0aWExN3hwZnZha20yYW1nOTYyeWxzNmY4NHoza2VsbDhjNWxwbmpzM3M=",
"index": true
},
{
"key": "c2VuZGVy",
"value": "Y2VsZXN0aWExc2FkZnM1anI5cWNwemt2cDk1azB2dGxldzA5ejU0aHdsZjB6NDk=",
"index": true
},
{
"key": "YW1vdW50",
"value": "MjEwdXRpYQ==",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "c2VuZGVy",
"value": "Y2VsZXN0aWExc2FkZnM1anI5cWNwemt2cDk1azB2dGxldzA5ejU0aHdsZjB6NDk=",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "ZmVl",
"value": "MjEwdXRpYQ==",
"index": true
},
{
"key": "ZmVlX3BheWVy",
"value": "Y2VsZXN0aWExc2FkZnM1anI5cWNwemt2cDk1azB2dGxldzA5ejU0aHdsZjB6NDk=",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "YWNjX3NlcQ==",
"value": "Y2VsZXN0aWExc2FkZnM1anI5cWNwemt2cDk1azB2dGxldzA5ejU0aHdsZjB6NDkvMQ==",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "c2lnbmF0dXJl",
"value": "MS8rRVV0enhIVVVKRVpmRDVmSXBjc3l2dG1hTHFlL2lQMFpuUTdBMmZQRUZFelFlakt3TFQ5b1VtMzZ0T0g3eTlkS0ViVFB6dDBvTHdNVGt5dEROMFE9PQ==",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "YWN0aW9u",
"value": "L2NlbGVzdGlhLmJsb2IudjEuTXNnUGF5Rm9yQmxvYnM=",
"index": true
}
]
},
{
"type": "celestia.blob.v1.EventPayForBlobs",
"attributes": [
{
"key": "YmxvYl9zaXplcw==",
"value": "WzExXQ==",
"index": true
},
{
"key": "bmFtZXNwYWNlX2lkcw==",
"value": "WyJBd01EQXdNREF3TT0iXQ==",
"index": true
},
{
"key": "c2lnbmVy",
"value": "ImNlbGVzdGlhMXZkamtjZXRudzM1a3p2dG52OWp4dnVlNGRmZXJqdXRyd3BheGthbnM4eTZra3Zya3cza3gyYWVzODlhcjJkcmd3YWt4dnZyNnhzdXNxajZodHYi",
"index": true
}
]
}
],
"codespace": ""
},
"tx": "CrYCCooBCocBCiAvY2VsZXN0aWEuYmxvYi52MS5Nc2dQYXlGb3JCbG9icxJjCi9jZWxlc3RpYTFzYWRmczVqcjlxY3B6a3ZwOTVrMHZ0bGV3MDl6NTRod2xmMHo0ORIIAwMDAwMDAwMaAQsiIEKa862pE5ad+pxwqgjq3aGp/t9sxVR+lhNx/yCVSTSxQgEAEmUKUApGCh8vY29zbW9zLmNyeXB0by5zZWNwMjU2azEuUHViS2V5EiMKIQKb5DnBHspM3SS1/Lf1pf9bKpS2/K1sGQm1ergKPuaVxRIECgIIARgBEhEKCwoEdXRpYRIDMjEwENDoDBpA1/+EUtzxHUUJEZfD5fIpcsyvtmaLqe/iP0ZnQ7A2fPEFEzQejKwLT9oUm36tOH7y9dKEbTPzt0oLwMTkytDN0RIBARoESU5EWA=="
}
],
"total_count": "1"
}
}
# Submit a PFB
celestia-appd tx blob PayForBlobs 0303030303030303 73616d706c6520626c6f62 --from $(celestia-appd keys show validator --keyring-backend test --address) --fees 210utia
# Query by tx.hash
curl "localhost:26657/tx_search?query=\"tx.hash='A97BC12DE1295B20EAAD813D4EE1B08022195FB1B7AC21A8BE6364CFA4FEC9B6'\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment