Want to use an Anchor program in your
@solanamobile app?
Learn how to scaffold an Expo app that talks to an Anchor counter program on Devnet, add an instruction, deploy your own copy, and use Codama keep the app and program in sync.
Got ideas for videos, templates, or sample apps you'd like to see? Reply and we'll put them on the list.
Chapters:
00:00 Preview: a counter app on Devnet
00:26 Prerequisites: Anchor and Solana fundamentals
00:43 Programs, accounts, and transactions
00:55 Create the app from the Anchor template
01:16 Run the app and connect the wallet
01:32 Initialize and increment the counter
02:05 Inside the Anchor program
02:57 The IDL: the program's contract
03:15 Generate the client with Codama
03:59 Wire the client into the app
05:10 From program to UI: the full flow
05:45 Add a decrement instruction with an agent
06:06 Review the generated changes
06:35 Why we deploy our own program
06:56 Set up a new program address
07:24 Deploy to Devnet and fund the wallet
07:56 Test the new decrement instruction
08:37 Recap