Kovanica
Testnet

API Reference · kovanica-testnet

API reference

The HTTP contract the node speaks. Read endpoints are proxied live against the public testnet node; write endpoints require browser-side Ed25519 signing and belong in the wallet.

Upstream status

Testnet

probing…

MainnetLaunching soon

The mainnet node is not open yet. The reference serves testnet until genesis.

Endpoints

MethodPathNotes
GET/api/headgenesis, tip, height
GET/api/bootstrapplus listen, peers, upstream probe
GET/api/p2pTCP listen + bootstrap peers
GET/api/block/{id}typed block detail (S-02)
GET/api/tx/{id}typed transaction detail
GET/api/address/{addr}address summary (balance, txs)
GET/api/blocksoctet-stream dump (clone catch-up)
GET/api/statefull DAG + flags
GET/api/utxos?address=spendable outputs
GET/api/history?address=deltas per address
GET/api/tokens?address=KVP-102 tokens on chain, with the caller's balance
GET/api/poolsKVP-102 AMM pools: reserves, fee, LP supply, spot price
GET/api/fee_estimateRFC-006 fee floor, atoms/byte
GET/api/originsISO3 pulses
GET/api/specfull protocol spec, text/plain
GET/api/collection/{id}KVP-106 collection metadata
GET/api/nft/{id}KVP-106 NFT metadata
GET/api/rwa/{id}RWA asset metadata
GET/api/light_proofSPV/light-node proof
GET/api/light_synclight-node sync slice
POST/api/contract_callread-only contract dry-run simulation (kovanica_call + estimateGas)
POST/api/contract_storageread-only contract storage slot & Bincode state reader (kovanica_getStorageAt)
POST/api/contract_receiptread-only transaction receipt & emitted Bincode event log inspector (kovanica_getTransactionReceipt)
POST/api/preparesighash + fee + change
POST/api/submitqueue signed tx
POST/api/token_prepareKVP-102 token_transfer call: sighash for an offline signature
POST/api/token_submitsubmit a signed KVP-102 token_transfer call
POST/api/submit_txsubmit with {"tx_hex": …} (SDK parity)
POST/api/producepack mempool
POST/api/minelocal playground block mint simulation
POST/api/faucettestnet open faucet
POST/api/originpulse a country
POST/api/multisig/createM-of-N P2SH address from pubkeys
POST/api/multisig/buildbuild a multisig spend proposal
POST/api/multisig/signsign a multisig sighash
POST/api/multisig/combinecombine partial signatures
POST/api/multisig/submitsubmit a combined multisig spend

Playground — read only

GET /api/api/head

Run a read endpoint to see the live response.

Write endpoints (prepare, submit, faucet, …) are reference-only: signing happens in the browser wallet, so the seed never reaches the node.

Write endpoints — reference only

GET
/api/blocks

octet-stream dump (clone catch-up)

POST
/api/prepare

sighash + fee + change

POST
/api/submit

queue signed tx

POST
/api/token_prepare

KVP-102 token_transfer call: sighash for an offline signature

POST
/api/token_submit

submit a signed KVP-102 token_transfer call

POST
/api/submit_tx

submit with {"tx_hex": …} (SDK parity)

POST
/api/produce

pack mempool

POST
/api/mine

local playground block mint simulation

POST
/api/faucet

testnet open faucet

POST
/api/origin

pulse a country

POST
/api/multisig/create

M-of-N P2SH address from pubkeys

POST
/api/multisig/build

build a multisig spend proposal

POST
/api/multisig/sign

sign a multisig sighash

POST
/api/multisig/combine

combine partial signatures

POST
/api/multisig/submit

submit a combined multisig spend

The public RPC serves reads anonymously. Write methods currently answer HTTP 401 — writes are not available via the public RPC until PRO-53 ships.

OpenAPI & JSON-RPC 2.0 Explorer

RPC Method Explorer & Snippet Generator

Filter Kovanica JSON-RPC 2.0 methods by category or keyword and copy shell-safe curl or kovanica-sdk (v0.7.0) TypeScript snippets.

JSON-RPC 2.0kovanica_blockNumber
SDK: client.blockNumber()

Returns the latest committed GHOSTDAG leader height as a hex-encoded quantity.

Returns: HexQuantity (e.g. "0x1a2b")

Parameters (0)

No parameters required.

curl -sS -X POST 'https://rpc-testnet.kovanica.online/rpc' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"kovanica_blockNumber","params":[]}'

JSON-RPC 2.0 Quick Reference

RPC Identity Headers & kovanica_mempoolStats

Every /rpc and /health response attaches canonical chain identity headers exposed via Access-Control-Expose-Headers.

X-Kovanica-Chain-Id

Example: 2

Decimal chain ID (1 Mainnet, 2 Testnet, 3 Devnet).

X-Kovanica-Network-Tag

Example: 2-24cdb5fadd98b207

Canonical network tag (1-f35df34c92001436 for Chain 1, 2-24cdb5fadd98b207 for Chain 2).

X-Kovanica-Rpc-Version

Example: 1.0.0

Semantic version of the kovanica-rpc server crate.

kovanica_mempoolStats
params: [] (empty array or omitted)

Read-only fee-percentile snapshot of the local mempool. Supported in both single POST /rpc and JSON-RPC 2.0 batch requests.

pending_countnumber

Total pending transactions currently held in the mempool.

total_bytesnumber

Aggregate serialized byte size of all pending mempool transactions.

min_fee_per_bytenumber | null

Lowest fee rate in atoms/byte among pending transactions (null if empty).

p50_fee_per_bytenumber | null

Median (50th percentile) fee rate in atoms/byte (null if empty).

p90_fee_per_bytenumber | null

90th percentile fee rate in atoms/byte for priority inclusion (null if empty).

max_fee_per_bytenumber | null

Highest fee rate in atoms/byte among pending transactions (null if empty).

When pending_count is 0, min_fee_per_byte, p50_fee_per_byte, p90_fee_per_byte, and max_fee_per_byte return null.

Single-POST JSON-RPC 2.0 batch probe (with response headers)
curl -i -sS -X POST 'https://rpc-testnet.kovanica.online/rpc' \
  -H 'Content-Type: application/json' \
  -d '[{"jsonrpc":"2.0","id":1,"method":"kovanica_chainId","params":[]},{"jsonrpc":"2.0","id":2,"method":"kovanica_blockNumber","params":[]},{"jsonrpc":"2.0","id":3,"method":"kovanica_mempoolStats","params":[]}]'