Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
BTC: add example explorer readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pventuzelo committed Nov 20, 2018
1 parent edace66 commit 2b732b7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Expand Up @@ -963,7 +963,21 @@ cfg.visualize_instrs_per_funcs()
#### Explorer

```python
# TODO
from octopus.platforms.BTC.explorer import BitcoinExplorerRPC

RPC_USER = 'test'
RPC_PASSWORD = 'test'
RPC_HOST = 'localhost'

host = '%s:%s@%s' % (RPC_USER, RPC_PASSWORD, RPC_HOST)

explorer = BitcoinExplorerRPC(host)

explorer.getbestblockhash()
# '00000000000000000012085cfe8c79bcdacf81fbd82f6ab52c3cb3a454d4987c'

explorer.getblockcount()
#550859
```

#### Disassembler
Expand Down

0 comments on commit 2b732b7

Please sign in to comment.