Olenza Node

API documentation

Endpoint

POST https://node.olenza.io/v1/rpc/{chain}

Chains: btc. The body is a standard JSON-RPC request, or an array of them for a batch.

Authentication

Send your API key in a header:

X-API-Key: olz_…
Authorization: Bearer olz_…     (either one)

If your client cannot set headers, put the key in the path: https://node.olenza.io/v1/rpc/{chain}/olz_…. Prefer headers — URLs end up in logs.

Example

curl https://node.olenza.io/v1/rpc/btc \
  -H "X-API-Key: $OLENZA_KEY" \
  --data '{"jsonrpc":"1.0","id":1,"method":"getblockcount","params":[]}'

Limits and headers

Every response carries your current limits:

HeaderMeaning
X-RateLimit-LimitBurst size of your plan
X-RateLimit-RemainingRequests you can send right now
X-RateLimit-ResetSeconds until the burst is fully refilled
X-Quota-Daily-RemainingUnits left today (UTC)
X-Quota-Monthly-RemainingUnits left this month (UTC)

Errors

Errors are JSON-RPC error objects. error.data.reason is a stable code:

HTTPReasonWhat to do
401MISSING_API_KEY, INVALID_API_KEYCheck the key
403KEY_REVOKEDThe key was revoked — create a new one
403ACCOUNT_SUSPENDEDContact support
403CHAIN_NOT_IN_PLAN, PLAN_UNAVAILABLEYour plan does not cover this — upgrade or contact support
403METHOD_NOT_ALLOWEDThe method is not available — see the list below
404CHAIN_NOT_FOUNDCheck the chain in the URL
400INVALID_REQUEST, BATCH_TOO_LARGEFix the request
413REQUEST_TOO_LARGESend a smaller request
429RATE_LIMITEDWait Retry-After seconds
429DAILY_QUOTA_EXCEEDED, MONTHLY_QUOTA_EXCEEDEDWait for the next UTC day/month, or upgrade
502NODE_ERRORRetry shortly; not charged
503NODE_SYNCING, NODE_UNAVAILABLE, SERVICE_UNAVAILABLERetry shortly; not charged

Errors returned by the node itself (for example "Block not found") are passed through unchanged.

Available methods

Only these methods are available. Wallet, peer, node-control and UTXO-set scan methods are not. Weight = units charged per call.

BTC

MethodWeight
analyzepsbt2
combinepsbt1
combinerawtransaction1
converttopsbt1
createmultisig1
createpsbt1
createrawtransaction1
decodepsbt1
decoderawtransaction1
decodescript1
deriveaddresses2
estimatesmartfee1
finalizepsbt1
getbestblockhash1
getblock5
getblockchaininfo1
getblockcount1
getblockhash1
getblockheader1
getblockstats10
getchaintips2
getchaintxstats2
getdeploymentinfo2
getdescriptorinfo1
getdifficulty1
getindexinfo1
getmempoolancestors2
getmempooldescendants2
getmempoolentry1
getmempoolinfo1
getmininginfo1
getnetworkhashps2
getrawmempool10
getrawtransaction2
gettxout1
gettxoutproof2
gettxspendingprevout2
joinpsbts1
sendrawtransaction5
submitpackage5
testmempoolaccept3
utxoupdatepsbt2
validateaddress1
verifymessage1
verifytxoutproof2