Implementation
Key concepts
- Payable function - The mint function accepts ETH (specified in
value) - Function encoding - Encodes the mint function call with quantity parameter
- Value in wei - ETH amount must be specified in wei (1 ETH = 10^18 wei)
- Contract call - Sends transaction to NFT contract with both value and data
Common patterns
Dynamic quantity
With status tracking
Important notes
The ABI should match your NFT contract’s mint function signature. Common variations include
mint(), mint(uint256 quantity), or mint(address to, uint256 quantity).Next steps
Solana Programs
Interact with Solana programs
Multi-Step Flow
Handle complex transaction flows