Sparkscan API

Getting a Key

  1. Sign-in on the Sparkscan website (top-right door button).
  2. Navigate to the dashboard and click on API Keys.
  3. Give your key a name (e.g. my-backend), and click Create.
  4. Copy the value.

If you're signing up for the first time, you'll need to create an organization. In the event that you're company already has an organization, you should ask your admin to add you to the organization.

You can create multiple keys per account and revoke them at any time.

Plans

To upgrade your plan please visit the Sparkscan dashboard.

Using Your Key

Add the header Authorization to every HTTP request:

TerminalCode
curl \ -H "Authorization: Bearer <YOUR_API_KEY>" \ "https://api.sparkscan.io/v1/tx/latest?network=MAINNET&limit=5"

Security Best Practices

  • Store keys as environment variables, never commit them to source control.
  • Rotate keys periodically and immediately revoke leaked keys.
  • Do not bundle API keys with your browser extensions or mobile apps.
Last modified on