Search…
Tezos
How to programmatically delegate and retrieve rewards for delegated wallets on Tezos. Built on top of tzkt API.

As Tezos is a dPOS protocol, you can delegate to the Kiln baker using a delegation transaction such as this one.
Based on the custodian you use, you may be able to generate this transaction with a higher-level API provided by your custodian, for instance the Fireblocks API.

An API object linked to an Account representing a delegation on the Tezos chain.
Field
Value
Format
pubkey
Delegator Public Key
String
balance
Delegator balance
Number
rewards
Accrued rewards of the delegation
Number
apy
APY of accrued rewards
Number

An API object linked to the baker on the Tezos chain.
Field
Value
Format
pubkey
Baker Public Key
String
reliability
Baker reliability (how good the baker is at executing and endorsing, without the bonuses)
Number
efficiency
Baker efficiency (reliability + bonuses)
Number

An API object providing stats about the Tezos network.
Field
Value
Format
nb_validators
Number of bakers running on tezos
Number
apy
Current Delegation network APY
Number
supply_staked_percent
Percentage of token delegated on the network
Number

The following routes are available in the Kiln API:
get
https://api.kiln.fi/v1
/xtz/stakes
Retrieve Tezos Delegations made by delegators
get
https://api.kiln.fi/v1
/xtz/bakers
Retrieve bakers performance
get
https://api.kiln.fi/v1
/xtz/network-stats
Retrieve Tezos Network Statistics
Copy link
On this page
Delegation flow
Reporting API
Tezos delegation API object
Tezos baker API object
Tezos network stats API object
Reporting API routes
get
Retrieve Tezos Delegations made by delegators
get
Retrieve bakers performance
get
Retrieve Tezos Network Statistics