Skip to content
Most apps never write a program. Payments, tokenized assets, and markets run on programsProgramsPrograms are code deployed to the network that owns and updates accounts. Most apps call existing programs, such as the Token program, rather than writing their own.Learn more (Programs: Programs are code deployed to the network that owns and updates accounts. Most apps call existing programs, such as the Token program, rather than writing their own.) that already exist on the network, such as the Token program. Write your own when you need rules or state that no existing program provides: code that runs on Solana, owns its accountsAccountsEverything on Solana (balances, tokens, programs, app data) lives in accounts: records at an address, each with an owner that is allowed to change it.Learn more (Accounts: Everything on Solana (balances, tokens, programs, app data) lives in accounts: records at an address, each with an owner that is allowed to change it.) and can be called by anyone.

​Build a program

​Test, deploy, and integrate

For local testing beyond unit tests, see LiteSVM (an in-process VM) and Surfpool (a local network).
New to how programs store state? Read program-derived addressesProgram-derived addressesA PDA is an address derived from a program plus some seeds. It has no private key, so only that program can sign for it, which makes it handy for storing app state at predictable addresses.Learn more (Program-derived addresses: A PDA is an address derived from a program plus some seeds. It has no private key, so only that program can sign for it, which makes it handy for storing app state at predictable addresses.) and cross-program callsCross-program callsA cross-program call (CPI) is one program calling another inside the same transaction, the way your program would call the Token program to move tokens.Learn more (Cross-program calls: A cross-program call (CPI) is one program calling another inside the same transaction, the way your program would call the Token program to move tokens.) in How Solana works before you design your accounts.