datahub_buy
Buy a DataHub dataset via x402 settlement on Solana, paying with USDC or USDT, and get an instant download link. Spending caps apply.
Instructions
Buy a DataHub dataset (x402 settlement on Solana, 99% goes to the seller) and return the download link. Pays in USDC by default; set token to USDT to settle in USDT instead. Spending caps apply.
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": {
"book_id": "<book_id>"
},
"name": "datahub_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Stablecoin to pay with. The agent wallet must hold this token and a little SOL for fees. Defaults to USDC. | USDC |
| book_id | Yes | The dataset id returned by datahub_search (a uuid), not its title. Buying the same dataset twice pays twice; use datahub_download to re-fetch something already owned. |