Skip to content

Instantly share code, notes, and snippets.

@yuma300
Created September 22, 2021 13:37
Show Gist options
  • Save yuma300/c8252c2e9e27e63a8c56963eb0753597 to your computer and use it in GitHub Desktop.
Save yuma300/c8252c2e9e27e63a8c56963eb0753597 to your computer and use it in GitHub Desktop.
cosmos_sample_transaction
{
"header": {
"id": 5755050,
"chain_id": "cosmoshub-4",
"block_id": 11153513,
"timestamp": "2021-09-22T09:59:30Z"
},
"data": {
"height": "7751504",
"txhash": "5D1179B77E16EA9945F12C27BF8EE2CDA90337451B78939FDD8AC189CA0036E5",
"codespace": "",
"code": 0,
"data": "0A060A0473656E64",
"raw_log": "[{\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"send\"},{\"key\":\"sender\",\"value\":\"cosmos1xxkueklal9vejv9unqu80w9vptyepfa95pd53u\"},{\"key\":\"module\",\"value\":\"bank\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"cosmos1hhskdz23phl0swflv2yvx78wl7dlsdg0y32h8a\"},{\"key\":\"sender\",\"value\":\"cosmos1xxkueklal9vejv9unqu80w9vptyepfa95pd53u\"},{\"key\":\"amount\",\"value\":\"1000000uatom\"}]}]}]",
"logs": [
{
"msg_index": 0,
"log": "",
"events": [
{
"type": "message",
"attributes": [
{
"key": "action",
"value": "send"
},
{
"key": "sender",
"value": "cosmos1xxkueklal9vejv9unqu80w9vptyepfa95pd53u"
},
{
"key": "module",
"value": "bank"
}
]
},
{
"type": "transfer",
"attributes": [
{
"key": "recipient",
"value": "cosmos1hhskdz23phl0swflv2yvx78wl7dlsdg0y32h8a"
},
{
"key": "sender",
"value": "cosmos1xxkueklal9vejv9unqu80w9vptyepfa95pd53u"
},
{
"key": "amount",
"value": "1000000uatom"
}
]
}
]
}
],
"info": "",
"gas_wanted": "119508",
"gas_used": "69567",
"tx": {
"@type": "/cosmos.tx.v1beta1.Tx",
"body": {
"messages": [
{
"@type": "/cosmos.bank.v1beta1.MsgSend",
"from_address": "cosmos1xxkueklal9vejv9unqu80w9vptyepfa95pd53u",
"to_address": "cosmos1hhskdz23phl0swflv2yvx78wl7dlsdg0y32h8a",
"amount": [
{
"denom": "uatom",
"amount": "1000000"
}
]
}
],
"memo": "",
"timeout_height": "0",
"extension_options": [],
"non_critical_extension_options": []
},
"auth_info": {
"signer_infos": [
{
"public_key": {
"@type": "/cosmos.crypto.secp256k1.PubKey",
"key": "AyB84hKBjN2wsmdC2eF1Ppz6l3VxlfSKJpYsTaL4VrrE"
},
"mode_info": {
"single": {
"mode": "SIGN_MODE_DIRECT"
}
},
"sequence": "504359"
}
],
"fee": {
"amount": [
{
"denom": "uatom",
"amount": "2988"
}
],
"gas_limit": "119508",
"payer": "",
"granter": ""
}
},
"signatures": [
"kevFOUNKR+roVFdVYWK4DqlZP4vPZuX6RIw6KQAQ5hw8XsCJUZ9pn+CT/Ei5AXJrJQ/+NdT/+55/ZrH9k7ZCkw=="
]
},
"timestamp": "2021-09-22T09:59:30Z"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment