Transactions

Fetch Ethereum transactions for blocks 17000000 to 17000010.

curl -s --location --request GET \
 "https://app.pangea.foundation/v1/api/transactions?chains=ETH&from_block=17000000&to_block=17000010" \
 --header "Accept: application/jsonstream" \
 --header "Accept-Encoding: gzip" --compressed \
 --header "Authorization: Basic $PANGEA_AUTH" | jq

Response

[
  ...
  {
    "chain": 1,
    "block_number": "0x103664a",
    "block_hash": "0x5bad63a542b4deebf2d8ba93bf83b98a96ac4693640dfc3c2ccec38c3adc2bf2",
    "transaction_index": 253,
    "hash": "0xae76e4d852d8a9d9ebba99787c1ba5859b68bb90a2712cb3e5ce7505a1f8898a",
    "nonce": "0x280",
    "from": "0xe340b00b6b622c136ffa5cff130ec8edcddcb39d",
    "to": "0xb748952c7bc638f31775245964707bcc5ddfabfc",
    "value": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "gas_price": "0x56becd566",
    "gas": "0x169c83",
    "input": "0x3698d492000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd5200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000bcca60bb61934080951369a648fb03df4f96263c00000000000000000000000000000000000000000000000000000000b93ece4b000000000000000000000000000000000000000000000000000000006430bc4d000000000000000000000000000000000000000000000000000000000000001cb1819b65f3127b333e8e523a33a2ed33dc6e306315355683401e30b269cee64b678fa450b4ec53337a16288cb635c686b21715f1b35daed5a4df84f699cb647c0000000000000000000000008dae6cb04688c62d939ed9b68d32bc62e49970b100000000000000000000000000000000000000000000000923b5b069ec4a7bb9000000000000000000000000000000000000000000000000000000006430bc4d000000000000000000000000000000000000000000000000000000000000001cb99e4c3b29e2d597ba5cf77946153591894c0db52824f04a2312e72c9db2ee3a3b9bf6adcfe3510257081616aed6e6e817f0fc7f04ec0ebf122d20bef3c74e060000000000000000000000000000000000000000000000000000000000000000",
    "v": 1,
    "r": "0xb66573801fa159c720731add5f636675f8c3e821c0023f109ade366923cc4052",
    "s": "0xeed3f6f6011e3c6329a6600b11cb176fa0ef48f06ddacc3c1a002c3026113cc",
    "raw": null,
    "type": 2,
    "max_fee_per_gas": "0x716de1b5d",
    "max_priority_fee_per_gas": "0x485ce38"
  }
]

Filter on contract deployments

We can identify contract deployments by filtering for transactions where the to address is null. To filter on null, use %00 as the query parameter value.

curl -s --location --request GET \
 "https://app.pangea.foundation/v1/api/transactions?chains=ETH&from_block=17000000&to_block=17000010&to__in=%00" \
 --header "Accept: application/jsonstream" \
 --header "Accept-Encoding: gzip" --compressed \
 --header "Authorization: Basic $PANGEA_AUTH" | jq

Response

