Quick Start - Blockdaemon API Suite

👋 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.

🚧

Note:

To obtain a Staking API Key, please refer to the Get Started - Staking API.

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:

  1. Launch your preferred command-line tool, such as macOS Terminal, Windows Command Prompt, etc. 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
    

➡️ 3.2. Authorize and Send a Request 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 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.
  1. 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.
  1. 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:

  1. Navigate to the specific endpoint page within the API reference docs.
  1. Paste your API key in the Authentication field as the Bearer token or in the Header.
  1. Select your relevant Base URL if it is not already set up.
  1. Add relevant path or query parameters.
  1. Click the 'Try it' button on the API explorer.
  1. Receive your response.

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.