Skip to main content

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

  1. Visit BBAChain Playground
  2. Create a new project
  3. Write your first program
  4. 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