(tx, network='btc')
| 273 | |
| 274 | |
| 275 | def blockr_pushtx(tx, network='btc'): |
| 276 | if network == 'testnet': |
| 277 | blockr_url = 'http://tbtc.blockr.io/api/v1/tx/push' |
| 278 | elif network == 'btc': |
| 279 | blockr_url = 'http://btc.blockr.io/api/v1/tx/push' |
| 280 | else: |
| 281 | raise Exception( |
| 282 | 'Unsupported network {0} for blockr_pushtx'.format(network)) |
| 283 | |
| 284 | if not re.match('^[0-9a-fA-F]*$', tx): |
| 285 | tx = tx.encode('hex') |
| 286 | return make_request(blockr_url, '{"hex":"%s"}' % tx) |
| 287 | |
| 288 | |
| 289 | def helloblock_pushtx(tx): |
nothing calls this directly
no test coverage detected