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(andhttps://ledger.gray3.iofor the Ledger API), not to the Console URL. - Sending only one credential. Every authenticated request needs both
X-Gray-Project-IdandAuthorization: Bearer. A missing or mismatched pair returns401 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_capabilityon testnet chain IDs. - Retrying everything. Retry only when the error has
retryable: trueor is a429, and use exponential backoff. See Retryable and non-retryable errors.