Get fill/cancel events related to the specified order
Supported on: Ethereum Base BNB Chain Avalanche Cronos ZKsync Gnosis HyperEVM Arc Monad Optimism Polygon Linea Sonic Unichain Robinhood Arbitrum
Parameters
chain
* number path orderHash
* string pathOrderHash of the order
Request Body
This request doesn’t have any request body.
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const axios = require('axios');
async function httpCall() {
const url = 'https://api.1inch.com/orderbook/v4.1/{chain}/events/{orderHash}';
const config = {
headers: {
Authorization: `Bearer ${API_KEY}`,
},
params: {},
paramsSerializer: {
indexes: null,
},
};
try {
const response = await axios.get(url, config);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Returns
additionalProperties
array items
object id
integer network
integer logId
string version
integer action
string orderHash
string taker
string remainingMakerAmount
string transactionHash
string blockNumber
integer createDateTime
string JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"0x186f896d3a59c13088517a8d9ffab566dd4354d90669ec683ef9307c2174f9b4": [
{
"id": 73989,
"network": 1,
"logId": "log_e879a909",
"version": 3,
"action": "fill",
"orderHash": "0x186f896d3a59c13088517a8d9ffab566dd4354d90669ec683ef9307c2174f9b4",
"taker": "0x027d24217f18822e6ce11821524c212f507d0787",
"remainingMakerAmount": "0",
"transactionHash": "0x014f972b2a8121b09507e7f60613d77f7e4bc1a4cb942ff9fae6f946cd8f4078",
"blockNumber": 16083198,
"createDateTime": "2023-07-09T10:45:39.332Z"
}
]
}