• Generates encoded transaction data for transferring ERC-20 tokens from Neon EVM to Solana.

    This function prepares the encoded function call data required to transfer ERC-20 tokens from the Neon EVM network to an associated SPL token account on Solana. It is primarily used in createMintNeonTransactionEthers to create an Ethers.js compatible transaction request for cross-chain token transfers.

    Parameters

    • associatedToken: PublicKey

      The associated SPL token account that will receive the minted tokens.

    • splToken: SPLToken

      The SPL token information, including its decimals and contract details.

    • amount: Amount

      The amount of tokens to be transferred from Neon EVM to Solana.

    Returns string

    Encoded function call data for the Neon-to-Solana token transfer transaction.

    const data = mintNeonTransactionData(associatedToken, splToken, amount);
    const transactionRequest = await createMintNeonTransactionEthers({
    provider,
    neonWallet: "0xNeonWalletAddress",
    associatedToken: "AssociatedTokenAddressOnSolana",
    splToken,
    amount: 1
    });