php-lightning /
lnaddress
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | use PhpLightning\Config\Backend\LnBitsBackendConfig; |
||
| 6 | use PhpLightning\Config\LightningConfig; |
||
| 7 | |||
| 8 | return (new LightningConfig()) |
||
| 9 | ->setMode('test') |
||
| 10 | ->setDomain('your-domain.com') |
||
| 11 | ->setReceiver('custom-receiver') |
||
| 12 | ->setSendableRange(100_000, 10_000_000_000) |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 13 | ->addBackend( |
||
| 14 | (new LnBitsBackendConfig()) |
||
| 15 | ->setApiEndpoint('http://localhost:5000') // lnbits endpoint : protocol://host:port |
||
| 16 | ->setApiKey('XYZ'), // put your lnbits read key here |
||
| 17 | ); |
||
| 18 |