Account details
get_accountRetrieve an account's CELO balance in wei and CELO, nonce, and contract or externally owned account status; optionally include contract bytecode when needed.
Instructions
Get an account's CELO balance (in wei and in CELO), nonce, and whether the address is a contract or an externally owned account. Contract bytecode is left out unless include_code is true.
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": {
"address": "<address>"
},
"name": "get_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The account address. | |
| include_code | No | Include the contract bytecode as a hex string. It can be tens of kilobytes, so it is off by default. |