Block heights by date

GET/v1/{chainName}/block_v2/{startDate}/{endDate}/

curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "goldrush-blockchain-data-api",
"path": "",
"method": "GET"
}'
{
"success": true,
"data": {
"updated_at": "{updated_at}",
"chain_id": 1,
"chain_name": "{chain_name}",
"items": [ 1 item ],
"pagination": { … }
}
}
Example values, built from the documented fields.

$0.00109per call

Every call costs the same.

You aren't charged for failed calls. A wallet payment for a failed call is refunded.

About this endpoint

Returns all the block heights within a particular date range. Useful for rendering a display where you sort blocks by day.

Path parameters

Query parameters

Response types

More from GoldRush Blockchain Data API

  1. Chain sync statusGET/v1/chains/status/$0.00109 per callFixed
  2. ENS name resolutionGET/v1/{chainName}/address/{walletAddress}/resolve_address/$0.00109 per callFixed
  3. Paginated wallet transactionsGET/v1/{chainName}/address/{walletAddress}/transactions_v3/page/{page}/$0.000109 per item returnedResponse-based · up to $0.01635
  4. Time bucket transactionsGET/v1/{chainName}/bulk/transactions/{walletAddress}/{timeBucket}/$0.000109 per item returnedResponse-based · up to $0.01635
  5. Recent wallet transactionsGET/v1/{chainName}/address/{walletAddress}/transactions_v3/$0.000109 per item returnedResponse-based · up to $0.01635
  6. Bitcoin transactionsGET/v1/cq/covalent/app/bitcoin/transactions/$0.000109 per item returnedResponse-based · up to $0.109
  7. Historical Bitcoin balanceGET/v1/btc-mainnet/address/{walletAddress}/historical_balances/$0.00109 per callFixed
  8. Earliest wallet transactionsGET/v1/{chainName}/bulk/transactions/{walletAddress}/$0.000109 per item returnedResponse-based · up to $0.01635
  9. Wallet transaction summaryGET/v1/{chainName}/address/{walletAddress}/transactions_summary/$0.00109 per callFixed
  10. Gas pricesGET/v1/{chainName}/event/{eventType}/gas_prices/$0.00109 per callFixed
  11. Contract event logsGET/v1/{chainName}/events/address/{contractAddress}/$0.0109 per 1K items returnedResponse-based · up to $0.0545
  12. Historical token pricesGET/v1/pricing/historical_by_addresses_v2/{chainName}/{quoteCurrency}/{contractAddress}/$0.00109 per callFixed
All 38 GoldRush Blockchain Data API endpoints