The address of the Neon wallet that will be the source of the transaction.
The SPL token object that contains the address to which the tokens are to be minted.
Additional data payload to be included in the transaction.
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'
);
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
.