An object containing the parameters required to perform the NEON token transfer.
const connection = new Connection("https://api.devnet.solana.com");
const solanaWallet = new PublicKey("your_solana_wallet_public_key");
const neonWallet = "your_neon_wallet_address";
const neonEvmProgram = new PublicKey("neon_evm_program_public_key");
const neonTokenMint = new PublicKey("neon_token_mint_public_key");
const token: SPLToken = {
address: "erc20_token_address",
address_spl: "address_spl_value",
chainId: 245022926,
decimals: 18,
logoURI: "logo_url",
name: "NEON Token",
symbol: "NEON",
};
const transaction = await solanaNEONTransferTransaction({
solanaWallet,
neonWallet,
neonEvmProgram,
neonTokenMint,
token,
amount: 1,
chainId: 245022926
});
console.log("Transaction created successfully:", transaction);
Creates a Solana transaction to transfer NEON tokens.
This function generates a transaction for transferring NEON tokens from the Solana blockchain to Neon EVM. It creates the necessary instructions to approve the associated token account and deposit to a balance program address. Optionally, it adds a reward transfer instruction if a service wallet and reward amount are provided.