We require the wallet compressed pubkey in transaction crafting methods. This pubkey is different from your wallet address, you wallet address is actually derived from the pubkey. To retrieve the pubkey, you can use our sdk as follow:
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.atom.sign(vault, tx);
Broadcast
Broadcast a signed transaction.
consttxHash=awaitk.atom.broadcast(txSigned);
Get transaction status
Get the transaction status of a broadcasted transaction by providing its transaction hash.
conststatus=awaitk.atom.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.