topup_x402_session
Add additional traffic or extend the duration of a session. Traffic top-ups require a payment signature; duration-only extensions are free.
Instructions
Top up a session with additional traffic and/or duration. Requires a Payment-Signature (tx hash) for traffic top-ups. Duration-only extensions are free.
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": {
"sessionToken": "<sessionToken>",
"paymentSignature": "<paymentSignature>"
},
"name": "topup_x402_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionToken | Yes | Session token from purchase response | |
| paymentSignature | Yes | Blockchain tx hash (Solana signature or Base tx hash) | |
| addTrafficGB | No | Additional traffic in GB | |
| addDurationSeconds | No | Additional duration in seconds |