• Creates a transaction-like object that represents an unwrap WNEON in NEON token.

    Type Parameters

    • T

      The expected type of the transaction-like object, commonly TransactionRequest from ethers.js.

    Parameters

    • from: string

      The sender address in hexadecimal format.

    • to: string

      The recipient address in hexadecimal format - commonly wneon token contract address.

    • data: string

      The additional data to include in the transaction, represented as a string.

    Returns T

    An object representing the transaction, cast to the expected type T.

    import { TransactionRequest } from 'ethers';

    const fromAddress = "0x1234567890abcdef1234567890abcdef12345678";
    const toAddress = wneon.address;
    const data = "0x";

    const unwrapTransaction = wrappedNeonTransaction<TransactionRequest>(fromAddress, toAddress, data);