TypeScript
import { GoldRushClient } from "@covalenthq/client-sdk"; const ApiServices = async () => { const client = new GoldRushClient("YOUR_API_KEY"); const resp = await client.BaseService.getAllChainStatus({chainName: "chainName", walletAddress: "walletAddress"}); console.log(resp.data); }; ApiServices();
{ "updated_at": "2023-11-07T05:31:56Z", "items": [ { "name": "<string>", "chain_id": "<string>", "is_testnet": true, "logo_url": "<string>", "black_logo_url": "<string>", "white_logo_url": "<string>", "is_appchain": true, "synced_block_height": 123, "synced_blocked_signed_at": "2023-11-07T05:31:56Z", "has_data": true } ] }
Commonly used to build internal status dashboards of all supported chains.
Bearer authentication header of the form: Bearer <token>, where <token> is your GoldRush API Key.
Bearer <token>
<token>
Successful response
The timestamp when the response was generated. Useful to show data staleness to users.
List of response items.
Show child attributes
The chain name eg: eth-mainnet.
eth-mainnet
The requested chain ID eg: 1.
1
True if the chain is a testnet.
A svg logo url for the chain.
A black png logo url for the chain.
A white png logo url for the chain.
True if the chain is an AppChain.
The height of the lastest block available.
The signed timestamp of lastest block available.
True if the chain has data and ready for querying.