Cardano API Overview

Learn all about Blockdaemon Cardano Staking API.

The Cardano Staking API automates stake account registration, staking certificate generation, and staking reward withdrawal. It provides a comprehensive solution that eliminates the need to set up any Cardano nodes. You only need to sign the transactions, adding minimal dependencies to your technology stack.

Supported Networks

The Blockdaemon Staking API supports the following Cardano networks:

  • Mainnet
  • Preprod

User Journey

In this section, we present a typical user journey when interacting with the Cardano Staking API:

  1. Staking
  2. Deactivating
  3. Rewards Withdrawal

1. Staking

Initiating staking with the Blockdaemon staking pool is achieved through the Post Stake Intent endpoint. The endpoint returns an unsigned transaction requiring signing and broadcasting to the network via the private key that corresponds to the public key provided in the stake intent. This private key is also added as a Full Access key to the account.

In Cardano, the ledger's history is divided into epochs, each approximately lasting 5 days. Depending on when delegation started in the current epoch, rewards start arriving within 15 to 20 days.

2. Deactivating

To deactivate your stake from the staking pool, initiate the process via the Post Deactivation Intent endpoint. The endpoint returns an unsigned transaction necessitating signing by both the private payment key and private stake key.

3. Rewards Withdrawal

Initiating reward withdrawal is accomplished through the Post Rewards Withdrawal Intent endpoint. This endpoint returns an unsigned transaction, which must be signed by the stake key and broadcast to the network (achieved via the Broadcast Transaction endpoint).

All of the aforementioned endpoints accept a Cardano base address as a parameter. A base address comprises two different keys, payment and stake keys.



Note that the unsigned transactions returned by the API must be signed with both keys before broadcasting them to the network.

Example Code