Superseed API Quickstart
💡 Available only with Blast access
Introduction
The Superseed API allows developers to interact with the Superseed blockchain using standard JSON-RPC methods.
With this API, you can retrieve block and transaction data, send transactions, and build applications powered by Superseed’s high-throughput, EVM-compatible environment.
What is the Superseed Chain API?
The Superseed Chain API enables developers to communicate with the network through JSON-RPC — a widely adopted standard for blockchain interactions. If you’re familiar with Ethereum’s API structure, Superseed’s methods will feel intuitive.
Using the API, developers can:
- Fetch the latest blocks and transactions
- Send signed transactions to the network
- Query contract data
- Estimate gas fees and more
Getting Started Instructions
1. Choose a Package Manager (npm or yarn)
Your first step involves selecting a package manager, which will be crucial for managing your project’s dependencies. The choice between npm
and yarn
depends on your personal preference or project requirements.
2. Set Up Your Project
To kickstart your project, open your terminal and execute the following commands:
This creates a new directory named superseed-api-quickstart
and initializes a Node.js project within it.
3. Make Your First Request
Install Axios, a popular HTTP client, to make API requests:
Create an index.js
file in your project directory and paste the following code:
Remember to replace yourAPIKey
with your actual Alchemy API key that you can get from your Alchemy dashboard.
4. Run Your Script
To execute your script and make a request to the Superseed App, run:
You should see the current block number on Superseed App (in hexadecimal format) outputted to your console:
Next Steps
Well done! You’ve just made your first request to the Superseed App API. With this foundation, you can dive deeper into the array of JSON-RPC methods available on Superseed App and start building your dApps on it!