Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added method to return the number of confirmations of a TXID
  • Loading branch information
jeankassio authored Oct 23, 2024
1 parent d605193 commit 6eb1620
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ $transaction = $electrum->getTransaction($txid);
echo "Transaction details: " . json_encode($transaction);
```

### Get Number of Confirmations

```php
$txid = "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b";
$confirmations = $electrum->getConfirmations($txid); //return int
echo "Number of confirmations: {$confirmations}";
```


### Pay to a Bitcoin Address

```php
Expand Down

0 comments on commit 6eb1620

Please sign in to comment.