Messages
No examples found{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>"
}{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>",
"status": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"retryable": true
}
}{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>",
"status": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"retryable": true
}
}{
"chain_id": 123,
"dataset_id": "<string>",
"is_reorg": true,
"data": {
"path_id": "<string>",
"profit_in_usd": "<string>",
"block_number": 123,
"_tracing_id": "<string>"
}
}Arbitrage
Arbitrage Opportunities
Subscribe to arbitrage opportunity snapshots (per-path profit estimates at on-chain positions).
WSS
/
Overview
- Dataset ID:
0901 - Arbitrage Opportunities - Description: Opportunities computed for active paths at a specific
(block_number, tx_index, log_index); ties topath_idandis_reversed. - Sample: Hugging Face Sample
Subscription Parameters
Optional filters: 32-byte
path_id values (hex string, no 0x prefix).Message Fields
Payload fields mirrorblockdb_evm.b0901_arb_opportunities_v1 (addresses and binary ids as hex strings without 0x in JSON).
Observation block.
UTC timestamp of the observation (ISO-8601).
Transaction index within the block.
Log index within the transaction.
32-byte path id (hex).
true if the path was evaluated in the reversed direction.Pool UIDs in evaluated (directional) order (hex).
Token addresses in evaluated order (hex).
Per-hop amounts as decimal strings, aligned with
token_path.Estimated profit in
token_path[0] units (decimal string).USD price of
token_path[0] (decimal string).Estimated profit in USD (decimal string).
Row tracing id (hex).
Parent tracing ids (hex).
Record creation timestamp (ISO-8601).
Last update timestamp (ISO-8601).
Subscription Example
# Use wscat to connect and subscribe
wscat -c wss://api.blockdb.io/v1/evm/ \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-x '{"action": "subscribe", "dataset_id": "0901", "chain_id": 1, "params": {}}'
Response Example
{
"chain_id": 1,
"dataset_id": "0901",
"is_reorg": false,
"data": {
"block_number": 21000500,
"block_time": "2025-11-11T12:00:00Z",
"tx_index": 8,
"log_index": 4,
"path_id": "a1b2c3d4e5f6789012345678901234567890abcd1234567890abcdef12345678",
"is_reversed": false,
"pool_uids": [
"88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"11b815acc87f6f89741a636d1ebfcea40876f8f0000000000000000000000000"
],
"token_path": [
"c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
],
"amounts": [
"1000000000000000000",
"3500000000",
"1000500000000000000"
],
"profit_in_tokens": "50000000000000000",
"token_vwap_usd": "3200.50",
"profit_in_usd": "160.025",
"_tracing_id": "0901c0ffee000000000000000000000000000000000000000000000000000001",
"_parent_tracing_ids": [
"0801c0ffee000000000000000000000000000000000000000000000000000001"
],
"_created_at": "2025-11-11T12:00:05Z",
"_updated_at": "2025-11-11T12:00:05Z"
}
}
Messages
No examples found{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>"
}{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>",
"status": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"retryable": true
}
}{
"action": "<string>",
"chain_id": 123,
"dataset_id": "<string>",
"status": "<string>",
"error": {
"code": "<string>",
"message": "<string>",
"severity": "<string>",
"retryable": true
}
}{
"chain_id": 123,
"dataset_id": "<string>",
"is_reorg": true,
"data": {
"path_id": "<string>",
"profit_in_usd": "<string>",
"block_number": 123,
"_tracing_id": "<string>"
}
}subscribe
type:object
unsubscribe
type:object
subscribe_response
type:object
unsubscribe_response
type:object
update
type:object
Last modified on April 6, 2026
Was this page helpful?
⌘I