Upgrade guide from v2 to v3
How to upgrade our JS SDK to new major version
v3 changelog
Upgrade from 2.X to 3.X
Update your dependencies:
bun i @kilnfi/sdk@latestUpdate calls to use the http client instead of specific protocol object.
const k = new Kiln({
testnet: true,
apiToken: 'kiln_xxx',
});
const vault: 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
};
...
const tx = await k.near.craftStakeTx(
'account_id',
'wallet',
'pool_id',
0.1,
);
const txSigned = await k.near.sign(vault, tx);Last updated
Was this helpful?

