Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
One SDK to integrate staking, rewards data, and your custodian on all major PoS blockchains
Kiln Connect offers a unified interface to craft, sign and broadcast transactions for all supported protocols so that your engineering team does not have to deal with protocols specifics and focuses on integration and user experience.
Kiln Connect provides support 18 protocols please find the breakdown bellow.
It also enables you to retrieve staking rewards data on all validators (not just Kiln Validators) without having to run infrastructure yourself.
All of the following protocols offer support for :
Except for MultiverseX (EGLD)
Scope explains for which validator range reporting data is available
Search by explains how to query the Reporting API
Timeframes explains how granular the data is historically
History explains how far in the past data is available
It is currently available via a SDK available in TypeScript/JavaScript and Python. For more language support, feel free to contact our Support.
Network Stats: giving global visibility over the network APY
Transaction crafting refer to the ability to craft transactions
Reporting, on staking position and rewards
Protocol | Scope | Search by | Timeframes | History |
---|---|---|---|---|
All network
Wallet, Stake address, Validator
Daily, Epoch
2020-08-13
All network
Validator, Delegator
Daily
2023-10-17
All network
Validator, Delegator
Daily
2022-04-12
All network
Validator, Delegator
Daily
2023-09-11
All network
Wallet, Validator address & index, EigenPod
Daily
2024-04-04
All network
Wallet, Validator address & index
Daily
2020-12-01
All network
Validator, Delegator
Daily
2022-04-05
All network
Validator, Delegator
Daily
2021-06-30
Kava (KAVA) (Preview of 1.6)
All network
Validator, Delegator
Daily
2024-07-21
Kusama (KSM) (Preview of 1.6)
All network
Wallet, Pool
Daily, Era
2020-03-18
Kiln only
Wallet, Validator
Daily
2023-03-08
All network
Wallet, Stake account, Validator
Daily, Epoch
2020-07-21
All network
Validator, Delegator
Daily
2021-12-14
Polkadot (DOT) (Preview of 1.6)
All network
Pool,
Wallet
Daily, Era
2020-06-18
All network
Wallet, Validator index
Daily
2023-01-18
All network
Wallet, Stake account, Validator
Daily, Epoch
2020-12-24
All network
Wallet, Validator
Daily, Cycle
2018-06-30
All network
Pools, Nominators
Daily
2024-05-24
All network
Validator, Delegator
Daily
2023-10-19
Kiln offers a JS SDK that enables you to leverage Kiln Connect API in a very simple way.
Craft, sign and broadcast staking transactions using Fireblocks as a custody solution
Get staking data about your stakes and their rewards
Get network wide data
Manage your Kiln accounts
https://github.com/kilnfi/sdk-js
All Kiln Connect protocols are supported in the SDK.
Find Kiln Connect documentation here:
Setup a demo environment for the Reporting API
Postman is a GUI you can use to run some API call examples and visualise the returned data.
You can use the community desktop version or the web version of Postman to import the demo.
In postman, select the Collections tab on the left menu
Press the import button and import the following collection:
Go to the Environments tab on the left menu and create a new TESTNET environment
Add a host
variable with https://api.testnet.kiln.fi
as INITIAL VALUE
Add a api_token
variable with your Kiln API token (you can fetch it on the Applications section of your Kiln dashboard) as INITIAL VALUE
Go back to the Collections tab, select TESTNET on the top right menu
You are now setup to run API queries!
Generate & manage API key to access Kiln's Connect API
To integrate reporting in your platform or to stake programmatically, you need to generate an API Key for your team.
You need at least one user onboarded in your Organization on Kiln's Dashboard
If you don't yet have access please contact our support team.
Start by navigating to Kiln's Dashboard: https://dashboard.kiln.fi
Please note if you need API access for the test network, you will need to have access to the testnet version of this dashboard, contact our support team for more information.
Step 1. Click on "Applications" in the navigation sidebar to start managing your API keys
Step 2. Then click on "Create application" to initiate the API Key creation flow
Step 3. Create a new application by setting a name for your API Key so you can identify it later in the list, you can also add a description, like "for testing purposes" so another team member can know who is using this key.
After clicking "Create application" your API Key will be generated and displayed only once, make sure you copy it and securely share it internally ⚠️
Hover one row of the table to see the quick action buttons on the right side of the line.
In the case you need to rotate your API Key credentials, you can keep the same application name and credentials but regenerate the access token.
After clicking "Regenerate Token" your API Key will be generated and displayed only once, make sure you copy it and securely share it internally ⚠️
Click on "Update" to modify the API Key name or description.
You can revoke it from the dashboard by clicking on the "Delete" button after hovering on the specific line.
Here is how you can find Kiln's validator addresses
When staking on different protocols, you will need to find Kiln's validator addresses if you choose to stake with Kiln.
Addresses on all protocols can be found in this section
Stakes can be taggued using the Solana memo feature to enable Kiln to distinguish your stakes on-chain.
A Solana transaction is composed of multiple instructions, executed one after the other. Here is an example of instructions you can define with the standard Solana @solana/web3.js
package.
This transaction will be taggued with the hello, world!
memo and will create, initialize and delegate a stake account.
Kiln gives to each partner a fix value to include as memo in all the transactions they craft with the following format: kiln_{uuidv4}
.
How to upgrade our JS SDK to new major version
Here is the high level changelog of the v3:
The Kiln class now exposes a type safe HTTP client that exposes all Kiln Connect endpoints available. The client is generated from our OpenAPI specs. The OpenAPI typescript schema is also exposed so you can benefit from all type definitions. The schema and SDK will be updated frequently with newly added endpoints.
The fireblocks raw signing feature is now under the fireblocks service exposed by the Kiln class. A sign method is available for all protocols we support.
2.X:
3.X:
How to bridge your rewards using Kiln Connect, regardless of your custody solution.
Rewards earned on DYDX are DYDX-USDC. In this tutorial we will present how to bridge these rewards to Ethereum or to Osmosis using the Kiln SDK. These flows can be done directly from Kiln Dashboard if you are using Fireblocks.
The goal of this bridge is to bring your dYdX rewards in USDC on your ETH address so that you can use them for other purposes like depositing them on a centralized exchange to get some dYdX back.
To convert your DYDX-USDC to USDC on Ethereum, we will use the Noble bridge developed by Circle, which is the recommended on-chain approach.
There is 3 steps to this flow:
1) Transfer the USDC from DYDX to the Noble chain
2) Burn the USDC on Noble
3) Mint the USDC on Ethereum
Here is a TypeScript code snippet that you can use:
The goal of this bridge is to bring your dYdX rewards in USDC on another cosmos address here on Osmosis so that you can use them for other purposes like depositing them on a centralized exchange or a Swap on Osmosis to get some dYdX back.
This flow follows two steps:
1) Transfer the DYDX-USDC to the Noble chain
2) Transfer the USDC on Noble to Osmosis
Here is a TypeScript code snippet that you can use:
There are a few setup steps needed to start using the Kiln Connect SDK. Contact sales@kiln.fi should you have any feedbacks / questions.
The Kiln Connect SDK is only available in TS/JS for now, if you have other programming language requirements, please contact the .
Create an application on your Kiln Dashboard, and retrieve the given API key.
The API key is used to authenticate with the Kiln REST API which can manage Kiln accounts, craft transactions, and provide reporting data.
In the case that you would like to craft and sign transactions with your Fireblocks vault, you will need to setup the following in Fireblocks:
The raw signing feature is required on all protocols except on EVM compatible protocols (ETH, MATIC). Make sure that it is enabled in your workspace in case you wish to stake on other protocols. You can ask the Fireblocks support for information.
Generate the CSR certificate and make sure you store it somewhere safe.
Get the API key of the user by clicking on "Copy API key" of the user in the workspace members list
With the Kiln Connect SDK, you remain entirely in control of what is sent for signing to your Fireblocks workspace. You can verify the content of the transactions crafted with this SDK before signing it. Note that the entire signing workflow is done on the SDK end, not on Kiln APIs. Kiln will never have access to your Fireblocks API key or secret key.
You can now configure the SDK with you Kiln API token.
Create an API user using the Fireblocks tutorial with the Editor role (minimum privilege to initiate transactions on the workspace). This might require that you contact your Fireblocks support.
Get the vault account id you want to stake with by clicking on it in your Fireblocks workspace and check the URL. For example the vault id of is '4'
.