Computer
The Computer class is the main client API for the Bitcoin Computer. Methods are grouped below. Prefer the query helpers under query.
Basic
You can build almost all smart contracts with these.
Modules
Deploy JavaScript modules (preferably via taproot) to avoid redundant on-chain storage for smart contracts, keep using expressions tiny, and minimize on-chain technical dust / hygiene dust costs. See Fees for details and best practices.
Query outputs
Query the node’s Output table. All of these accept a TXOQuery (see getTXOs). verbosity: 0 (default) returns revision strings; verbosity: 1 returns full rows.
Advanced encode / decode
For applications that need control over signing, UTXOs spent, custom scripts, or collaborative transaction building.
History
Access historical versions of on-chain objects and related graph data.
Wallet
Access the client-side wallet and node connection.
Indexer readiness
After broadcast, the node may take a short time to index outputs. Use these when you need strong read consistency before sync / getOUTXOs.
Real-time (SSE)
Deprecated
Still present for backward compatibility; prefer the replacements.