• Creates a transaction object to mint Neon tokens.

    This function returns an object containing the necessary fields to create a mint transaction. The fields include the data payload, source wallet address, target SPL token address, and a default value of 0.

    Type Parameters

    • T

      The type to which the resulting object should be cast.

    Parameters

    • neonWallet: string

      The address of the Neon wallet that will be the source of the transaction.

    • splToken: SPLToken

      The SPL token object that contains the address to which the tokens are to be minted.

    • data: string

      Additional data payload to be included in the transaction.

    Returns T

    An object representing the mint transaction, cast to the specified type T.

    // Example usage with TransactionRequest type from ethers.js:
    import { TransactionRequest } from 'ethers';

    const transaction: TransactionRequest = createMintNeonTransaction<TransactionRequest>(
    '0xYourNeonWalletAddress',
    { address: '0xTokenAddress', address_spl: 'splTokenAddress', decimals: 18, symbol: 'TOKEN', ... },
    '0xTransactionData'
    );