Getting started
Get started with Spice Data
Follow this guide to get started with Spice.
Using your browser or cURL, call the Gas Fees Estimates API as shown below. The response is a JSON object with an estimate of the next block's slow, normal, fast, and instant fees in Gwei.
Browser
cURL
Example:
https://data.spiceai.io/eth/v0.1/gasfees?price=USD
data.spiceai.io
Example results from the Ethereum gas fees API.
curl https://data.spiceai.io/eth/v0.1/gasfees
cURL
curl --request POST \
--url 'https://data.spiceai.io/v0.1/sql' \
--header 'Content-Type: text/plain' \
--header 'X-API-KEY: [API-KEY]'
--data 'select * from eth.recent_blocks order by "timestamp" desc'
Use the Python SDK, Node.js SDK, or Go SDK to query Spice using it's high-performance Apache Arrow transport.
Last modified 2mo ago