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

Should return a mint address string
Input: connection, payerExpected: typeof result === 'string' && result.length >= 32
Mint address should be a valid public key string
Input: connection, payerExpected: typeof result === 'string'

Discussion