Type Alias CreateWithdrawTransactionFn
CreateWithdrawTransactionFn: (
withdrawAuthority: KeyPairSigner<string>,
stakeAccount: Address,
destination: Address,
lamports: number | bigint,
) => Promise<{ serializedTx: string }>
Type Declaration
- (
withdrawAuthority: KeyPairSigner<string>,
stakeAccount: Address,
destination: Address,
lamports: number | bigint,
): Promise<{ serializedTx: string }> Parameters
- withdrawAuthority: KeyPairSigner<string>
- stakeAccount: Address
- destination: Address
- lamports: number | bigint
Returns Promise<{ serializedTx: string }>
Create a signed withdrawal transaction. Returns the serialized tx.