Chain Operations
Tools for managing blockchain connections and retrieving chain information.
Note: All chain tools support the optional
userIdparameter for session persistence. Include it in every call to maintain chain state across reconnections.
get_chain_config
Get the current chain configuration.
Parameters
None required.
Response
Returns current chain ID, RPC endpoint, and configuration details.
switch_chain
Switch to a different blockchain.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | string | Yes | The chain ID to switch to (e.g., "andromeda-1", "galileo-4") |
kernelAddress | string | No | Custom kernel address to use instead of the default |
userId | string | No | Session identifier for persistent state |
Example
{
"chainId": "galileo-4"
}With Custom Kernel
{
"chainId": "galileo-4",
"kernelAddress": "andr1customkernel..."
}list_available_chains
List all available chains that can be connected to.
Parameters
None required.
Response
Returns a list of supported chains with their chain IDs and configuration.
get_chain_status
Get current blockchain status including height, chain ID, and latest block info.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
includeBlock | boolean | No | Include latest block details (default: false) |
Example
{
"includeBlock": true
}Response
Returns current block height, chain ID, and optionally the latest block details.
get_block_info
Get detailed information about a specific block.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
height | number | No | Block height to query. Uses latest block if not specified. |
includeTxs | boolean | No | Include full transaction details (default: false) |
Example
{
"height": 1234567,
"includeTxs": true
}Response
Returns block header, hash, timestamp, and optionally transaction data.