datahub_buy
Purchase a DataHub dataset through Solana x402 settlement, paying with USDC or USDT. The transaction returns a download link, with 99% of the payment going to the seller.
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.
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. |