[
  ...
  {
    "chain": 1,
    "block_number": "0x1036647",
    "block_hash": "0x011171c400214cf066898c6bc3ba528609d9734a597c2ea18092cc81261fcc26",
    "transaction_index": 19,
    "hash": "0xda527025054f0efb770c34b7e8b3c355aaa94ed2d52e37839df935e69805209a",
    "nonce": "0x0",
    "from": "0x4064f32e38f3884fca72529df0790512cd7300ca",
    "to": null,
    "value": "0x00000000000000000000000000000000000000000000000000f8b0a10e470000",
    "gas_price": "0x54361c859",
    "gas": "0xd220b",
    "input": "0x60a060405260405162000e5838038062000e5883398101604081905262000026916200030f565b60408051808201909152600d81526c05374616e64617264455243323609c1b602082015281908333878a8a60036200005f838262000464565b5060046200006e828262000464565b50505060ff1660805260405163346386e160e01b81526001600160a01b0385169063346386e1903490620000ab908790879087906004016200055e565b6000604051808303818588803b158015620000c557600080fd5b505af1158015620000da573d6000803e3d6000fd5b50505050505050505060008311620001455760405162461bcd60e51b8152602060048201526024808201527f5374616e6461726445524332303a20737570706c792063616e6e6f74206265206044820152637a65726f60e01b60648201526084015b60405180910390fd5b6200015133846200015d565b505050505050620005c8565b6001600160a01b038216620001b55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200013c565b8060026000828254620001c99190620005a0565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620002585781810151838201526020016200023e565b50506000910152565b600082601f8301126200027357600080fd5b81516001600160401b038082111562000290576200029062000225565b604051601f8301601f19908116603f01168101908282118183101715620002bb57620002bb62000225565b81604052838152866020858801011115620002d557600080fd5b620002e88460208301602089016200023b565b9695505050505050565b80516001600160a01b03811681146200030a57600080fd5b919050565b60008060008060008060c087890312156200032957600080fd5b86516001600160401b03808211156200034157600080fd5b6200034f8a838b0162000261565b975060208901519150808211156200036657600080fd5b620003748a838b0162000261565b96506040890151915060ff821682146200038d57600080fd5b606089015160808a0151929650945080821115620003aa57600080fd5b50620003b989828a0162000261565b925050620003ca60a08801620002f2565b90509295509295509295565b600181811c90821680620003eb57607f821691505b6020821081036200040c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022057600081815260208120601f850160051c810160208610156200043b5750805b601f850160051c820191505b818110156200045c5782815560010162000447565b505050505050565b81516001600160401b0381111562000480576200048062000225565b6200049881620004918454620003d6565b8462000412565b602080601f831160018114620004d05760008415620004b75750858301515b600019600386901b1c1916600185901b1785556200045c565b600085815260208120601f198616915b828110156200050157888601518255948401946001909101908401620004e0565b5085821015620005205787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600081518084526200054a8160208601602086016200023b565b601f01601f19169290920160200192915050565b60608152600062000573606083018662000530565b828103602084015262000587818662000530565b91505060018060a01b0383166040830152949350505050565b80820180821115620005c257634e487b7160e01b600052601160045260246000fd5b92915050565b608051610874620005e4600039600061011b01526108746000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461014557806370a082311461015857806395d89b4114610181578063a457c2d714610189578063a9059cbb1461019c578063dd62ed3e146101af57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101c2565b6040516100c391906106be565b60405180910390f35b6100df6100da366004610728565b610254565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610752565b61026e565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016100c3565b6100df610153366004610728565b610292565b6100f361016636600461078e565b6001600160a01b031660009081526020819052604090205490565b6100b66102b4565b6100df610197366004610728565b6102c3565b6100df6101aa366004610728565b610343565b6100f36101bd3660046107b0565b610351565b6060600380546101d1906107e3565b80601f01602080910402602001604051908101604052809291908181526020018280546101fd906107e3565b801561024a5780601f1061021f5761010080835404028352916020019161024a565b820191906000526020600020905b81548152906001019060200180831161022d57829003601f168201915b5050505050905090565b60003361026281858561037c565b60019150505b92915050565b60003361027c8582856104a0565b61028785858561051a565b506001949350505050565b6000336102628185856102a58383610351565b6102af919061081d565b61037c565b6060600480546101d1906107e3565b600033816102d18286610351565b9050838110156103365760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610287828686840361037c565b60003361026281858561051a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103de5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161032d565b6001600160a01b03821661043f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161032d565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006104ac8484610351565b9050600019811461051457818110156105075760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161032d565b610514848484840361037c565b50505050565b6001600160a01b03831661057e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161032d565b6001600160a01b0382166105e05760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161032d565b6001600160a01b038316600090815260208190526040902054818110156106585760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161032d565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610514565b600060208083528351808285015260005b818110156106eb578581018301518582016040015282016106cf565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461072357600080fd5b919050565b6000806040838503121561073b57600080fd5b6107448361070c565b946020939093013593505050565b60008060006060848603121561076757600080fd5b6107708461070c565b925061077e6020850161070c565b9150604084013590509250925092565b6000602082840312156107a057600080fd5b6107a98261070c565b9392505050565b600080604083850312156107c357600080fd5b6107cc8361070c565b91506107da6020840161070c565b90509250929050565b600181811c908216806107f757607f821691505b60208210810361081757634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561026857634e487b7160e01b600052601160045260246000fdfea2646970667358221220dd98fa0122fbfe07b3e1abd203bf90a2bb9b2c4d716fc868b283e96b54cca9b864736f6c6343000813003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000314dc6448d9338c15b0a00000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000075eee167d2e5cc675f5b07f95d6a93e7088d6c34000000000000000000000000000000000000000000000000000000000000000b53686962204d617374657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055348494d4100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000412e662eddf6b336a0fd7b86337efec63db3bbee39e4337cae0705bf280ae50460573b7f2cdceec7944e09d828aee51fdefafbf03da92d241b602aad425ce676741b00000000000000000000000000000000000000000000000000000000000000",
    "v": 0,
    "r": "0xf3c5c41ca4ef6a3281af77dd45e42f49849c828c090792d9133ce747d057ef03",
    "s": "0x62dca7e9cb9cc1e5a48e0262d214e4e7ab25acd3aad4684a3872a509ac98d433",
    "raw": null,
    "type": 2,
    "max_fee_per_gas": "0xa0fdf3a76",
    "max_priority_fee_per_gas": "0x9502f900"
  }
]

Query Parameters

v1/api/transactions

  • chains: Filters the data by specific blockchain networks.
  • from_block: Filters the data by a starting block number.
  • to_block: Filters the data by an ending block number.
  • to__in: Filters the data by a list of to addresses.
  • from__in: Filters the data by a list of from addresses.
  • value__gte: Filters the data by value using the greater than or equal to operator.
  • value__lte: Filters the data by value using the less than or equal to operator.