GET
/
v1
/
chains
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": {}
    }
  ]
}
Credit Cost: 0.01 per call.
Processing: Realtime

Response

200 - application/json
Successful response
updated_at
string

The timestamp when the response was generated. Useful to show data staleness to users.

items
object[]

List of response items.