Tender

v0.1.12
io.github.paywithtender/tender Checked 19 hours ago Published 19 hours ago

Let AI agents pay x402 APIs with any token on Robinhood Chain.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_coin Check if a coin is spendable

Checks whether a Robinhood Chain token can be used to pay on Tender (it needs a Uniswap route to USDG), and what paying $1.00 costs in it.

ParameterTypeDescription
token *stringToken contract address (0x…)

quote Quote a payment

Prices a payment of a given USD amount in a given token (default: the configured pay-with token, or USDG).

ParameterTypeDescription
usd *stringAmount the API should receive, in dollars, e.g. "0.05"
tokenstringToken to pay with (0x…). Omit for the default.

wallet Agent wallet and limits

Shows the agent wallet address, its ETH, USDG and pay-with token balances, and the spending limits left today.

pay Call a paid API

Calls an x402 API. If it answers 402 Payment Required, pays it in USDG with the agent's token and returns the API's response: APIs that accept Tender are paid with a swap in the same transaction; APIs that take plain USDG are paid from a USDG float the agent converts from its token in batches. Free endpoints are just fetched. Refuses anything above the configured per-call, fee or daily limits.

ParameterTypeDescription
url *stringFull URL of the API endpoint
bodystringRequest body (sent as-is; set content-type in headers if needed)
headersobjectExtra request headers
idempotency_keystringOptional key for this purchase. Retrying with the same key never pays twice: it resends the same signed payment, which can settle at most once on-chain. Use a new key for a new purchase.
max_usdstringRefuse if the API's price is above this many dollars (lower than the configured limit)
methodstringHTTP method, default GET
pay_withstringToken to pay with for this call (0x…). Omit for the default.