xlayer_call
Execute JSON-RPC methods on the X Layer blockchain to query data like block numbers, balances, and transaction receipts.
Instructions
[L:WRITE] CAT:[链上] | → 请先调用 agent_catalog
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"method": "<method>"
},
"name": "xlayer_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | Yes | JSON-RPC 方法名。常用: eth_blockNumber, eth_getBlockByNumber, eth_getBalance, eth_getTransactionReceipt, eth_call, eth_getLogs | |
| params | No | JSON-RPC 参数数组,JSON 字符串。如 '[\"0xabc123\", false]'。留空表示传空数组 |