Utility
Get all chains
Cross Chain
Balances
Transactions
- GETGet a transaction
- GETGet transaction summary for address
- GETGet earliest transactions for address (v3)
- GETGet recent transactions for address (v3)
- GETGet paginated transactions for address (v3)
- GETGet bulk time bucket transactions for address (v3)
- GETGet all transactions in a block by page (v3)
- GETGet all transactions in a block (v3)
NFT
- Core Rendering
- Market Data
- Ownership & Token Gating
Bitcoin
Utility
Get all chains
Commonly used to build internal dashboards for all supported chains on Covalent.
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
Processing: Realtime
Response
200 - application/json
Successful response
The timestamp when the response was generated. Useful to show data staleness to users.
List of response items.
The chain name eg: eth-mainnet
.
The requested chain ID eg: 1
.
True if the chain is a testnet.
Schema name to use for direct SQL.
The chains label eg: Ethereum Mainnet
.
The category label eg: 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.
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": {}
}
]
}