dex
Get Historical Transactions
Retrieves a chronological list of swap transactions for a specified DEX pool within a defined block range, returning transaction hashes, addresses, and gas metrics. Block-level details (e.g., block number, timestamp) and transfer categorization (e.g., send, receive, contract interaction) help facilitate in-depth auditing and performance analysis, with a pagination token for navigating extended data.
💡 Compute Unit Value: 205 (Fixed)
get/defi/v1/dex/gethistoricaltransactions
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/dex/gethistoricaltransactions
- AuthAPI key in header X-API-Key
Query parameters
dexId'1000' | '1300' | '1305' | '1306' | '1307' | '1308' | '1309' | '1100' | '1200' | '1201'
The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.
Example:1000
endBlockstring
Last block of the range.
Example:100010
startBlockstring
Starting block of the range.
Example:100000
poolAddressstring required
Pool address whose liquidity is to be fetched.
Example:0xfad57d2039c21811c8f2b5d5b65308aa99d31559
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"pair": "WBTC/WETH",
"transactions": [
{
"transactionHash": "0xf342f2a9172d0ff6cb2780e6bec703c695f80af9c83896ab4d3fa8f3c6b24846",
"transactionDetails": {
"blockHash": "0x439cac3b235fb723f9b19bf8677797d7d7730c17bdad154c5522bece9228b9d6",
"blockNumber": "18367972",
"from": "0x4afa1538c508eab5f8d1938d7e801d670c7a7426",
"gas": "237646",
"gasPrice": "5402052229",
"maxFeePerGas": "6986758062",
"maxPriorityFeePerGas": "100000000",
"hash": "0xf342f2a9172d0ff6cb2780e6bec703c695f80af9c83896ab4d3fa8f3c6b24846",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000af0c000000000000000000000000000000000000000000000000000000000000ae2b000000000000000000000000000000000000000000000000001c31dc6fed3f820000000000000000000000004afa1538c508eab5f8d1938d7e801d670c7a742600000000000000000000000000000000000000000000000000000000652e209f",
"nonce": "30",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "24",
"value": "7976002199280179",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x1",
"r": "0x62ffb17102444747e17a643b2095ac2ed6a54d4e143f864ef913113dff9182d4",
"s": "0x437b394117a9bd7785207c4ee919b7c12b7835a6ed2360e59c32910b845541f0",
"yParity": "0x1"
}
},
{
"transactionHash": "0xc16778ad434c386310484b7b22fa173a550ff1c775016a0844d77fede3c55568",
"transactionDetails": {
"blockHash": "0x126cb4d2807e3c6eec7c7a46ea034398310a86579082cbac3a81dd507fc4202f",
"blockNumber": "18367796",
"from": "0xb740b2f676f627d4077e9782cdb8dc30dbba6bd3",
"gas": "244750",
"gasPrice": "5649439124",
"maxFeePerGas": "6933668525",
"maxPriorityFeePerGas": "100000000",
"hash": "0xc16778ad434c386310484b7b22fa173a550ff1c775016a0844d77fede3c55568",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000999f00000000000000000000000000000000000000000000000000000000000098da0000000000000000000000000000000000000000000000000018bea16edc5000000000000000000000000000b740b2f676f627d4077e9782cdb8dc30dbba6bd300000000000000000000000000000000000000000000000000000000652e1853",
"nonce": "98",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "63",
"value": "7000000000000000",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0x17ce9fb061e9742d64a9a92c8ec079cceda278e604d31ed6ff93aba7b6c5b5de",
"s": "0x1b917196a5ccf3adf330449ff7b13b0a2012c930d8bc235cf4b3f6f8317fabd3",
"yParity": "0x0"
}
},
{
"transactionHash": "0xce505972535cc4f0515bda119b6ab6046bd379adf91244ab9e3a59e7a93dcf79",
"transactionDetails": {
"blockHash": "0x07bd0530ec08967108dcb66f90e9d04664ce2c5dced79bc25cf4aa8592c3533f",
"blockNumber": "18410586",
"from": "0x77fbb383f424f98e744cde82a3b41f23dc1fd82e",
"gas": "244736",
"gasPrice": "9730712401",
"maxFeePerGas": "13360787154",
"maxPriorityFeePerGas": "100000000",
"hash": "0xce505972535cc4f0515bda119b6ab6046bd379adf91244ab9e3a59e7a93dcf79",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000227000000000000000000000000000000000000000000000000000000000000022400000000000000000000000000000000000000000000000000005a7ea627b80000000000000000000000000077fbb383f424f98e744cde82a3b41f23dc1fd82e000000000000000000000000000000000000000000000000000000006535fca3",
"nonce": "255",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "60",
"value": "100000000000000",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0xf9433f60fd0fbb68b860b4ae0c284a01c93e4ccbba1630fb21b8c5d8d14cf5",
"s": "0x5affb309911b6b233464dcda5df91d32362df4683be260feca213ac2cebe028e",
"yParity": "0x0"
}
},
{
"transactionHash": "0x07019df8bb77252185c4da28f0617e80e199dfb73f398636428bf1f46214b584",
"transactionDetails": {
"blockHash": "0x671426264e8f183794328b9ceafc22ae779e5935afc0c4e7d15833112874650f",
"blockNumber": "18389121",
"from": "0x0f8af7f0c71fab3d66a31243baed580cee6c0e0a",
"gas": "237646",
"gasPrice": "7083602166",
"maxFeePerGas": "9248000000",
"maxPriorityFeePerGas": "500000000",
"hash": "0x07019df8bb77252185c4da28f0617e80e199dfb73f398636428bf1f46214b584",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599000000000000000000000000000000000000000000000000000000000000d385000000000000000000000000000000000000000000000000000000000000d27600000000000000000000000000000000000000000000000000233e39715c3f920000000000000000000000000f8af7f0c71fab3d66a31243baed580cee6c0e0a0000000000000000000000000000000000000000000000000000000065320757",
"nonce": "2",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "33",
"value": "9969890071157728",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x0",
"r": "0x431d67d2054ad4d1d00fb7788243b3f4ef0a351ee1e85124fddc5281314460c8",
"s": "0x67621f85bfb728c192be3510624b90edb43a08e7f72033f4bf2a900ab81cb266",
"yParity": "0x0"
}
},
{
"transactionHash": "0xd869e9fa6ebea0d1173f97e0080552fe436a8fd02b28e3c55c6b543a1345f23c",
"transactionDetails": {
"blockHash": "0x39966efee2e0877488907cea7b1856ad895ccba5427b65e081f1032bb5fe6ed0",
"blockNumber": "18362942",
"from": "0x8ef2c6f23477e31e983102310d9913c2dc69bbfe",
"gas": "237632",
"gasPrice": "8819484734",
"maxFeePerGas": "12054334407",
"maxPriorityFeePerGas": "100000000",
"hash": "0xd869e9fa6ebea0d1173f97e0080552fe436a8fd02b28e3c55c6b543a1345f23c",
"input": "0xf305d7190000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000018e00000000000000000000000000000000000000000000000000003f774d48506b0000000000000000000000008ef2c6f23477e31e983102310d9913c2dc69bbfe00000000000000000000000000000000000000000000000000000000652d3387",
"nonce": "3",
"to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",
"transactionIndex": "135",
"value": "70132291701431",
"type": "2",
"accessList": [],
"chainId": "1",
"v": "0x1",
"r": "0x21d92d1da0f6178b459ca4078e30dc307295cb70f33a4bad126a4dfbf42ccf30",
"s": "0x6e33388b5e67f35e1d2a5bfd8a09dfa107b52a95a167deca80af1e191366f70f",
"yParity": "0x1"
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.