How to Use the Cardano Staking API

Typical user journeys using the Cardano Staking API

How to Stake

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

In Cardano, 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.

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.

How to Withdraw Rewards

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.

🚧

Important!

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

Example Code

👋 Need Help?

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