Helius SDK - v3.4.0
    Preparing search index...

    Function createHelius

    • Create a Helius SDK client.

      Parameters

      Returns HeliusClient

      import { address } from "@solana/kit";
      import { createHelius } from "helius-sdk";

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

      // Standard Solana RPC
      const { value: balance } = await helius.getBalance(
      address("So11111111111111111111111111111111111111112")
      );

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

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