Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Commit 8e30335

Browse files
author
Pascal Krason
committed
Made auth params more sexy
1 parent 558ef40 commit 8e30335

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Please note, this library is by far not completed and but can be used in product
1010
First you need to setup a new Electrum wallet. Follow the instructions according to your OS at the [Electrum Download Page](https://electrum.org/#download). After the successfull installation you need to set a rpcport by typing:
1111
```
1212
electrum setconfig rpcport 7777
13-
electrum setconfig rpcuser "RPC_USER_NAME"
14-
electrum setconfig rpcpassword "VERY_SECRET_NOT_STARTED_WITH_DIGIT"
13+
electrum setconfig rpcuser "username"
14+
electrum setconfig rpcpassword "password"
1515
```
1616
Then we can create a default wallet, dont forget to note your generated seed, it's nescessary if you want to recover it one day:
1717
```
@@ -60,7 +60,7 @@ $response->getVersion();
6060
## Custom Client Configuration
6161
Every Request/Method takes a `Electrum\Client`-instance as parameter which replaces the default one. A custom instance can be usefull if you want to set custom config params like another Hostname or Port.
6262
```php
63-
$client = new \Electrum\Client('http://127.0.0.1', 7777, 0, 'RPC_USER_NAME', 'VERY_SECRET_NOT_STARTED_WITH_DIGIT');
63+
$client = new \Electrum\Client('http://127.0.0.1', 7777, 0, 'username', 'password');
6464
$method = new \Electrum\Request\Method\Version($client);
6565

6666
try {

0 commit comments

Comments
 (0)