The parameters required to create and execute the mint transaction.
const connection = new Connection("https://api.devnet.solana.com");
const proxyApi = new ProxyApi("https://devnet.neonevm.org");
const neonEvmProgram = new PublicKey("neon_evm_program_public_key");
const solanaWallet = new PublicKey("your_solana_wallet_public_key");
const neonWallet = "neon_wallet_address";
const walletSigner = new Wallet(keccak256(Buffer.from(`${neonWallet.slice(2)}${solanaWallet.toBase58()}`, 'utf-8')), new JsonRpcProvider("https://devnet.neonevm.org"));
const splToken: SPLToken = {
address: "token_address",
address_spl: "address_spl_value",
chainId: 245022926,
decimals: 9,
logoURI: "logo_url",
name: "USDT Token",
symbol: "USDT",
};
const transactionResult = await neonTransferMintTransactionEthers({
connection,
proxyApi,
neonEvmProgram,
solanaWallet,
neonWallet,
walletSigner,
splToken,
amount: 1,
chainId: 245022926
});
console.log("Transaction executed successfully:", transactionResult);
Creates and executes a Neon Transfer Mint Transaction using ethers.js.
This function is intended for the transfer of SPL tokens to Neon EVM by generating a transaction signed using ethers.js, using the wallet signer.