SKILL: getAddressBalance
A skill for querying the balance of a specified blockchain address using the Tokenview API.
by bdonglobal · published 2026-04-01
$ claw add gh:bdonglobal/bdonglobal-tokenview-address-balance# SKILL: getAddressBalance
Description
A skill for querying the balance of a specified blockchain address using the Tokenview API.
The default supported coin is **BTC**, and the API Key must be provided through the environment variable `TOKENVIEW_API_KEY`.
Triggers
API Endpoint and Secret Handling
Parameters
Output Format
```json
{
"code": 1,
"msg": "404",
"data": "NONE"
}
```
will be like: "Balance query failed:Code=1, Msg=404, Data=NONE"
Implementation (execution plan)
- Example command (BTC):
```bash
python $OPENCLAW_STATE_DIR/workspace/skills/tokenview_balance_checker/tokenview_api.py <address> --coin btc
```
- Path: `$OPENCLAW_STATE_DIR/workspace/skills/tokenview_balance_checker/tokenview_api.py`
- Inputs: address (required),coin (optional, default is btc)
- Dependencies: requests
- API Key: Provided via environment variable TOKENVIEW_API_KEY
- Output: JSON printed to stdout, e.g.:`{"code":1,"msg":"success","data":"0.123 BTC"}`
Parameters (payload-driven)
Output Mapping (to user-facing text)
Example
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...