Cloud SDK
Monero daemon connection
Get an authenticated Monero daemon connection for @gray3/client wallet sync.
Overview
Monero balances are computed by scanning the chain with the wallet's view key, which happens on the device in @gray3/client. The scan needs a Monero daemon, and gray.monero gives you an authenticated connection to the Gray3 Cloud API daemon proxy.
ts
const conn = gray.monero.syncConnection();
// { uri: "https://blockchain.gray3.io/v1/monero/daemon", headers: { authorization, "x-gray-project-id" } }
const uri = gray.monero.daemonBaseUrl();The daemon proxy allows only wallet-sync and broadcast methods; any other method returns forbidden (HTTP 403). See Sync and restore height and Call the daemon proxy.