Quick Start - Blockdaemon API Suite

👋 Welcome! Get started with the Blockdaemon API Suite.

Welcome to our guide to quickly get started with the Blockdaemon API Suite! In this comprehensive guide, we will walk you through the steps to use the Blockdaemon API Suite with cURL, Postman, and our API Reference docs.

Simply follow the steps below, and you'll be up and running with the Blockdaemon API Suite in no time!

Test Blockdaemon API Suite Endpoints

1. Sign Up for a Blockdaemon Account

If you haven't done so already, you will need to sign up for a Blockdaemon account. You can do this by visiting Blockdaemon's website. Follow the steps enlisted here to create a free Blockdaemon account.

2. Generate a Blockdaemon API Suite Key on Blockdaemon App

To use the Blockdaemon API Suite, you need to get the API access key. This is a 47-character unique number. To generate a Blockdaemon API Key follow our guide on getting your free API key.

You can also check out our video guide below.

3. Authorize and Send a Request With the Blockdaemon API Suite

Let's learn how to send a request with the Blockdaemon API Suite using examples.

➡️ Using cURL

Follow these steps to run Blockdaemon API Suite endpoints using cURL:

  1. Launch your preferred command-line tool, such as macOS Terminal, Windows Command Prompt, etc. Please note that in some cases, you will also need to install cURL.
  2. 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'
    
  3. The API response will be displayed in your command-line tool. The received output contains the current block number for Ethereum Mainnet:
    16988055
    

➡️ Using Postman

Follow these steps to run Blockdaemon API Suite endpoints using Postman:

  1. Install Postman on your computer or use the web version.
  2. Authorize your request:
    • Go to your workspace in Postman.
  • Click on 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.
  1. Send your request:
    • In the URL input field, paste the following address 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.
  1. The API response will be displayed in your command-line tool. The received output contains the current block number for Ethereum Mainnet:

➡️ Using the API Reference Docs

Follow these steps to run Blockdaemon API Suite endpoints using our API reference docs:

  1. Navigate to the API reference > the specific endpoint documentation page.
  1. Locate the API explorer and paste your API key in the Authentication field as the Bearer token or in the Header.
  1. Select the relevant Base URL if not already set up.
  1. Add relevant path or query parameters.
  1. Click on the "Try it" button on the API explorer.
  1. Receive a Response.

Integrate the API Into Your Application

Once you have tested the API and are familiar with its endpoints, you can start integrating it into your application and use it to automate staking activities, access staking data on blockchain networks, and interact with major protocols through their own native APIs.