pinax-network / substreams-sink-websockets

Substreams Sink Websockets
https://substreams-sink-websockets-production.up.railway.app
MIT License
2 stars 1 forks source link

add `/cursor/latest` as plain/text #36

Closed DenisCarriere closed 11 months ago

DenisCarriere commented 11 months ago

Use case

Allows Webhook sinks to connect directly to WebSocket sink's latest cursor endpoint

Params

SQL Statement

SELECT latest_cursor
FROM module_hashes
WHERE chain = '${chain}' AND module_hash = '${moduleHash}'
LIMIT 1

Endpoint /cursor/latest

Reference

https://github.com/pinax-network/substreams-sink/releases/tag/v0.13.4

Simple HTTP text response

n-5SB30M-16YouthlRFszqWwLpcyB1JpXQPsLRNL1...

Reference