@@ -40,12 +40,12 @@ Then call methods defined in [Litecoin Core API Documentation](https://litecoin.
40
40
/**
41
41
* Get block info.
42
42
*/
43
- $block = $litecoind->getBlock('000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f ');
43
+ $block = $litecoind->getBlock('9d4d9fd2f4dee46d5918861b7bbff81f52c581c3b935ad186fe4c5b6dc58d2f8 ');
44
44
45
- $block('hash')->get(); // 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
46
- $block['height']; // 0 (array access)
47
- $block->get('tx.0'); // 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
48
- $block->count('tx'); // 1
45
+ $block('hash')->get(); // 9d4d9fd2f4dee46d5918861b7bbff81f52c581c3b935ad186fe4c5b6dc58d2f8
46
+ $block['height']; // 1298009 (array access)
47
+ $block->get('tx.0'); // a8971eaf8dfda3ee5dd20b3de3fb6c22e936339bbb53f8fa0f2379941ac5ff3f
48
+ $block->count('tx'); // 26
49
49
$block->has('version'); // key must exist and CAN NOT be null
50
50
$block->exists('version'); // key must exist and CAN be null
51
51
$block->contains(0); // check if response contains value
@@ -59,7 +59,7 @@ $block('tx')->last(); // txid of last transaction
59
59
/**
60
60
* Send transaction.
61
61
*/
62
- $result = $litecoind->sendToAddress('mmXgiR6KAhZCyQ8ndr2BCfEq1wNG2UnyG6 ', 0.1);
62
+ $result = $litecoind->sendToAddress('LKdsQGCwBbgJNdXSQtAvVbFMpwgwThtsSY ', 0.1);
63
63
$txid = $result->get();
64
64
65
65
/**
@@ -74,7 +74,7 @@ To send asynchronous request, add Async to method name:
74
74
use Majestic\Litecoin\LitecoindResponse;
75
75
76
76
$promise = $litecoind->getBlockAsync(
77
- '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f ',
77
+ '9d4d9fd2f4dee46d5918861b7bbff81f52c581c3b935ad186fe4c5b6dc58d2f8 ',
78
78
function (LitecoindResponse $success) {
79
79
//
80
80
},
@@ -91,12 +91,12 @@ You can also send requests using request method:
91
91
/**
92
92
* Get block info.
93
93
*/
94
- $block = $litecoind->request('getBlock', '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f ');
94
+ $block = $litecoind->request('getBlock', '9d4d9fd2f4dee46d5918861b7bbff81f52c581c3b935ad186fe4c5b6dc58d2f8 ');
95
95
96
- $block('hash'); // 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
97
- $block['height']; // 0 (array access)
98
- $block->get('tx.0'); // 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b
99
- $block->count('tx'); // 1
96
+ $block('hash'); // 9d4d9fd2f4dee46d5918861b7bbff81f52c581c3b935ad186fe4c5b6dc58d2f8
97
+ $block['height']; // 1298009 (array access)
98
+ $block->get('tx.0'); // a8971eaf8dfda3ee5dd20b3de3fb6c22e936339bbb53f8fa0f2379941ac5ff3f
99
+ $block->count('tx'); // 26
100
100
$block->has('version'); // key must exist and CAN NOT be null
101
101
$block->exists('version'); // key must exist and CAN be null
102
102
$block->contains(0); // check if response contains value
@@ -107,7 +107,7 @@ $block->random(1, 'tx'); // get random txid
107
107
/**
108
108
* Send transaction.
109
109
*/
110
- $result = $BTC->request('sendtoaddress', ['mmXgiR6KAhZCyQ8ndr2BCfEq1wNG2UnyG6 ', 0.06]);
110
+ $result = $BTC->request('sendtoaddress', ['LKdsQGCwBbgJNdXSQtAvVbFMpwgwThtsSY ', 0.06]);
111
111
$txid = $result->get();
112
112
113
113
```
@@ -117,7 +117,7 @@ use Majestic\Litecoin\LitecoindResponse;
117
117
118
118
$promise = $litecoind->requestAsync(
119
119
'getBlock',
120
- '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f ',
120
+ '9d4d9fd2f4dee46d5918861b7bbff81f52c581c3b935ad186fe4c5b6dc58d2f8 ',
121
121
function (LitecoindResponse $success) {
122
122
//
123
123
},
0 commit comments