RPC Calls
Execute Kaspa RPC calls directly from this page using the WASM SDK. Useful for quick reference and easy on-demand information.
Loading WASM SDK...
estimateNetworkHashesPerSecond
Estimates the network hash rate
View JavaScript
const response = await client.estimateNetworkHashesPerSecond({});getBalanceByAddress
Retrieves the balance of a specific address
View JavaScript
const response = await client.getBalanceByAddress({
"address": ""
});getBalancesByAddresses
Retrieves balances for multiple addresses
View JavaScript
const response = await client.getBalancesByAddresses({
"addresses": []
});getBlock
Retrieves a specific block from the Kaspa BlockDAG
View JavaScript
const response = await client.getBlock({
"hash": "",
"includeTransactions": false
});getBlockCount
Returns the current block and header counts
View JavaScript
const response = await client.getBlockCount();getBlockDagInfo
Provides information about the Directed Acyclic Graph structure
View JavaScript
const response = await client.getBlockDagInfo();getBlockTemplate
Requests a block template for mining
View JavaScript
const response = await client.getBlockTemplate({
"payAddress": ""
});getBlocks
Retrieves multiple blocks from the Kaspa BlockDAG
View JavaScript
const response = await client.getBlocks({
"includeBlocks": true,
"includeTransactions": false
});getCoinSupply
Returns the total current coin supply
View JavaScript
const response = await client.getCoinSupply();getConnectedPeerInfo
Returns information about connected peers
View JavaScript
const response = await client.getConnectedPeerInfo();getConnections
Returns the node’s current client and peer connection counts
View JavaScript
const response = await client.getConnections();getCurrentBlockColor
Reports whether a block is blue or red from the current virtual’s point of view
View JavaScript
const response = await client.getCurrentBlockColor({
"hash": ""
});getCurrentNetwork
Retrieves the current network configuration
View JavaScript
const response = await client.getCurrentNetwork();getDaaScoreTimestampEstimate
Estimates the wall-clock timestamps for a list of DAA scores
View JavaScript
const response = await client.getDaaScoreTimestampEstimate({
"daaScores": []
});getFeeEstimate
Returns fee rate estimates
View JavaScript
const response = await client.getFeeEstimate();getFeeEstimateExperimental
Returns fee rate estimates plus verbose mempool sampling data
View JavaScript
const response = await client.getFeeEstimateExperimental();getHeaders
Retrieves a range of block headers starting from a given hash
View JavaScript
const response = await client.getHeaders({
"startHash": "",
"isAscending": true
});getInfo
Retrieves general information about the Kaspa node
View JavaScript
const response = await client.getInfo();getMempoolEntries
Retrieves mempool entries
View JavaScript
const response = await client.getMempoolEntries({
"includeOrphanPool": false,
"filterTransactionPool": false
});getMempoolEntriesByAddresses
Retrieves mempool entries associated with the given addresses
View JavaScript
const response = await client.getMempoolEntriesByAddresses({
"addresses": [],
"includeOrphanPool": false,
"filterTransactionPool": false
});getMempoolEntry
Retrieves a specific mempool entry by transaction ID
View JavaScript
const response = await client.getMempoolEntry({
"transactionId": "",
"includeOrphanPool": false,
"filterTransactionPool": false
});getMetrics
Retrieves various metrics about the node
View JavaScript
const response = await client.getMetrics();getPeerAddresses
Returns a list of known peer addresses
View JavaScript
const response = await client.getPeerAddresses();getServerInfo
Retrieves information about the Kaspa server
View JavaScript
const response = await client.getServerInfo();getSink
Retrieves the current sink block (highest cumulative difficulty)
View JavaScript
const response = await client.getSink();getSinkBlueScore
Returns the blue score of the current sink block
View JavaScript
const response = await client.getSinkBlueScore();getSubnetwork
Retrieves information about a subnetwork by id
View JavaScript
const response = await client.getSubnetwork({
"subnetworkId": ""
});getSyncStatus
Obtains basic synchronization status of the node
View JavaScript
const response = await client.getSyncStatus();getUtxoReturnAddress
Returns the address that funded a transaction, for refunds
View JavaScript
const response = await client.getUtxoReturnAddress({
"txid": ""
});getUtxosByAddresses
Retrieves unspent transaction outputs for addresses
View JavaScript
const response = await client.getUtxosByAddresses({
"addresses": []
});getVirtualChainFromBlock
Retrieves the virtual chain from a specified block
View JavaScript
const response = await client.getVirtualChainFromBlock({
"startHash": "",
"includeAcceptedTransactionIds": false
});getVirtualChainFromBlockV2
Virtual chain from a block, with tunable response verbosity and a confirmation-depth filter
View JavaScript
const response = await client.getVirtualChainFromBlockV2({
"startHash": ""
});ping
Round-trips a message against the node to confirm liveness
View JavaScript
const response = await client.ping({});