Kryvon / KRYVON DEVELOPER DOCSKRYVON DEVELOPER DOCS

Developer Documentation

Learn how to call Kryvon JSON-RPC, subscribe to node events, and work with the chain, wallet indexer and mining APIs.

Use Kryvon JSON-RPC to inspect blocks, query SQIsign payment cells and connect developer tools to a running node. The node speaks JSON-RPC 2.0. The standard HTTP endpoint is http://127.0.0.1:8114.

Make an RPC request

Start a Kryvon node, then make a POST request with a JSON body.

curl -fsS http://127.0.0.1:8114 \
  -H 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"get_tip_block_number","params":[]}'

A node at genesis returns "0x0". Block heights, capacity and many other integers use 0x-prefixed hex strings. One KRVN equals 1,000,000,000 quarks.

Connect over WebSocket

Enable rpc.ws_listen_address in kryvon.toml and restart the node. The Subscriptions reference contains the configuration and a subscribe/unsubscribe example. The node also supports subscriptions over TCP via rpc.tcp_listen_address.

Keep raw node RPC addresses on loopback or a trusted private network. The standard RPC service accepts unauthenticated requests, including administrative and transaction submission methods. Use an HTTPS proxy for remote access with the methods your application needs.

RPC reference

These examples use the bundled Kryvon mainnet genesis where chain data is needed. Results such as tip height, fee estimates and peer counts can vary by node.

RPC types · Types continued · Types part 3 · RPC errors

Compatibility

Use local_node_info to identify the running node version. An RPC module can require a setting in kryvon.toml or a startup flag. Deprecated methods can be gated by rpc.enable_deprecated_rpc. Use the active replacement listed in the reference when updating a client.

The reference follows the Kryvon node source. The HTTP and subscription examples were checked against Kryvon 0.210.0.

The RPC reference includes material from the node project under its MIT license.