Helius SDK - v2.2.2
    Preparing search index...

    Function createHelius

    • Create a Helius SDK client.

      Parameters

      Returns HeliusClient

      import { createHelius } from "helius-sdk";

      const helius = createHelius({ apiKey: "YOUR_API_KEY" });

      // Standard Solana RPC
      const balance = await helius.getBalance("So11...").send();

      // DAS — fetch an asset
      const asset = await helius.getAsset({ id: "MINT_ADDRESS" });

      // Smart transactions
      const sig = await helius.tx.sendSmartTransaction({ signers, instructions });