Skip to main content

JSON-RPC Methods

Endpoint: POST /rpc

Kwery proxies all standard Kaspa wRPC methods supported by rusty-kaspa v2 nodes. Node-admin and raw subscription control are blocked on shared infrastructure — use Webhooks or the Kwery WebSocket relay for events.

Credit tiers

TierCreditsExamples
Light1ping, getServerInfo, getBlockDagInfo, getSink, getFeeEstimate
Heavy5getBlock, getUtxosByAddresses, getVirtualChainFromBlockV2, submitTransaction

See Credits for the full breakdown.

Node & network (1 credit)

MethodDescription
pingConnection liveness check
getServerInfoNode version and capabilities
getInfoGeneric node information
getSyncStatusSync progress
getCurrentNetworkMainnet or testnet
getSystemInfoHost RAM, cores, file descriptors
getConnectionsActive TCP connection count
getMetricsConsensus and performance metrics
getPeerAddressesKnown and banned peer addresses
getConnectedPeerInfoConnected peers and statistics

DAG & blocks (1–5 credits)

MethodCreditsDescription
getBlockDagInfo1DAG tips and network info
getSink1Selected tip block hash
getSinkBlueScore1Sink blue score
getBlockCount1Block count in DAG
getCurrentBlockColor1Block color in DAG
getBlockRewardInfo1Block reward details
getBlock5Block by hash
getBlocks5Multiple blocks
getHeaders5Block headers in range
getVirtualChainFromBlock5Virtual chain from block
getVirtualChainFromBlockV25Virtual chain (v2)
getSeqCommitLaneProof1Sequencing commitment lane proof
getBlockTemplate5Mining block template
submitBlock5Submit mined block

UTXOs & balances (1–5 credits)

MethodCreditsDescription
getBalanceByAddress1Balance for one address
getBalancesByAddresses5Balances for multiple addresses
getUtxosByAddresses5UTXOs for addresses
getUtxoReturnAddress1UTXO return address lookup

Mempool & transactions (5 credits)

MethodCreditsDescription
getMempoolEntry5Single mempool entry
getMempoolEntries5Full mempool snapshot
getMempoolEntriesByAddresses5Mempool entries by address
submitTransaction5Broadcast signed transaction
submitTransactionReplacement5RBF transaction replacement

Fees & supply (1 credit)

MethodDescription
getFeeEstimateFee estimation
getFeeEstimateExperimentalExperimental fee estimation
getCoinSupplyCurrent issuance supply
getDaaScoreTimestampEstimateDAA score timestamp estimate
estimateNetworkHashesPerSecondNetwork hashrate estimate
getSubnetworkSubnetwork info

Not available via HTTP RPC

These Kaspa wRPC methods are intentionally blocked on Kwery's shared nodes:

MethodReason
addPeer, ban, unbanNode peer management
shutdown, resolveFinalityConflictNode administration
subscribe, unsubscribe, notify*Use Kwery WebSocket relay

Example

curl -X POST "https://kwery-api.com/rpc" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: kwery_live_YOUR_KEY" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getUtxosByAddresses",
    "params": {
      "addresses": ["kaspa:..."]
    }
  }'