• Generates encoded transaction data for withdrawing NEON tokens from Neon EVM to Solana.

    This function prepares the encoded function call data required for interacting with the Neon EVM contract to withdraw NEON tokens to a specified Solana wallet. It is primarily used in Neon-to-Solana transfers, such as in neonNeonTransactionEthers, to create an Ethers.js compatible transaction request.

    Parameters

    • solanaWallet: PublicKey

      The Solana wallet public key that will receive the withdrawn NEON tokens.

    Returns string

    Encoded function call data for the withdrawal transaction.

    const data = neonTransactionData(solanaWallet);
    const transactionRequest = await neonNeonTransactionEthers({
    from: "0xSenderAddress",
    to: "0xRecipientContractAddress",
    solanaWallet,
    amount: "1.0",
    provider
    });