Skip to main content
Superteam Brasil
Back
+10 XP
8/12

Challenge: Create a Token Mint

Write a function that creates a new SPL token mint on Solana devnet.

Requirements

  • Create a new token mint with 9 decimals
  • The payer should be both the mint authority and freeze authority
  • Return the mint address as a base58 string

Test Cases

Returns a valid mint address string (base58 length)
Input: connection, payerExpected: typeof result === 'string' && result.length >= 32 && result.length <= 44

Discussion