Authenticate Hgraph API requests
1. X-API-KEY Header
X-API-KEY: <YOUR_API_KEY>2. Authorization Header
Authorization: Bearer <YOUR_API_KEY>OR
Authorization: <YOUR_API_KEY>3. Path-based Authentication
Insert /v1/<YOUR_API_KEY> before the API path. This is useful for clients that cannot set headers (e.g., ethers.JsonRpcProvider).
| API | Header URL | Path-based URL |
|---|---|---|
| JSON-RPC | https://ethereum.hgraph.com/rpc | https://ethereum.hgraph.com/v1/<KEY>/rpc |
| GraphQL | https://hedera.hgraph.com/v1/graphql | https://hedera.hgraph.com/v1/<KEY>/graphql |
| REST | https://hedera.hgraph.com/api/v1/accounts | https://hedera.hgraph.com/v1/<KEY>/api/v1/accounts |