daitchain

REST + Tendermint RPC

Standard Cosmos SDK REST plus raw CometBFT RPC. REST is auto-generated from the proto definitions; CometBFT RPC is the unmodified upstream surface.

Phase 1. The bulk of DAIT custom-module REST routes light up with the devnet alpha. Standard cosmos-sdk routes (bank, staking, gov, distribution, auth) work today on the local devnet.

Common REST endpoints

Account

GET /cosmos/auth/v1beta1/accounts/{address}
GET /cosmos/bank/v1beta1/balances/{address}

Staking

GET /cosmos/staking/v1beta1/validators
GET /cosmos/staking/v1beta1/validators/{validator_addr}
GET /cosmos/staking/v1beta1/delegations/{delegator_addr}

DAIT custom modules Phase 1

GET /dait/staking_tiers/v1/tier_for_address/{addr}
GET /dait/staking_tiers/v1/gpus_for_address/{addr}
GET /dait/staking_tiers/v1/list_by_tier/{tier_id}

GET /dait/tee_attest/v1/attestation/{id}
GET /dait/tee_attest/v1/attestations_by_host/{addr}
GET /dait/tee_attest/v1/trust_roots
GET /dait/tee_attest/v1/tcb_info
GET /dait/tee_attest/v1/epoch_nonce

GET /dait/pouw/v1/credits/{addr}
GET /dait/pouw/v1/effective_stake/{valoper}
GET /dait/pouw/v1/pending_reveals
GET /dait/pouw/v1/model_weight/{model_id}

GET /dait/compute_market/v1/deployment/{id}
GET /dait/compute_market/v1/deployments_by_owner/{addr}
GET /dait/compute_market/v1/lease/{id}
GET /dait/compute_market/v1/provider/{addr}

GET /dait/state_channel/v1/channel/{id}
GET /dait/state_channel/v1/channels_by_user/{addr}
GET /dait/state_channel/v1/channels_by_host/{addr}

GET /dait/messaging/v1/pubkey/{addr}
GET /dait/messaging/v1/contacts/{addr}
GET /dait/messaging/v1/groups/{addr}
GET /dait/messaging/v1/quota_remaining/{addr}

GET /dait/agent/v1/agent/{agent_id}
GET /dait/agent/v1/agents_by_operator/{addr}
GET /dait/agent/v1/agent_children/{parent_agent_id}

Tendermint RPC

Unmodified CometBFT v0.39 RPC surface. Useful endpoints:

GET  /status                 # node status, sync info, latest block
GET  /block?height=12345
GET  /validators?height=12345
GET  /tx?hash=0xABCD...
POST /broadcast_tx_sync       # synchronous broadcast (CheckTx ack)
POST /broadcast_tx_async      # fire and forget
POST /broadcast_tx_commit     # waits for inclusion (debug only)

WebSocket subscriptions

// JSON-RPC 2.0 over wss://rpc.daitchain.io/websocket
{
  "jsonrpc": "2.0",
  "method": "subscribe",
  "id": 1,
  "params": { "query": "tm.event='NewBlock'" }
}

// Filter on a specific message type
{ "query": "tm.event='Tx' AND message.action='/dait.pouw.v1.MsgRevealReceipt'" }

See also