Skip to content
Docs

Quickstart

Common first-hour mistakes

The setup mistakes new integrations make most often, and how to avoid each one.

Mistakes to avoid

  • Calling the wrong host. API requests go to https://blockchain.gray3.io (and https://ledger.gray3.io for the Ledger API), not to the Console URL.
  • Sending only one credential. Every authenticated request needs both X-Gray-Project-Id and Authorization: Bearer. A missing or mismatched pair returns 401 unauthorized.
  • Putting the secret in the client. Call Gray3 from your backend and give your app its own authenticated endpoints.
  • Forgetting to enable a network. Chains that are not enabled for the project return 403 chain_disabled. Turn them on in Console under Networks.
  • Using decimal amounts. Amounts are base-unit integer strings. Send "1000000000000000000" for 1 ETH, not "1.0".
  • Expecting prices or swaps on testnets. Prices, DeFi, swaps, and NFTs are mainnet-only and return unsupported_capability on testnet chain IDs.
  • Retrying everything. Retry only when the error has retryable: true or is a 429, and use exponential backoff. See Retryable and non-retryable errors.