Creates an instruction to approve a deposit transaction.
The parameters required for the instruction.
A Solana TransactionInstruction for approving the deposit.
TransactionInstruction
const instruction = createApproveDepositInstruction({ solanaWallet: userWallet, neonPDAWallet: neonWalletPDA, associatedToken: userTokenAccount, amount: 1000000,});transaction.add(instruction); Copy
const instruction = createApproveDepositInstruction({ solanaWallet: userWallet, neonPDAWallet: neonWalletPDA, associatedToken: userTokenAccount, amount: 1000000,});transaction.add(instruction);
Creates an instruction to approve a deposit transaction.