base64_convert
Encode UTF-8 text to Base64 or decode Base64 safely, with standard and URL-safe alphabets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Text or Base64 data, up to 100 KB. | |
| action | Yes | ||
| url_safe | No | Use the URL-safe alphabet without padding. | |
| l402_proof | No | L402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set. |