👋 Welcome! Here's how to get started with the Blockdaemon API Suite.
This comprehensive guide takes you through the steps to use the Blockdaemon API Suite with cURL, Postman, and our API Reference docs. Follow the steps below to get up and running with the Blockdaemon API Suite.
1. Sign Up for a Blockdaemon Account
If you haven't done so, sign up for a Blockdaemon account.
Follow these steps for more information.
2. Generate a Blockdaemon API Suite Key
To use the Blockdaemon API Suite, you need an API key. Follow this guide to generate your free key.
You can also check out our video guide below.
3. Authorize and Send a Request
➡️ 3.1. Authorize and Send a Request Using cURL
Follow these steps to run Blockdaemon API Suite endpoints using cURL:
- Launch your preferred command-line tool, such as macOS Terminal, Windows Command Prompt, etc. In some cases, you will also need to install cURL.
- Authorize your request before sending it. Set your API key as a bearer token in the authorization header. Paste the following to get the current block number in Ethereum Mainnet and run your request:
curl -X GET 'https://svc.blockdaemon.com/universal/v1/ethereum/mainnet/sync/block_number" \ -H "Authorization: Bearer YOUR_API_KEY'
- The API response will be displayed in your command-line tool. The received output contains the current block number for Ethereum Mainnet:
16988055
➡️ 3.2. Authorize and Send a Request Using Postman
Follow these steps to run Blockdaemon API Suite endpoints using Postman:
- Install Postman on your computer or use the web version.
- Authorize your request by doing the following steps:
- Go to your workspace in Postman.

- Click the ‘+’ button on the top to open a new tab.

- Navigate to the Authorization tab under the URL input field.

- Select Bearer Token from the Type drop-down menu.

- Paste your API key into the Token input box.

- Send your request:
- Paste the following address in the URL input field to get the current block number in Ethereum Mainnet:
https://svc.blockdaemon.com/universal/v1/ethereum/mainnet/sync/block_number
- Select
GET
from the drop-down menu on the left. - Click on the Send button on the right.

- The API response will be displayed in your command-line tool. The received output contains the current block number for Ethereum Mainnet:

➡️ 3.3. Authorize and Send a Request Using the Blockdaemon API Reference Docs
Follow the steps below to access the Blockdaemon API Suite via the API reference docs:
- Navigate to the specific endpoint page within the API reference docs.

- Paste your API key in the Authentication field as the Bearer token or in the Header.

- Select your relevant Base URL if it is not already set up.

- Add relevant path or query parameters.

- Click the 'Try it' button on the API explorer.

- Receive your response.
