Description
The Spot Prints stream delivers real-time notifications of executed swap events. These prints represent realized execution outcomes, providing the actual prices and sizes achieved on-chain as they happen.
Subscription Parameters
ERC-20 contract address for the base asset.
ERC-20 contract address for the quote asset.
Message Fields
Realized execution price (quote per 1 base).
Amount of the input token executed.
Amount of the output token received.
Address of the input token.
Address of the output token.
Block height where the swap occurred.
Row-level lineage hash for correlation.
Subscription Example
# Use wscat to connect and subscribe
wscat -c wss://stream.blockdb.io/v1/evm/ \
-H "Authorization: Bearer $BLOCKDB_API_KEY" \
-x '{"action": "subscribe", "dataset_id": "0302", "chain_id": 1, "params": {"base_token_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "quote_token_address": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}}'
Response Example
{
"chain_id": 1,
"dataset_id": "0302",
"is_reorg": false,
"data": {
"base_token_address": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"quote_token_address": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"pool_uid": "88e6a0c2ddd26feeb64f039a2c41296fcb3f5640000000000000000000000000",
"token_in": "c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"token_out": "a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"amount_in": "10.000000000000000000",
"amount_out": "30241.122334455667788990",
"exec_price": "3024.112233445566778899",
"block_number": 18930123,
"block_time": "2025-11-11T18:15:30Z",
"_tracing_id": "0302000000000000000000000000000000000001",
"_created_at": "2025-11-11T18:15:35.000Z"
}
}