Alchemy
Alchemy is a developer-focused platform that helps companies build scalable and reliable decentralized applications, without the difficulty of managing blockchain infrastructure in-house.
- Alchemy Supernode offers the most reliable, scalable and accurate way to connect and build on the Astar blockchain.
- Alchemy SDK gives Astar developers the easiest way to connect their dApps to the blockchain with just two lines of code.
- Websockets & Webhooks allows you to subscribe and get notified for any address activity events as well as mined and dropped transactions.
Overview
There are many ways to make requests to Astar network. This guide will show you how to use Alchemy and API it provides that allow us to communicate with the Astar mainnet without having to run our own nodes.
Step 1. Create an Alchemy account
To use API's and ifrastructure provided by Alchemy, create an Alchemy account for free here.
Step 2. Create App.
To authenticate your requests you need an API key.
Once you’ve created an Alchemy account, you can generate an API key by creating an app. This will allow you to make requests to Astar network.
Navigate to the “Create App” page in your Alchemy Dashboard by hovering over “Apps” in the nav bar and clicking “Create App”.
Step 3. Enter App details.
In the "Create App" window, choose the chain you are connecting to (Astar) and the network (Astar Mainnet). Currently Alchemy only supports the Astar Mainnet. Give your App a name and a description.
Step 4. Get your API key
Perfect! Now we have created our app and by doing so, generated the API key and an endpoint. To see the API key, choose your newly created App in the list of your Apps and click on the "View Key" button.
Step 5. Save your API key
Copy and save your API Key - you will need it to send request to query data from Astar.