trac-peer RPC API v1

Health check

get

Basic liveness probe.

Responses
chevron-right
200

OK

application/json
okbooleanRequired
get
/v1/health
200

OK

Peer + MSB status summary

get

Status summary for the running peer and its embedded MSB client view.

Useful for UIs to display:

  • peer identity (pubKeyHex, writerKeyHex, msbAddress)

  • subnet info (bootstrap/channel, signed/unsigned lengths)

  • MSB view (bootstrapHex, networkId, signedLength)

Responses
chevron-right
200

OK

application/json
get
/v1/status

Contract schema (ABI-like discovery)

get

ABI-like discovery document for wallets/dApps.

Includes:

  • supported contract transaction types (contract.txTypes)

  • per-op input schema hints (contract.ops)

  • protocol API method schema (api.methods)

Responses
chevron-right
200

OK

application/json
schemaVersionnumberRequired
schemaFormatstring · enumRequiredPossible values:
get
/v1/contract/schema

Generate a nonce for contract tx signing

get

Generates a nonce used in the wallet signing payload.

Responses
chevron-right
200

OK

application/json
noncestringRequired

32-byte hex string (64 hex chars)

Pattern: ^[0-9a-fA-F]{64}$
get
/v1/contract/nonce

Get tx signing context (MSB context)

get

Returns the MSB tx context required for wallets to compute the contract tx hash.

The wallet typically signs a payload derived from:

  • { prepared_command, nonce, context }

Responses
chevron-right
200

OK

application/json
get
/v1/contract/tx/context

Simulate or broadcast a wallet-signed contract transaction

post

Submits a wallet-signed contract transaction.

Notes:

  • Tx submission is opt-in; operators must start the peer with --api-tx-exposed.

  • Use sim=true first (preflight) and only broadcast (sim=false) if simulation succeeds.

Body
txstringRequired

32-byte hex string (64 hex chars)

Pattern: ^[0-9a-fA-F]{64}$
addressstringRequired

32-byte hex string (64 hex chars)

Pattern: ^[0-9a-fA-F]{64}$
signaturestringRequired

64-byte hex string (128 hex chars)

Pattern: ^[0-9a-fA-F]{128}$
noncestringRequired

32-byte hex string (64 hex chars)

Pattern: ^[0-9a-fA-F]{64}$
simbooleanOptionalDefault: false
Responses
chevron-right
200

OK

application/json
resultanyRequired
Other propertiesanyOptional
post
/v1/contract/tx

Read a single key from subnet state

get

Reads one key from subnet state.

  • confirmed=true reads from the subnet signed view (final snapshots).

  • confirmed=false reads from the latest local view (fast UI updates).

Query parameters
keystring · min: 1 · max: 4096Required

Exact Hyperbee key

confirmedbooleanOptional

If true, reads from signed view; if false, reads from latest (unsigned) view

Default: true
Responses
chevron-right
200

OK

application/json
keystringRequired
confirmedbooleanRequired
valueanyRequired
get
/v1/state

Last updated