Skip to main content
Mint an NFT by calling a smart contract’s mint function with the embedded wallet.

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

Make sure the user has sufficient ETH balance to cover both the mint price and gas fees.
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