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:
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
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:
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 support.
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.
Create an API user using the Fireblocks tutorial here with the Editor role (minimum privilege to initiate transactions on the workspace). This might require that you contact your Fireblocks support.
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
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 https://console.fireblocks.io/v2/accounts/vault/4 is '4'
.
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.