@neutral-trade/sdk - v1.0.0
    Preparing search index...

    @neutral-trade/sdk - v1.0.0

    @neutral-trade/sdk

    TypeScript SDK for Neutral Trade vaults on Solana — the vault registry plus a Codama-generated client for the ntbundle program, built on @solana/kit.

    📚 API reference: https://sdk.neutral.trade

    npm install @neutral-trade/sdk @solana/kit
    

    @solana/kit v6 is a peer dependency. Node 20+ is required.

    Migrating from 0.x? The 1.x line is a full rewrite on @solana/kitPublicKeyAddress, BNbigint, instruction builders return plain Instruction objects, and the NeutralTrade class is gone. The 0.x (anchor/web3.js v1) line lives on the legacy-v0 branch.

    import { createSolanaRpc } from "@solana/kit";
    import { fetchBundle, getVaultById, vaults } from "@neutral-trade/sdk";

    const rpc = createSolanaRpc("https://api.mainnet-beta.solana.com");
    const vault = getVaultById(1); // vault registry, bundled
    const bundle = await fetchBundle(rpc, vault.address);

    Build deposit instructions (extensions layer):

    import { buildDepositInstructions } from "@neutral-trade/sdk";

    const instructions = await buildDepositInstructions(rpc, {
    user, // TransactionSigner
    bundleAccount: bundleAddress,
    amountRaw: 1_000_000n,
    });
    // Assemble and send with your own transaction pipeline.

    Low-level generated bindings are also available from the ./generated subpath.

    • src/registry/**, src/constants/**, src/types/** — the vault registry. PRs welcome (new vault listings land here).
    • src/generated/**, src/extensions/**, test/client/**bot-owned: replaced wholesale by automated client drops from the (private) program monorepo, verified by client-drop.manifest + CI. Don't edit by hand — changes there belong upstream.

    MIT