Skip to content

Latest commit

 

History

History
215 lines (200 loc) · 7.52 KB

EXAMPLES.md

File metadata and controls

215 lines (200 loc) · 7.52 KB

Examples

You can try these by pasting them into a Burp Repeater's tab

eth_call to Proxy

Raw:

POST /v3/9aa3d95b3bc440fa88ea12eaa4456161 HTTP/1.1
Host: mainnet.infura.io
Content-Length: 145
Accept: application/json
Content-Type: application/json
Connection: close

{
  "method": "eth_call", 
  "params": [
    {
      "data": "0x0f8f8b83000000000000000000000000de3a93028f2283cc28756b3674bd657eafb992f4", 
      "to": "0xf0cc626f04f0149f1f4ad3746b2589d6fa198b45"
    }, 
    "0xdc7623"
  ], 
  "id": 3619680543, 
  "jsonrpc": "2.0"
}

Decoded:

{
  "to": "0xF0cC626f04F0149F1f4ad3746B2589D6FA198B45",
  "function": "spendableBalanceOf(address)",
  "args": {
    "_holder": "0xde3A93028F2283cc28756B3674BD657eaFB992f4"
  },
  "abi": {
    ...
  },
  "proxy_implementation": "0xde3A93028F2283cc28756B3674BD657eaFB992f4"
}

eth_call multicall

Raw:

{
    "method": "eth_call", 
    "params": [
        {
            "data": "0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000005f3b5dfeb7b28cdbd7faba78963ee202a494e2a20000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000418160ddd000000000000000000000000000000000000000000000000000000000000000000000000000000005f3b5dfeb7b28cdbd7faba78963ee202a494e2a20000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000006c5930c71b07b9da314cdc454543fb8bfabed4cb00000000000000000000000000000000000000000000000000000000", 
            "to": "0xeefba1e63905ef1d7acba5a8513c70307c1ce441"
        }, 
        "latest"
    ], 
    "id": 1647941949, 
    "jsonrpc": "2.0"
}

Decoded:

{
  "to": "0xeefBa1e63905eF1D7ACbA5a8513c70307C1cE441",
  "function": "aggregate(tuple[])",
  "args": {
    "calls": [
      [
        "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
        "0x18160ddd"
      ],
      [
        "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
        "0x70a082310000000000000000000000006c5930c71b07b9da314cdc454543fb8bfabed4cb"
      ]
    ]
  },
  "abi": {
    ...
  },
  "decoded_calls": [
    {
      "to": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
      "function": "totalSupply()",
      "args": {}
    },
    {
      "to": "0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2",
      "function": "balanceOf(address)",
      "args": {
        "addr": "0x6C5930C71b07b9DA314cDC454543FB8BFAbeD4cb"
      }
    }
  ]
}

eth_RawTransaction

Raw:

{
    "method": "eth_sendRawTransaction", 
    "params": [
        "0x02f9015b820539808459682f00850df8475800830493e0947a250d5630b4cf539739df2c5dacb4c659f2488d880de0b6b3a7640000b8e47ff36ab500000000000000000000000000000000000000000000009e0950598867d8000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000002105eaa660ff62b14a5e093fc348e13ab63af2e600000000000000000000000000000000000000000000000000000000623b16570000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0fc001a005cfdf9ff11dea2d3e8781cb6ba140ae6e86a0922bfa75938b6f2456f513e24ca057f02b3f7125edb59e22651d503bc296153860e3843f9d495ad21d898c8e20c3"
    ], 
    "id": 4700418092893, 
    "jsonrpc": "2.0"
}

Decoded:

[
  {
    "chain_id": 1337, 
    "data": "0x7ff36ab500000000000000000000000000000000000000000000009e0950598867d8000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000002105eaa660ff62b14a5e093fc348e13ab63af2e600000000000000000000000000000000000000000000000000000000623b16570000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000006b175474e89094c44da98b954eedeac495271d0f", 
    "decoded_function": {
      "abi": {
        ...
      }, 
      "args": {
        "amountOutMin": 2915256698432979992576, 
        "path": [
          "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", 
          "0x6B175474E89094C44Da98b954EedeAC495271d0F"
        ], 
        "to": "0x2105Eaa660ff62b14a5e093fc348e13ab63AF2E6", 
        "deadline": 1648039511
      }, 
      "function": "swapExactETHForTokens(uint256,address[],address,uint256)", 
      "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
    }, 
    "access_list": [], 
    "nonce": 0, 
    "r": 2628844986784880378434698689940765181553490914879903463877191830852582236748, 
    "s": 39775559607776431912363889945449043629789293388076288013264795388376358199491, 
    "max_priority_fee_per_gas": 1500000000, 
    "gas": 300000, 
    "max_fee_per_gas": 60000000000, 
    "from": "0x2105Eaa660ff62b14a5e093fc348e13ab63AF2E6", 
    "y_parity": 1, 
    "to": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", 
    "value": 1000000000000000000
  }
]

eth_call multicall with not all transactions decoded:

Raw:

{
    "method": "eth_call", 
    "params": [
        {
            "data": "0x252dba4200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000180000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000007ea2be2df7ba6e54b1a9c70676f668455e329d29000000000000000000000000000000000000000000000000000000000000000000000000000000007ea2be2df7ba6e54b1a9c70676f668455e329d290000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000418160ddd000000000000000000000000000000000000000000000000000000000000000000000000000000007ea2be2df7ba6e54b1a9c70676f668455e329d290000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002470a082310000000000000000000000006c5930c71b07b9da314cdc454543fb8bfabed4cb00000000000000000000000000000000000000000000000000000000", 
            "to": "0x5ba1e12693dc8f9c48aad8770482f4739beed696"
        }, 
        "latest"
    ], 
    "id": 224, 
    "jsonrpc": "2.0"
}

Decoded:

{
  "to": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696",
  "function": "aggregate(tuple[])",
  "args": {
    "calls": [
      [
        "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "0x70a082310000000000000000000000007ea2be2df7ba6e54b1a9c70676f668455e329d29"
      ],
      [
        "0x7EA2be2df7BA6E54B1A9C70676f668455E329d29",
        "0x18160ddd"
      ],
      [
        "0x7EA2be2df7BA6E54B1A9C70676f668455E329d29",
        "0x70a082310000000000000000000000006c5930c71b07b9da314cdc454543fb8bfabed4cb"
      ]
    ]
  },
  "abi": {
    ...
  },
  "decoded_calls": [
    [
      null,
      {
        "error": "Cannot decode: Could not find any function with matching selector"
      }
    ],
    {
      "to": "0x7EA2be2df7BA6E54B1A9C70676f668455E329d29",
      "function": "totalSupply()",
      "args": {}
    },
    {
      "to": "0x7EA2be2df7BA6E54B1A9C70676f668455E329d29",
      "function": "balanceOf(address)",
      "args": {
        "": "0x6C5930C71b07b9DA314cDC454543FB8BFAbeD4cb"
      }
    }
  ]
}