The parameters required for the deposit transaction.
A Solana TransactionInstruction
for depositing tokens into the Neon EVM balance.
const instruction = createNeonDepositToBalanceInstruction({
chainId: 245022926,
solanaWallet: userWallet,
tokenAddress: userTokenAccount,
neonWallet: "0x1234567890abcdef1234567890abcdef12345678",
neonEvmProgram: neonProgram,
tokenMint: tokenMintAddress,
serviceWallet: serviceWalletAddress
});
transaction.add(instruction);
Creates a Solana transaction instruction to deposit tokens into a Neon EVM balance.
This function generates a
TransactionInstruction
that facilitates the deposit of SPL tokens into a Neon EVM balance.