Cardano API Quickstart

Overview and setup for 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 as 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

How to Use the Cardano Staking API

1. How to Stake

Initiating staking with 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 to the account as a Full Access key.

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

2. How to Deactivate a Stake

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 and private stake keys.

3. How to Withdraw Rewards

Initiating reward withdrawal can be done 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
  • Stake keys

🚧

Important!

The unsigned transactions must be signed with both keys before broadcasting them to the network.

👋 Need Help?

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