Links

Getting started

Get started with Spice Data
Follow this guide to get started with Spice.

Call the API

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

Make a basic SQL query

To get an API key, set up a Portal account.
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 an SDK

Use the Python SDK, Node.js SDK, or Go SDK to query Spice using it's high-performance Apache Arrow transport.