@solana/kora
v0.1.3
Published
TypeScript SDK for Kora RPC
Readme
Kora TypeScript SDK
A TypeScript SDK for interacting with the Kora RPC server. This SDK provides a type-safe interface to all Kora RPC methods (requires a Kora RPC server to be running).
Installation
pnpm install @solana/koraQuick Start
import { KoraClient } from '@solana/kora';
// Initialize the client with your RPC endpoint
const client = new KoraClient({ rpcUrl: 'http://localhost:8080' });
// Example: Get Kora to sign a transaction
const result = await client.signTransaction({
transaction: 'myBase64EncodedTransaction'
});
// Access the signed transaction (base64 encoded)
console.log('Signed transaction:', result.signed_transaction);Local Development
Building from Source
# Install dependencies
pnpm install
# Build the SDK
pnpm run buildRunning Tests
Start your local Kora RPC Server from the root project directory:
kora --config tests/src/common/fixtures/kora-test.toml rpc start --signers-config tests/src/common/fixtures/signers.tomlTests rely on Solana CLI's local test validator.
Run:
pnpm test:ci:integrationThis will start a local test validator and run all tests.
