hash_generate
Generate a SHA-256 or SHA-512 digest in hexadecimal or Base64 form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Input text, up to 100 KB. | |
| encoding | No | Output encoding. Default hex. | |
| algorithm | No | Hash algorithm. Default sha256. | |
| 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. |