Craft exit request transactions. We watch these transactions and will exit your validators on your behalf. Exiting a validator can take a couple of days depending on the size of the exit queue.
You can exit multiple validators in one transaction.
On ETH, you have two options for signing and broadcasting transactions.
Fireblocks contract call
The method is usually preferred as it does not require the Fireblocks raw signing feature and allows you to leverage Fireblocks policies.
For this method to work you will need to whitelist the contract address that you are interacting with. When staking ETH with Kiln, it is interacting with our batch deposit contract ( mainnet / testnet - Holesky ).
Once the contract is whitelisted in Fireblocks, you should be able to retrieve the destination id associated with it (in the fireblocks URL or via their API). This id needs to be in the Integration configuration object.
Here is an example showing how to sign and broadcast a transaction with a fireblocks vault.
import { Integration } from"@kilnfi/sdk/lib/types/integrations";constfs=require('fs');constapiSecret=fs.readFileSync(__dirname +'/fireblocks_secret.key','utf8');constvault:Integration= { provider:'fireblocks', fireblocksApiKey:'YOUR_API_USER_KEY',// your fireblocks API user key fireblocksSecretKey: apiSecret,// your fireblocks private key (generated with your CSR file and your API user) vaultId:7,// your fireblocks vault id fireblocksDestinationId:'07df91b4-7788-4833-a8f4-428facef68cc',// your fireblocks whitelisted destination id};consttxSigned=awaitk.eth.signAndBroadcast(vault, tx);
With this method, the transaction is signed and broadcasted through Fireblocks.
Fireblocks raw signing
When using the Fireblocks raw signing feature, you need to make two calls to our SDK, the first to sign the transaction and the second to broadcast it via our API.
import { Integration } from"@kilnfi/sdk/lib/types/integrations";constfs=require('fs');constapiSecret=fs.readFileSync(__dirname +'/fireblocks_secret.key','utf8');constvault:Integration= { provider:'fireblocks', fireblocksApiKey:'YOUR_API_USER_KEY',// your fireblocks API user key fireblocksSecretKey: apiSecret,// your fireblocks private key (generated with your CSR file and your API user) vaultId:7,// your fireblocks vault id};consttxSigned=awaitk.eth.sign(vault, tx);consttxHash=awaitk.eth.broadcast(txSigned);
Get transaction status
Get the transaction status of a broadcasted transaction by providing its transaction hash.
conststatus=awaitk.eth.getTxStatus('tx_hash');
Decode transaction
Decode a serialized transaction previously crafted. You can use this to get more information about a transaction prior to broadcast it such as the gas fees used, the function parameters etc.