Add validateaddress
This commit is contained in:
parent
9046d44f4d
commit
7b80666cc7
3
bXcat.py
3
bXcat.py
|
@ -27,6 +27,9 @@ FEE = 0.001*COIN
|
||||||
|
|
||||||
zcashd = zcash.rpc.Proxy()
|
zcashd = zcash.rpc.Proxy()
|
||||||
|
|
||||||
|
def validateaddress(addr):
|
||||||
|
return bitcoind.validateaddress(addr)
|
||||||
|
|
||||||
def parse_secret(txid):
|
def parse_secret(txid):
|
||||||
decoded = bitcoind.getrawtransaction(lx(txid), 1)
|
decoded = bitcoind.getrawtransaction(lx(txid), 1)
|
||||||
print("Decoded", decoded)
|
print("Decoded", decoded)
|
||||||
|
|
2
zXcat.py
2
zXcat.py
|
@ -23,6 +23,8 @@ SelectParams('regtest')
|
||||||
zcashd = zcash.rpc.Proxy()
|
zcashd = zcash.rpc.Proxy()
|
||||||
FEE = 0.001*COIN
|
FEE = 0.001*COIN
|
||||||
|
|
||||||
|
def validateaddress(addr):
|
||||||
|
return zcashd.validateaddress(addr)
|
||||||
|
|
||||||
def get_keys(funder_address, redeemer_address):
|
def get_keys(funder_address, redeemer_address):
|
||||||
fundpubkey = CBitcoinAddress(funder_address)
|
fundpubkey = CBitcoinAddress(funder_address)
|
||||||
|
|
Loading…
Reference in New Issue