Hello World in your browser
Build and deploy your first on-chain BBAChain program, directly in your browser using BBAChain Playground.
Overview
BBAChain Playground is a web-based IDE that allows you to write, build, and deploy BBAChain programs directly in your browser without any local setup.
Getting Started
- Visit BBAChain Playground
- Create a new project
- Write your first program
- Build and deploy
Example Program
use bbachain_program::{
account_info::AccountInfo,
entrypoint,
entrypoint::ProgramResult,
pubkey::Pubkey,
};
entrypoint!(process_instruction);
pub fn process_instruction(
program_id: &Pubkey,
accounts: &[AccountInfo],
instruction_data: &[u8],
) -> ProgramResult {
// Your program logic here
Ok(())
}
Next Steps
- Learn about Transactions
- Understand Accounts
- Explore Programs