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

    Interface AuthClient

    interface AuthClient {
        agenticSignup(
            options: AgenticSignupOptions,
        ): Promise<AgenticSignupResult>;
        checkSolBalance(address: string): Promise<bigint>;
        checkUsdcBalance(address: string): Promise<bigint>;
        createApiKey(
            jwt: string,
            projectId: string,
            wallet: string,
        ): Promise<ApiKey>;
        createProject(jwt: string): Promise<Project>;
        executeCheckout(
            secretKey: Uint8Array,
            jwt: string,
            request: CheckoutRequest,
        ): Promise<CheckoutResult>;
        executeRenewal(
            secretKey: Uint8Array,
            jwt: string,
            paymentIntentId: string,
        ): Promise<CheckoutResult>;
        executeUpgrade(
            secretKey: Uint8Array,
            jwt: string,
            plan: string,
            period: "monthly" | "yearly",
            projectId: string,
            couponCode?: string,
        ): Promise<CheckoutResult>;
        generateKeypair(): Promise<
            { publicKey: Uint8Array; secretKey: Uint8Array },
        >;
        getAddress(keypair: WalletKeypair): Promise<string>;
        getCheckoutPreview(
            jwt: string,
            plan: string,
            period: "monthly" | "yearly",
            refId: string,
            couponCode?: string,
        ): Promise<CheckoutPreviewResponse>;
        getPaymentIntent(
            jwt: string,
            paymentIntentId: string,
        ): Promise<CheckoutInitializeResponse>;
        getPaymentStatus(
            jwt: string,
            paymentIntentId: string,
        ): Promise<CheckoutStatusResponse>;
        getProject(jwt: string, id: string): Promise<ProjectDetails>;
        initializeCheckout(
            jwt: string,
            request: CheckoutInitializeRequest,
        ): Promise<CheckoutInitializeResponse>;
        listProjects(jwt: string): Promise<ProjectListItem[]>;
        loadKeypair(bytes: Uint8Array): WalletKeypair;
        payPaymentIntent(
            secretKey: Uint8Array,
            intent: CheckoutInitializeResponse,
        ): Promise<string>;
        payUSDC(secretKey: Uint8Array): Promise<string>;
        payWithMemo(
            secretKey: Uint8Array,
            treasury: string,
            amount: bigint,
            memo: string,
        ): Promise<string>;
        signAuthMessage(
            secretKey: Uint8Array,
        ): Promise<{ message: string; signature: string }>;
        walletSignup(
            msg: string,
            sig: string,
            address: string,
        ): Promise<SignupResponse>;
    }
    Index

    Methods

    • Parameters

      • address: string

      Returns Promise<bigint>

    • Parameters

      • address: string

      Returns Promise<bigint>

    • Parameters

      • jwt: string
      • projectId: string
      • wallet: string

      Returns Promise<ApiKey>

    • Parameters

      • secretKey: Uint8Array
      • jwt: string
      • paymentIntentId: string

      Returns Promise<CheckoutResult>

    • Parameters

      • secretKey: Uint8Array
      • jwt: string
      • plan: string
      • period: "monthly" | "yearly"
      • projectId: string
      • OptionalcouponCode: string

      Returns Promise<CheckoutResult>

    • Returns Promise<{ publicKey: Uint8Array; secretKey: Uint8Array }>

    • Parameters

      • jwt: string
      • plan: string
      • period: "monthly" | "yearly"
      • refId: string
      • OptionalcouponCode: string

      Returns Promise<CheckoutPreviewResponse>

    • Parameters

      • secretKey: Uint8Array

      Returns Promise<string>

    • Parameters

      • secretKey: Uint8Array
      • treasury: string
      • amount: bigint
      • memo: string

      Returns Promise<string>

    • Parameters

      • secretKey: Uint8Array

      Returns Promise<{ message: string; signature: string }>