SDK 变更(测试版)

@solana/kora SDK 已更新,为 v2.2.0-beta 版本提供了新的 API。安装测试版 SDK:

pnpm add @solana/kora@beta

捆绑包方法

SDK 现在支持所有捆绑包操作:

// Estimate bundle fees
const estimate = await client.estimateBundleFee({
transactions: [base64Tx1, base64Tx2],
fee_token: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
});
// Sign a bundle without submitting
const { signed_transactions } = await client.signBundle({
transactions: [base64Tx1, base64Tx2, base64Tx3],
signer_key: koraSignerAddress
});
// Sign and submit a bundle to Jito
const { 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?

Table of Contents

Edit Page

管理者

©️ 2026 Solana 基金会版权所有
取得联系