WAXPBLOCKCHAIN WIKI
Developer guide

Build on WAX: the complete system map

A WAX application is rarely just a smart contract. Production systems combine on-chain logic, account permissions, RPC access, indexed history, a signing wallet and an interface that explains every action.

Updated 29 November 2026 · Independent guide

In plain English A WAX app has a screen, a wallet that asks for approval and programs that keep records. Start collecting · Browse collections

The application layers

The front end collects user intent and asks a wallet to sign transactions. The wallet identifies the account, displays actions and signs with an authorised permission. RPC nodes accept transactions and expose current chain state. Smart contracts validate actions and update on-chain tables. Indexers make historical and relational queries practical for the user interface.

These layers should stay conceptually separate. A contract cannot trust a button label in the browser; it must enforce authority and rules on-chain. A front end should not scrape a block explorer as if it were a stable API. An indexer is useful for activity feeds but should not replace authoritative chain state when validating a critical action.

Design rule

Put ownership, authorisation and irreversible settlement rules in the contract. Put presentation and convenience in the interface. Treat third-party data services as replaceable dependencies.

Smart contracts, WASM and ABI files

WAX smart contracts are commonly written in C++ using WAX Contract Development Toolkit tooling. Compilation produces WebAssembly, or WASM, which contains executable contract logic. The companion ABI describes actions, tables and data structures so clients can serialise human-readable values into the binary format expected by the chain.

Actions are the contract’s entry points. Tables persist structured state. Authorisation checks prove that the required account or permission approved an action. Contracts should validate input, define payer behaviour for RAM, limit unbounded work and fail clearly. An upgradeable contract also needs an authority plan: whoever can deploy new code can change future behaviour.

Do not embed private keys in source, front-end bundles or CI logs. Deployment and automation accounts should use purpose-built permissions. Where possible, link a custom permission only to the precise contract action it needs.

RPC APIs and indexed history

Antelope-style chain RPC endpoints expose operations such as reading account information, querying table rows, fetching chain status and submitting transactions. Public endpoints differ in capacity and enabled plugins, so applications should use timeouts, clear error handling and more than one provider for essential reads.

Raw chain APIs are strong for present state but not designed to answer every historical question efficiently. Indexers process blocks into searchable services for transfers, NFT ownership history and activity feeds. Verify an indexer’s freshness and understand its pagination. For a critical ownership decision, compare indexed output with current contract tables rather than assuming the index is never delayed.

A sensible testing path

  1. Define actions, tables, permissions and RAM payers on paper.
  2. Build and test contract logic locally, including failure cases.
  3. Create test accounts and deploy to the WAX testnet.
  4. Connect the wallet flow and show readable transaction details.
  5. Exercise resource exhaustion, duplicate actions, invalid authorities and malformed input.
  6. Test RPC fallback and indexer delay.
  7. Review deployment permissions and recovery before mainnet.

The testnet is where integration mistakes should surface. It does not reproduce every mainnet load condition, but it prevents developers from treating production accounts and real assets as a first-run experiment.

Production checklist

  • Pin and document the WAX-CDT/toolchain version used to build releases.
  • Make contract builds reproducible and retain source for deployed versions.
  • Use code review and automated tests for contract changes.
  • Back up deployment authority securely and keep it out of daily-use sessions.
  • Monitor RPC health, transaction failures and resource balances.
  • Publish contract account names so users can verify signing requests.
  • Explain upgrades, fees, RAM responsibilities and mutable NFT behaviour.
  • Provide a maintenance plan for indexers, APIs and abandoned dependencies.

A successful deployment is the start of operations, not the end of development. Contracts, endpoints and interfaces need monitoring, and users need plain-language notice when behaviour or authority changes.

Primary sources