Skip to main content

RPC Reference

Interactive reference for the raw HTTP endpoints exposed by tachid. For the TypeScript SDK wrapper around these calls, see API Reference.

Every response carries an X-Tachi-Height header with the last block the answering node committed, so you can check how fresh an answer is (it is exposed to browsers via CORS). List endpoints page with page_size, except /tachi_listPaymentRequests, which takes limit and offset. /tachi_nodeInfo lists the runtimes and gated consensus rules (features) with their activation heights, so check it before using vault close, lock consent or payment requests on a network. funding_txid on /tachi_vault and /tachi_listVaults is in internal byte order (what the vault id hashes). /tachi_depositStatus and block explorers take the display-order txid, which the same rows carry as funding_txid_display.

Every epoch a block or tx response reports (/tachi_tx, /tachi_txStatus, the block and transaction lists) comes from the epoch record that covers the height, so they all agree and can be passed as a RIP origin_epoch. /tachi_listEpochs lists and counts closed epochs only; the still-open one is current_epoch in /tachi_stats.

Tachi Daemon RPCv0.1.0
POST/

Bitcoin JSON-RPC 1.0 proxy

Forwards a JSON-RPC 1.0 request to bitcoind. Methods in readOnlyBitcoinMethods are always proxied; other methods require an X-Api-Key header matching the universal key (see SetBitcoinAPIKey).

Request Body

idstring
ID is the caller-chosen request identifier echoed back in the response.
jsonrpcstring
JSONRPC is the JSON-RPC protocol version, fixed at "1.0" for bitcoind compatibility.
methodstring
Method is the bitcoind RPC method name to invoke (e.g. "getblockchaininfo").
paramsobject
Params is the raw JSON parameter array forwarded unchanged to bitcoind.

Responses

200OK
error—
Error carries the bitcoind error payload when the call failed; nil on success.
idstring
ID echoes back the caller-supplied request identifier.
resultobject
Result is the raw JSON result body from bitcoind; nil when an error occurred.
400invalid json-rpc request
string
403method not permitted
string
405method not allowed
string
415content-type must be application/json
string
503bitcoin client not configured
string

API Key

Code Sample

curl -X POST \  'https://rpc-regtest.tachibtc.com/' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "",
  "jsonrpc": "",
  "method": "",
  "params": {}
}'

Try It

Regtest