Skip to content

Multichain

All tables are namespaced with the target chain. As a simple example, getting recent blocks on Ethereum vs Polygon:

SQL Query
SELECT * FROM ethereum.blocks ORDER BY timestamp desc LIMIT 10;

curl --request POST \
     --data '{"sql": "SELECT * FROM ethereum.blocks ORDER BY timestamp desc LIMIT 10;"}' \
     --url 'https://api.transpose.io/sql' \
     --header 'Content-Type: application/json' \
     --header 'x-api-key: BtRVYj7dgnYUcr1gSSfWhmrTShIb8RBG' \
SQL Query
SELECT * FROM polygon.blocks ORDER BY timestamp desc LIMIT 10;

curl --request POST \
     --data '{"sql": "SELECT * FROM polygon.blocks ORDER BY timestamp desc LIMIT 10;"}' \
     --url 'https://api.transpose.io/sql' \
     --header 'Content-Type: application/json' \
     --header 'x-api-key: BtRVYj7dgnYUcr1gSSfWhmrTShIb8RBG' \

Got questions? Join our Discord

Discord is the primary home of the Transpose developer community. Join us to ask questions, share your work, and get help.