Monero
Call the daemon proxy
One page: auth, paths, bash/fetch, raw monerod response, and Gray3 error codes.
Endpoint
Base prefix: /v1/monero/daemon. JSON-RPC goes to /json_rpc; other monerod paths (for example binary block fetches) are forwarded as POST /v1/monero/daemon/<path>.
Auth
Same headers as every other Cloud /v1/* route. Daemon credentials stay server-side.
| Field | Required | Description |
|---|---|---|
| X-Gray-Project-Id | Yes | Your proj_… project id |
| Authorization | Yes | Bearer gray_sk_… project secret |
| Content-Type | Yes | application/json for JSON-RPC bodies |
The plan must include Monero and the chain must be enabled under Console › Networks.
Request
Body is a standard monerod JSON-RPC object. Gray3 authenticates your project and proxies the call without rewriting method or params.
Only methods needed for wallet sync and broadcast are allowed. Any other method or path returns HTTP 403 with forbidden.
- JSON-RPC methods on
/json_rpc(one call per request):get_info,get_block,get_block_count,get_block_header_by_hash,get_block_header_by_height,get_block_headers_range,get_last_block_header,get_fee_estimate,get_version,get_output_histogram,get_output_distribution,hard_fork_info,get_txpool_backlog,on_get_block_hash,get_coinbase_tx_sum - Other paths:
/get_blocks.bin,/get_blocks_by_height.bin,/get_hashes.bin,/get_o_indexes.bin,/get_outs.bin,/get_transactions,/get_transaction_pool,/get_transaction_pool_hashes.bin,/get_transaction_pool_stats,/send_raw_transaction,/get_info,/get_height,/get_alt_blocks_hashes,/is_key_image_spent,/get_fee_estimate
Requests are capped at 4 MB and responses at 16 MB.
curl -sS -X POST "https://blockchain.gray3.io/v1/monero/daemon/json_rpc" \
-H "X-Gray-Project-Id: proj_your_project_id" \
-H "Authorization: Bearer gray_sk_your_secret" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "0",
"method": "get_info",
"params": {}
}'Response
Unlike other Cloud routes, success is not wrapped in { "data": … }. You get raw monerod JSON (or binary for *.bin paths).
{
"jsonrpc": "2.0",
"id": "0",
"result": {
"height": 3456789,
"target_height": 3456789,
"status": "OK"
}
}JSON-RPC failures from the daemon appear as monerod's own { "error": { "code", "message" } } in the body—not always as a Gray3 envelope.
Other daemon paths
Wallet sync may call paths beyond JSON-RPC (for example get_blocks_by_height.bin). Use the same auth headers and POST to /v1/monero/daemon/<that-path>. Prefer the Wallet SDK connection helpers so path lists stay in sync with the client.
Gray3 errors
Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.
Every authenticated route may also return unauthorized (401), revoked_secret (401), forbidden (403), credits_exhausted (402), plan_feature_denied (403), rate_limit_exceeded (429, retryable), and invalid_argument (413) for request bodies over 256 KiB.
| Code | HTTP | When |
|---|---|---|
| unauthorized | 401 | Missing or invalid project id / secret |
| plan_chain_denied | 403 | Monero not on project plan |
| chain_disabled | 403 | Monero is turned off in Console › Networks |
| forbidden | 403 | The daemon method is not a wallet-sync or broadcast method |
| unsupported_capability | 400 | Daemon proxy not available for this project |
| provider_unavailable | 503 | No Monero daemon is reachable (retryable) |
| rate_limit_exceeded | 429 | Throttle — back off and retry (retryable) |
{
"error": {
"code": "unauthorized",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}