Skip to main content
Ralph Studio includes a browser-based IDE for writing, compiling, and deploying Ralph contracts directly to Alephium mainnet or testnet. No local toolchain required.

Open the IDE

Navigate to Ralph StudioIDE in the dashboard sidebar. You will see a split editor, Ralph source on the left, compiler output and deployment panel on the right.

Write your contract

Paste or write your Ralph contract in the editor. Here is a minimal example to deploy:

Compile

Click Compile in the IDE toolbar. The compiler output panel shows:
  • Bytecode: the compiled contract ready for deployment
  • ABI: the function signatures and field types
  • Warnings: unused variables, missing annotations, and other non-fatal issues
  • Errors: problems that must be fixed before deployment
Fix all errors before proceeding. Warnings do not block deployment but are worth reviewing.

Set initial fields

Before deploying you set the initial values for all contract fields. The IDE shows a form generated from the ABI: Immutable fields cannot be changed after deployment. Double-check them before signing.

Connect your wallet

Click Connect Wallet and approve the connection in your Alephium extension wallet. The IDE supports:
  • Alephium Extension Wallet (Chrome/Firefox)
The connected wallet pays the deployment transaction fee and signs the transaction.

Deploy

Click Deploy. The IDE builds a deployment transaction and sends it to your connected wallet for signing. After signing:
  1. The transaction is broadcast to the network
  2. The IDE polls for confirmatior, typically 16–32 seconds
  3. Once confirmed the contract address appears in the deployment panel
Save the contract address. It is permanent the same address is used for all future interactions.

Verify deployment

Confirm the contract is live by querying its state:

Deploying to testnet

Switch the network selector in the IDE from Mainnet to Testnet before deploying. Testnet ALPH is free, use the faucet in your Alephium wallet to get test funds. Always deploy and test on testnet before mainnet. Contract addresses differ between networks.

Next steps

Interacting with contracts

Call functions on your deployed contract

Contract events

Query events emitted by your contract