Skip to main content
WSS
Messages
subscribe
type:object
unsubscribe
type:object
subscribe_response
type:object
unsubscribe_response
type:object
update
type:object

Overview

  • Dataset ID: 0801 - Arbitrage Paths
  • Description: Path definitions (b0801_arb_paths_v1): each path_id is a 32-byte hash for an undirected cycle; pool_uids and token_cycle in canonical order.
  • Sample: Hugging Face Sample

Subscription Parameters

chain_id
number
required
Target EVM network. See the Chain enumeration.
path_ids
string[]
Optional filters: 32-byte path_id values (hex string, no 0x prefix).

Message Fields

path_id
string
32-byte hash identifying the undirected path (cycle) (hex).
block_number
number
Block when the path was first observed.
block_time
string
Block time (ISO-8601).
tx_index
number
Transaction index.
log_index
number
Log index.
pool_uids
string[]
Pool UIDs in canonical cycle order (hex).
token_cycle
string[]
Token cycle in canonical order (hex addresses).
_tracing_id
string
Unique tracing ID (hex).
_parent_tracing_ids
string[]
Parent tracing IDs (hex).
_created_at
string
Record creation time (ISO-8601).
_updated_at
string
Record last update time (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": "0801", "chain_id": 1, "params": {}}'

Response Example

{
  "chain_id": 1,
  "dataset_id": "0801",
  "is_reorg": false,
  "data": {
    "path_id": "a1b2c3d4e5f6789012345678901234567890abcd1234567890abcdef12345678",
    "block_number": 21000500,
    "block_time": "2025-11-11T12:00:00Z",
    "tx_index": 3,
    "log_index": 12,
    "pool_uids": [
      "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
      "11b815acc87f6f89741a636d1ebfcea40876f8f0000000000000000000000000"
    ],
    "token_cycle": [
      "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
      "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
    ],
    "_tracing_id": "0801c0ffee000000000000000000000000000000000000000000000000000001",
    "_parent_tracing_ids": [
      "0301c0ffee000000000000000000000000000000000000000000000000000001"
    ],
    "_created_at": "2025-11-11T12:00:05Z",
    "_updated_at": "2025-11-11T12:00:05Z"
  }
}
Last modified on April 6, 2026