Skip to content

Instantly share code, notes, and snippets.

@luchenqun
Created September 21, 2023 14:24
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 luchenqun/bd512433c16d2d6436338bb89dbf73e4 to your computer and use it in GitHub Desktop.
Save luchenqun/bd512433c16d2d6436338bb89dbf73e4 to your computer and use it in GitHub Desktop.
A transaction contains multiple evm messages
{
"tx":{
"body":{
"messages":[
{
"@type":"/ethermint.evm.v1.MsgEthereumTx",
"data":{
"@type":"/ethermint.evm.v1.LegacyTx",
"nonce":"0",
"gas_price":"50000000000",
"gas":"40000000",
"to":"0x00000Be6819f41400225702D32d3dd23663Dd690",
"value":"1000000000000000000",
"data":null,
"v":"RnM=",
"r":"vkXLWCkP8saZidMC/XAXDnvNDMjONT6fSwc5FKAtscU=",
"s":"LF5qoTFdn3QX7DdxDi5YI0bK9m4g/CmDMYrp162LCTI="
},
"size":0,
"hash":"0x7f05a7957ef5e0a5b8f6e3c578dd4268f65c48fbc92cfa4cff4dc865b4c40b82",
"from":""
},
{
"@type":"/ethermint.evm.v1.MsgEthereumTx",
"data":{
"@type":"/ethermint.evm.v1.LegacyTx",
"nonce":"1",
"gas_price":"50000000000",
"gas":"40000000",
"to":"0x1111102Dd32160B064F2A512CDEf74bFdB6a9F96",
"value":"1000000000000000000",
"data":null,
"v":"RnM=",
"r":"S1HgRplM+5M8S3CpeyfcvMXEl/DxNimUq6/Dv6Ce86E=",
"s":"ELRt3T43F9dC7gRahY6DlJCrzS+sgHV+LacOmSk7J7o="
},
"size":0,
"hash":"0xed78f7e83dd027efc8f8e18f75c35113b48b6f3727f2efd01891bb05ece527ac",
"from":""
},
{
"@type":"/ethermint.evm.v1.MsgEthereumTx",
"data":{
"@type":"/ethermint.evm.v1.LegacyTx",
"nonce":"2",
"gas_price":"50000000000",
"gas":"40000000",
"to":"0x93354845030274cD4bf1686Abd60AB28EC52e1a7",
"value":"1000000000000000000",
"data":null,
"v":"RnM=",
"r":"L8Vdpffm6sqDwOo1XiZbMdLtzx6kHiZ6B5v5owYOhv4=",
"s":"JP4PfhZM7G22czSzGpvsQiduFEYgrwqKpOyuAFbsLd4="
},
"size":0,
"hash":"0xeef3ed4ac044e7a795105875480df3dd6f07c82bd69951e30959b0abfcaac2ad",
"from":""
}
],
"memo":"",
"timeout_height":"0",
"extension_options":[
{
"@type":"/ethermint.evm.v1.ExtensionOptionsEthereumTx"
}
],
"non_critical_extension_options":[
]
},
"auth_info":{
"signer_infos":[
],
"fee":{
"amount":[
{
"denom":"aevmos",
"amount":"6000000000000000000"
}
],
"gas_limit":"120000000",
"payer":"",
"granter":""
},
"tip":null
},
"signatures":[
]
},
"tx_response":{
"height":"6",
"txhash":"90B48EAA5CD16F14FDF232F0AFEDBB28E0343DEC8CCC6946637C119D5318E54C",
"codespace":"sdk",
"code":4,
"data":"",
"raw_log":"failed to execute message; message index: 2: failed to apply transaction: failed to apply ethereum core message: failed to commit stateDB: failed to set account: evmos1jv65s3grqf6v6jl3dp4t6c9t9rk99cd8974jnh is not allowed to receive funds: unauthorized",
"logs":[
],
"info":"",
"gas_wanted":"120000000",
"gas_used":"120000000",
"tx":{
"@type":"/cosmos.tx.v1beta1.Tx",
"body":{
"messages":[
{
"@type":"/ethermint.evm.v1.MsgEthereumTx",
"data":{
"@type":"/ethermint.evm.v1.LegacyTx",
"nonce":"0",
"gas_price":"50000000000",
"gas":"40000000",
"to":"0x00000Be6819f41400225702D32d3dd23663Dd690",
"value":"1000000000000000000",
"data":null,
"v":"RnM=",
"r":"vkXLWCkP8saZidMC/XAXDnvNDMjONT6fSwc5FKAtscU=",
"s":"LF5qoTFdn3QX7DdxDi5YI0bK9m4g/CmDMYrp162LCTI="
},
"size":0,
"hash":"0x7f05a7957ef5e0a5b8f6e3c578dd4268f65c48fbc92cfa4cff4dc865b4c40b82",
"from":""
},
{
"@type":"/ethermint.evm.v1.MsgEthereumTx",
"data":{
"@type":"/ethermint.evm.v1.LegacyTx",
"nonce":"1",
"gas_price":"50000000000",
"gas":"40000000",
"to":"0x1111102Dd32160B064F2A512CDEf74bFdB6a9F96",
"value":"1000000000000000000",
"data":null,
"v":"RnM=",
"r":"S1HgRplM+5M8S3CpeyfcvMXEl/DxNimUq6/Dv6Ce86E=",
"s":"ELRt3T43F9dC7gRahY6DlJCrzS+sgHV+LacOmSk7J7o="
},
"size":0,
"hash":"0xed78f7e83dd027efc8f8e18f75c35113b48b6f3727f2efd01891bb05ece527ac",
"from":""
},
{
"@type":"/ethermint.evm.v1.MsgEthereumTx",
"data":{
"@type":"/ethermint.evm.v1.LegacyTx",
"nonce":"2",
"gas_price":"50000000000",
"gas":"40000000",
"to":"0x93354845030274cD4bf1686Abd60AB28EC52e1a7",
"value":"1000000000000000000",
"data":null,
"v":"RnM=",
"r":"L8Vdpffm6sqDwOo1XiZbMdLtzx6kHiZ6B5v5owYOhv4=",
"s":"JP4PfhZM7G22czSzGpvsQiduFEYgrwqKpOyuAFbsLd4="
},
"size":0,
"hash":"0xeef3ed4ac044e7a795105875480df3dd6f07c82bd69951e30959b0abfcaac2ad",
"from":""
}
],
"memo":"",
"timeout_height":"0",
"extension_options":[
{
"@type":"/ethermint.evm.v1.ExtensionOptionsEthereumTx"
}
],
"non_critical_extension_options":[
]
},
"auth_info":{
"signer_infos":[
],
"fee":{
"amount":[
{
"denom":"aevmos",
"amount":"6000000000000000000"
}
],
"gas_limit":"120000000",
"payer":"",
"granter":""
},
"tip":null
},
"signatures":[
]
},
"timestamp":"2023-09-21T14:16:15Z",
"events":[
{
"type":"coin_spent",
"attributes":[
{
"key":"spender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"coin_received",
"attributes":[
{
"key":"receiver",
"value":"evmos17xpfvakm2amg962yls6f84z3kell8c5ljcjw34",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"transfer",
"attributes":[
{
"key":"recipient",
"value":"evmos17xpfvakm2amg962yls6f84z3kell8c5ljcjw34",
"index":true
},
{
"key":"sender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"message",
"attributes":[
{
"key":"sender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
}
]
},
{
"type":"coin_spent",
"attributes":[
{
"key":"spender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"coin_received",
"attributes":[
{
"key":"receiver",
"value":"evmos17xpfvakm2amg962yls6f84z3kell8c5ljcjw34",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"transfer",
"attributes":[
{
"key":"recipient",
"value":"evmos17xpfvakm2amg962yls6f84z3kell8c5ljcjw34",
"index":true
},
{
"key":"sender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"message",
"attributes":[
{
"key":"sender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
}
]
},
{
"type":"coin_spent",
"attributes":[
{
"key":"spender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"coin_received",
"attributes":[
{
"key":"receiver",
"value":"evmos17xpfvakm2amg962yls6f84z3kell8c5ljcjw34",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"transfer",
"attributes":[
{
"key":"recipient",
"value":"evmos17xpfvakm2amg962yls6f84z3kell8c5ljcjw34",
"index":true
},
{
"key":"sender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
},
{
"key":"amount",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"message",
"attributes":[
{
"key":"sender",
"value":"evmos1w0mjtwu3vvk2wm8n42nemnakmm8f5lrct796f5",
"index":true
}
]
},
{
"type":"tx",
"attributes":[
{
"key":"fee",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"tx",
"attributes":[
{
"key":"fee",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"tx",
"attributes":[
{
"key":"fee",
"value":"2000000000000000000aevmos",
"index":true
}
]
},
{
"type":"ethereum_tx",
"attributes":[
{
"key":"ethereumTxHash",
"value":"0x7f05a7957ef5e0a5b8f6e3c578dd4268f65c48fbc92cfa4cff4dc865b4c40b82",
"index":true
},
{
"key":"txIndex",
"value":"0",
"index":true
}
]
},
{
"type":"ethereum_tx",
"attributes":[
{
"key":"ethereumTxHash",
"value":"0xed78f7e83dd027efc8f8e18f75c35113b48b6f3727f2efd01891bb05ece527ac",
"index":true
},
{
"key":"txIndex",
"value":"1",
"index":true
}
]
},
{
"type":"ethereum_tx",
"attributes":[
{
"key":"ethereumTxHash",
"value":"0xeef3ed4ac044e7a795105875480df3dd6f07c82bd69951e30959b0abfcaac2ad",
"index":true
},
{
"key":"txIndex",
"value":"2",
"index":true
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment