l402-store-token
Save an L402 token pasted from a payment page so later L402 fetch calls are authenticated using the stored credential.
Instructions
Store an L402 token (macaroon:preimage) obtained from a payment page. Use this when a user pastes back a token from a toll-booth payment page. The token is stored as a credential so subsequent l402-fetch calls are authenticated.
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": {
"url": "<url>",
"token": "<token>"
},
"name": "l402-store-token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The service URL this token is for | |
| token | Yes | The L402 token in macaroon:preimage format |