Code Playground
Test and run Solana code snippets directly in your browser
Example Code
Load pre-made Solana code examples
My Code
Save and manage your code snippets
Saved Code
No saved code yet
Documentation
Helpful resources for Solana development
Code runs in a sandbox environment with mocked Solana APIs for demonstration purposes.
Function/API | Description |
---|---|
createMint() | Creates a new SPL token mint and configures the account appropriately |
mintTo() | Mints new tokens to an account |
getOrCreateAssociatedTokenAccount() | Returns the associated token account if it exists, otherwise creates it |
Metaplex API | Creates and validates NFT metadata, manages collections, and handles royalties |
Connection.getVersion() | Returns the current Solana version running on the node |