Type Alias CreateStakeTransactionFn
CreateStakeTransactionFn: (
owner: KeyPairSigner<string>,
amountSol: number,
) => Promise<{ serializedTx: string; stakeAccountPubkey: Address }>
Type Declaration
- (
owner: KeyPairSigner<string>,
amountSol: number,
): Promise<{ serializedTx: string; stakeAccountPubkey: Address }> Parameters
- owner: KeyPairSigner<string>
- amountSol: number
Returns Promise<{ serializedTx: string; stakeAccountPubkey: Address }>
Create a signed stake transaction delegating to the Helius validator. Returns the serialized tx and new stake account pubkey.