Skip to content

Instantly share code, notes, and snippets.

@sirlensalot
Last active October 15, 2020 23:17
Show Gist options
  • Save sirlensalot/f204783ece24e726123266c62e34ac08 to your computer and use it in GitHub Desktop.
Save sirlensalot/f204783ece24e726123266c62e34ac08 to your computer and use it in GitHub Desktop.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"contractAddress": null,
"cumulativeGasUsed": "0xadb611",
"from": "0xa37e46fda154bb2152b1110c46a2287bac8da6e1",
# ---------- Buyer
"gasUsed": "0x318c5",
"logs": [
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
# --------------- wETH
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"data": "0x000000000000000000000000000000000000000000000000016345785d8a0000",
# ----- .1 ETH (100000000000000000 [in wei, 1 ETH is 1000000000000000000])
"logIndex": "0x86",
"removed": false,
"topics": [
"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
# ----------- wETH/ETH swap topic?
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d"
# ----------- Uni Router contract
],
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
},
{
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", # --------------- wETH
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"data": "0x000000000000000000000000000000000000000000000000016345785d8a0000",
# ----- .1 wETH
"logIndex": "0x87",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
# ----------- ddf25 TRANSFER (https://github.com/ethereum/EIPs/issues/1003)
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d",
# ----------- Uni Router
"0x000000000000000000000000b4e16d0168e52d35cacd2c6185b44281ec28c9dc"
# ----------- Uni "USDC 3"
],
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
},
{
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
# ---------------- USD Coin Token
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"data": "0x00000000000000000000000000000000000000000000000000000000023d742c",
# ----- 37581868 (37.581868 USDC)
"logIndex": "0x88",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
# ----------- ddf25 / TRANSFER
"0x000000000000000000000000b4e16d0168e52d35cacd2c6185b44281ec28c9dc",
# ----------- Uni "USDC 3"
"0x0000000000000000000000003041cbd36888becc7bbcbc0045e3b1f144466f5f"
# ---------- UNI USDC-USDT
],
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
},
{
"address": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
# ----------- Uni "USDC 3"
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"data": "0x0000000000000000000000000000000000000000000000000000ffcdb3b4e102000000000000000000000000000000000000000000009e009924e3fe46e3849f",
# -- ?? custom event data
"logIndex": "0x89",
"removed": false,
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
# ---- 1c411 topic, possibly fee/AMM related
],
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
},
{
"address": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
# ----------- "USDC 3"
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016345785d8a000000000000000000000000000000000000000000000000000000000000023d742c0000000000000000000000000000000000000000000000000000000000000000",
# 0, ^^^ .1 ETH, 37581868 USDC, 0
"logIndex": "0x8a",
"removed": false,
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
# ----- d78ad, probably UNI swap event
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d",
# ----------- Uni Router
"0x0000000000000000000000003041cbd36888becc7bbcbc0045e3b1f144466f5f"
# ---------- UNI USDC-USDT
],
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
},
{
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
# ------------------- Tether
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"data": "0x00000000000000000000000000000000000000000000000000000000023bb465",
# --------------- 37467237 (37.467237 Tether)
"logIndex": "0x8b",
"removed": false,
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
# ----------- ddf25 / TRANSFER
"0x0000000000000000000000003041cbd36888becc7bbcbc0045e3b1f144466f5f",
# ---------- UNI USDC-USDT
"0x000000000000000000000000a37e46fda154bb2152b1110c46a2287bac8da6e1"
# ------------------ Buyer
],
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
},
{
"address": "0x3041cbd36888becc7bbcbc0045e3b1f144466f5f",
# ---------- UNI USDC-USDT
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"data": "0x000000000000000000000000000000000000000000000000000006cebb5cbdf4000000000000000000000000000000000000000000000000000006cea2aef37f",
# -- ?? custom event data
"logIndex": "0x8c",
"removed": false,
"topics": [
"0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1"
# ---- 1c411 topic, possibly fee/AMM related
],
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
},
{
"address": "0x3041cbd36888becc7bbcbc0045e3b1f144466f5f",
# ---------- UNI USDC-USDT
"blockHash": "0xdcc2a8a430bca58e16783ab3aa2287ad6c8c3a27cdcf254519d55d03d92d698b",
"blockNumber": "0xa8b5a3",
"data": "0x00000000000000000000000000000000000000000000000000000000023d742c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000023bb465",
# ^^^ 37581868 USDC, 0, 0, 37467237 Tether
"logIndex": "0x8d",
"removed": false,
"topics": [
"0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822",
# ----- d78ad, probably UNI swap event
"0x0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d",
# ----------- Uni Router
"0x000000000000000000000000a37e46fda154bb2152b1110c46a2287bac8da6e1"
# ----------- Buyer
],
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
}
],
"logsBloom": "0x10204000000000000000020080000000000000001002000000010000000000000000000000000000000000000000110002000000080000000000000000000000000000000000000008000008000000600002000000000000000000008000000000000000000000000000000000000000000000000000000000000010000080000000000000000000004000000000000000000001010000080000004000100200000000000000200200000080000000000000000000000000000000000000000000000002000000000000000000000000080000000000001000000000000020000008200000000000000000000000000000000000000000400000000002000000",
"status": "0x1",
"to": "0x7a250d5630b4cf539739df2c5dacb4c659f2488d",
# ----------- Uni Router
"transactionHash": "0x051dd553b8ee2216b58649f2fe5ecf894023505a0be88d7cbe455393e00814ac",
"transactionIndex": "0x74"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment