query_remote_api
Query remote Bitcoin API endpoints with automatic Lightning network payments. Access real-time network data and corporate treasury information through Satoshi API integration.
Instructions
Query a remote Satoshi API instance, auto-paying with Lightning if needed.
Requires SATOSHI_API_URL environment variable. Supports L402 micropayments.
Args: endpoint: API path (e.g. "/api/v1/fees", "/api/v1/blocks/latest") params: Optional query parameters as key=value pairs separated by &
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": {
"endpoint": "<endpoint>"
},
"name": "query_remote_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | ||
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |