Skip to content

Commit 3704100

Browse files
committed
Updated README.
1 parent edeb65e commit 3704100

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ $block('tx')->last(); // txid of last transaction
6262
*/
6363
$result = $bitcoind->sendToAddress('mmXgiR6KAhZCyQ8ndr2BCfEq1wNG2UnyG6', 0.1);
6464
$txid = $result->get();
65+
66+
/**
67+
* Get transaction amount.
68+
*/
69+
$result = $bitcoind->listSinceBlock();
70+
$totalAmount = $result->sum('transactions.*.amount');
71+
$totalSatoshi = BitcoinClient::toSatoshi($totalAmount);
6572
```
6673
To send asynchronous request, add Async to method name:
6774
```php

0 commit comments

Comments
 (0)