Skip to main content

Endpoint

All JSON-RPC calls use a single POST endpoint.
NetworkURL
Testnethttps://api.test.stablenet.network
Every request follows the JSON-RPC 2.0 envelope:
{
  "jsonrpc": "2.0",
  "method": "<method_name>",
  "params": [...],
  "id": 1
}

Namespaces

NamespacePurposePublic RPC
ethBlocks, transactions, state, gas
netNetwork info
web3Utilities
txpoolTransaction pool inspection
istanbulWBFT consensus validators
debugTracing, diagnosticsNode operators only
personalAccount managementDisabled on public RPC
adminNode managementDisabled on public RPC

eth Namespace

eth_blockNumber

Returns the current block number.
curl -X POST https://api.test.stablenet.network \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_blockNumber",
    "params": [],
    "id": 1
  }'
Response
{ "jsonrpc": "2.0", "id": 1, "result": "0x132d3" }

eth_getBalance

Returns the KRC balance of an account in wei. Parameters
#TypeDescription
1addressAccount address
2BlockTag"latest", "earliest", "pending", or block number (hex)
curl -X POST https://api.test.stablenet.network \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_getBalance",
    "params": ["0xYourAddress", "latest"],
    "id": 1
  }'
Response
{ "jsonrpc": "2.0", "id": 1, "result": "0x1bc16d674ec80000" }

eth_call

Executes a read-only contract call. Does not submit a transaction or change state. Parameters
#TypeDescription
1TransactionObject{to, data, from?, value?, gas?}
2BlockTagBlock to execute against
curl -X POST https://api.test.stablenet.network \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_call",
    "params": [
      {
        "to": "0xContractAddress",
        "data": "0x70a08231000000000000000000000000YourAddress"
      },
      "latest"
    ],
    "id": 1
  }'

eth_estimateGas

Estimates the gas required for a transaction.
curl -X POST https://api.test.stablenet.network \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_estimateGas",
    "params": [
      {
        "from": "0xSenderAddress",
        "to": "0xRecipientAddress",
        "value": "0xde0b6b3a7640000"
      }
    ],
    "id": 1
  }'

eth_sendRawTransaction

Submits a signed transaction to the network.
StableNet enforces a minimum gas tip of 27,600 Gwei. Transactions with a lower maxPriorityFeePerGas will be rejected.
curl -X POST https://api.test.stablenet.network \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_sendRawTransaction",
    "params": ["0xSignedTxHex"],
    "id": 1
  }'

eth_getTransactionReceipt

Returns the receipt of a confirmed transaction.
curl -X POST https://api.test.stablenet.network \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "eth_getTransactionReceipt",
    "params": ["0xTxHash"],
    "id": 1
  }'

istanbul Namespace

StableNet-specific methods for querying the Anzeon WBFT consensus state.

istanbul_getValidators

Returns the current validator set.
curl -X POST https://api.test.stablenet.network \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "istanbul_getValidators",
    "params": ["latest"],
    "id": 1
  }'
Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": ["0xValidator1Address", "0xValidator2Address"]
}

istanbul_status

Returns round and sealer statistics for recent blocks.
curl -X POST https://api.test.stablenet.network \
  -H "Content-Type: application/json" \
  --data '{
    "jsonrpc": "2.0",
    "method": "istanbul_status",
    "params": [],
    "id": 1
  }'

Fee Delegation Extensions

StableNet extends the standard API with fee delegation signing methods.
MethodDescription
eth_signRawFeeDelegateTransactionAppends a fee-payer signature to an already-signed transaction using an unlocked account
personal_signRawFeeDelegateTransactionSame, using password-based authentication
The resulting signed transaction is submitted via eth_sendRawTransaction. Gas costs are paid by the fee payer, not the sender.
See Fee Delegation for the full protocol spec.

Quick Reference

MethodDescription
eth_chainIdChain ID (8283 testnet, 8282 mainnet)
eth_blockNumberLatest block number
eth_getBalanceAccount KRC balance
eth_getCodeContract bytecode
eth_getStorageAtStorage slot value
eth_callRead-only contract call
eth_estimateGasGas estimation
eth_sendRawTransactionSubmit signed transaction
eth_getTransactionByHashTransaction details
eth_getTransactionReceiptTransaction receipt
eth_getBlockByNumberBlock by number
eth_getBlockByHashBlock by hash
eth_feeHistoryHistorical fee data
txpool_statusPending/queued tx counts
istanbul_getValidatorsCurrent validator set
istanbul_statusConsensus round stats