Last active
August 29, 2015 14:14
-
-
Save rubensayshi/5bc87c7a21640ecc1225 to your computer and use it in GitHub Desktop.
blocktrail-sdk-python-init-example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import blocktrail | |
| client = blocktrail.APIClient(api_key="MY_APIKEY", api_secret="MY_APISECRET", network="BTC", testnet=False) | |
| address = client.address('1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T') | |
| latest_block = client.block_latest() | |
| print address['balance'], latest_block['hash'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import blocktrail | |
| client = blocktrail.APIClient(api_key="MY_APIKEY", api_secret="MY_APISECRET", network="BTC", testnet=False) | |
| address = client.address('1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T') | |
| latest_block = client.block_latest() | |
| print(address['balance'], latest_block['hash']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment