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

    Type Alias CreateStakeTransactionFn

    CreateStakeTransactionFn: (
        owner: KeyPairSigner<string>,
        amountSol: number,
    ) => Promise<{ serializedTx: string; stakeAccountPubkey: Address }>

    Create a signed stake transaction delegating to the Helius validator. Returns the serialized tx and new stake account pubkey.

    Type Declaration

      • (
            owner: KeyPairSigner<string>,
            amountSol: number,
        ): Promise<{ serializedTx: string; stakeAccountPubkey: Address }>
      • Parameters

        • owner: KeyPairSigner<string>
        • amountSol: number

        Returns Promise<{ serializedTx: string; stakeAccountPubkey: Address }>