TypeScript
import { GoldRushClient } from "@covalenthq/client-sdk"; const ApiServices = async () => { const client = new GoldRushClient("YOUR_API_KEY"); const resp = await client.BaseService.getAllChains({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, "db_schema_name": "<string>", "label": "<string>", "category_label": "<string>", "logo_url": "<string>", "black_logo_url": "<string>", "white_logo_url": "<string>", "color_theme": { "red": 123, "green": 123, "blue": 123, "alpha": 123, "hex": "<string>", "css_rgb": "<string>" }, "is_appchain": true, "appchain_of": {} } ] }
Commonly used to build internal dashboards for all supported chains on Covalent.
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.
Schema name to use for direct SQL.
The chains label eg: Ethereum Mainnet.
Ethereum Mainnet
The category label eg: Ethereum.
Ethereum
A svg logo url for the chain.
A black png logo url for the chain.
A white png logo url for the chain.
The color theme for the chain.
The red color code.
The green color code.
The blue color code.
The alpha color code.
The hexadecimal color code.
The color represented in css rgb() functional notation.
True if the chain is an AppChain.
The ChainItem the appchain is a part of.