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 | ->setDomain('localhost') |
||
| 10 | ->setReceiver('default-receiver') |
||
| 11 | ->setSendableRange(min: 100_000, max: 10_000_000_000) |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 12 | ->setCallbackUrl('localhost:8000/callback') |
||
| 13 | ->setBackends([ |
||
| 14 | 'user-1' => (new LnBitsBackendConfig()) |
||
| 15 | ->setApiEndpoint('http://localhost:5000') |
||
| 16 | ->setApiKey('api_key-1'), |
||
| 17 | 'user-2' => (new LnBitsBackendConfig()) |
||
| 18 | ->setApiEndpoint('http://localhost:5000') |
||
| 19 | ->setApiKey('api_key-2') |
||
| 20 | ]); |
||
| 21 |