Buy a 7-day pass
buy_passBuilds the unsigned Base Mainnet transactions that buy a 7-day pass (5 USDC) for a wallet: a USDC approve, only if its allowance is below 5 USDC, then paySubscription() on the escrow contract. Use it when check_pass shows no active pass. Calling it is free and changes nothing: the wallet signs and sends the returned transactions itself (gas in ETH on Base); AgentSLA holds no keys and moves no funds. Buying while a pass is active extends it by 7 days from its current expiry. Returns the ordered transactions (to, data, value, chainId) and warnings such as an insufficient USDC balance.
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": {
"walletAddress": "<walletAddress>"
},
"name": "buy_pass"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| walletAddress | Yes | Base Mainnet wallet that will sign, pay for and own the pass, e.g. "0x1234...abcd". |