L'SDK @solana/kora è stato aggiornato con nuove API per la versione
v2.2.0-beta. Installa l'SDK beta:
pnpm add @solana/kora@beta
Metodi Bundle
L'SDK ora supporta tutte le operazioni bundle:
// Estimate bundle feesconst estimate = await client.estimateBundleFee({transactions: [base64Tx1, base64Tx2],fee_token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"});// Sign a bundle without submittingconst { signed_transactions } = await client.signBundle({transactions: [base64Tx1, base64Tx2, base64Tx3],signer_key: koraSignerAddress});// Sign and submit a bundle to Jitoconst { bundle_uuid } = await client.signAndSendBundle({transactions: [base64Tx1, base64Tx2, base64Tx3],signer_key: koraSignerAddress});
getVersion
const { version } = await client.getVersion();console.log("Kora server version:", version);
Is this page helpful?