# Api

The Bitcoin Computer Node exposes an API that can be used to interact with the node. The variables CHAIN and NETWORK are used to define the chain and network that the node is running on.

# Wallet

Method Description
balance Get the balance of a wallet.
list-txs List sent and received transactions for a given address.
sent-outputs List sent outputs of a wallet.
received-outputs List received outputs of a wallet.
utxos List unspent outputs of a wallet.

# Transactions

Method Description
ancestors Get the ancestors of a transaction.
bulk Get raw transactions for a list of transaction ids.
json Get a transaction in json format.
post Post a transaction to the Bitcoin network.

# Blockchain

Method Description
height Get the height of an specific block.
mine Mine an specific number of blocks to a random address.
rpc Call a Bitcoin RPC method.

# Regtest Faucet

Method Description
faucet Get coins from the faucet.
faucetScript Get coins from the faucet using a script.

# Query revisions

Method Description
next Get the next revision of a given revision.
prev Get the previous revision of a given revision.
non-standard-utxos Query revisions by module specifier, public key, limit, order, offset and list of transaction ids.
revs Get the revisions of a list of transactions.
revToId Given a revision, get the id of the smart contract.

# OffChain

Method Description
id Get the data stored in the offchain storage.
store Stores the hex of the data in the offchain storage.