Skip to content

Latest commit

 

History

History
160 lines (112 loc) · 26.5 KB

README.md

File metadata and controls

160 lines (112 loc) · 26.5 KB

liana-rpc

lianad JSON-RPC Python client.

Serves as a client to connect to a lianad running instance trough the RPC socket.

You can have a look to the RPC API reference

Install

From pip

pip install liana-rpc

From Github repo:

pip install git+https://github.com/pythcoiner/liana-rpc

Examples

Connect

You might have a lianad running instance on your machine (and so your lianad need to be connected to a bitcoind).

Autodetect way (linux only)

If you have a running instance of lianad , it should be auto-detected.

from liana_rpc.liana_rpc import LianaRPC

liana = LianaRPC()

Specifying the socket path

If you are under Windows/MAC or running several lianad instances, you'll need to specify the socket path:

from liana_rpc.liana_rpc import LianaRPC

liana = LianaRPC('~/.liana/signet/lianad_rpc')

Get wallet info:

import json
from liana_rpc.liana_rpc import LianaRPC

liana = LianaRPC()

print(json.dumps(liana.get_info(), indent=2))

output:

{
  "block_height": 153381,
  "descriptors": {
    "main": {
      "change_desc": "wsh(or_i(and_v(v:pkh([c6fb74e6/48'/1'/1'/2']tpubDFJBUNcNBTvAZYp5CteCpbCBfs8GhescLJPfTvcH7jugvFAffTr67BjvZ28g2fqt2bkHYTNTwaC95hx6byTFi8kVQa/1/*),older(20)),or_d(multi(2,[c4fb74e6/48'/1'/0'/2']tpubDE4XEBLMec4eRURN3QGNFGJZcvPT7r1AGELL7P5fbiBp2txJCRfAmNHnjCF1YZsbzkQYZKVpTvRGWLbwYGgFHp6Sb8atSWKyzKsv4dUp1vY/1/*,[a5c6b76e/48'/1'/0'/2']tpubDF5861hj6vR3iJr3aPjGJz4rNbqDCRujQ21mczzKT5SiedaQqNVgHC8HT9ceyxvMFRoPMx4P6HAcL3NZrUPhRUbwCyj3TKSa64bAfnE3sLh/1/*),and_v(v:pkh([a5c6b76e/48'/1'/1'/2']tpubDFhfKfRZcoXt9uMAWCEmtbv5sFaZ3o9bUyQ74Gj1UxxS5MHENpBhMXmc6gfkMXoJnDTfso1Gzyb2DpwpPVeJsgGee1qXAAQ1AhBNqFG6Mwt/1/*),older(10)))))#y4kctn23",
      "multi_desc": "wsh(or_i(and_v(v:pkh([c6fb74e6/48'/1'/1'/2']tpubDFJBUNcNBTvAZYp5CteCpbCBfs8GhescLJPfTvcH7jugvFAffTr67BjvZ28g2fqt2bkHYTNTwaC95hx6byTFi8kVQa/<0;1>/*),older(20)),or_d(multi(2,[c4fb74e6/48'/1'/0'/2']tpubDE4XEBLMec4eRURN3QGNFGJZcvPT7r1AGELL7P5fbiBp2txJCRfAmNHnjCF1YZsbzkQYZKVpTvRGWLbwYGgFHp6Sb8atSWKyzKsv4dUp1vY/<0;1>/*,[a5c6b76e/48'/1'/0'/2']tpubDF5861hj6vR3iJr3aPjGJz4rNbqDCRujQ21mczzKT5SiedaQqNVgHC8HT9ceyxvMFRoPMx4P6HAcL3NZrUPhRUbwCyj3TKSa64bAfnE3sLh/<0;1>/*),and_v(v:pkh([a5c6b76e/48'/1'/1'/2']tpubDFhfKfRZcoXt9uMAWCEmtbv5sFaZ3o9bUyQ74Gj1UxxS5MHENpBhMXmc6gfkMXoJnDTfso1Gzyb2DpwpPVeJsgGee1qXAAQ1AhBNqFG6Mwt/<0;1>/*),older(10)))))#t4nta0mn",
      "receive_desc": "wsh(or_i(and_v(v:pkh([c6fb74e6/48'/1'/1'/2']tpubDFJBUNcNBTvAZYp5CteCpbCBfs8GhescLJPfTvcH7jugvFAffTr67BjvZ28g2fqt2bkHYTNTwaC95hx6byTFi8kVQa/0/*),older(20)),or_d(multi(2,[c4fb74e6/48'/1'/0'/2']tpubDE4XEBLMec4eRURN3QGNFGJZcvPT7r1AGELL7P5fbiBp2txJCRfAmNHnjCF1YZsbzkQYZKVpTvRGWLbwYGgFHp6Sb8atSWKyzKsv4dUp1vY/0/*,[a5c6b76e/48'/1'/0'/2']tpubDF5861hj6vR3iJr3aPjGJz4rNbqDCRujQ21mczzKT5SiedaQqNVgHC8HT9ceyxvMFRoPMx4P6HAcL3NZrUPhRUbwCyj3TKSa64bAfnE3sLh/0/*),and_v(v:pkh([a5c6b76e/48'/1'/1'/2']tpubDFhfKfRZcoXt9uMAWCEmtbv5sFaZ3o9bUyQ74Gj1UxxS5MHENpBhMXmc6gfkMXoJnDTfso1Gzyb2DpwpPVeJsgGee1qXAAQ1AhBNqFG6Mwt/0/*),older(10)))))#kn6q4tpu"
    }
  },
  "network": "signet",
  "rescan_progress": null,
  "sync": 1.0,
  "version": "1.0.0-dev"
}

Generate a new receiving address:

from liana_rpc.liana_rpc import LianaRPC

liana = LianaRPC()

addr = liana.get_new_address()
print(addr)

output:

tb1qlmdc720pler50uhrf88xdt6chrqtuzrldfkw9727hqdr3e25r4csqc0m9x

List unspent coins:

from liana_rpc.liana_rpc import LianaRPC

liana = LianaRPC()

coins = liana.list_unspent_coins()

for coin in coins:
    print(coin)

output:

{'amount': 10000, 'block_height': 142843, 'outpoint': '4450583c111e4a2974898e4b5068717f852c5b9e1803531ee2d006aedd2e9e39:0', 'spend_info': None}
{'amount': 10000, 'block_height': 142843, 'outpoint': '4450583c111e4a2974898e4b5068717f852c5b9e1803531ee2d006aedd2e9e39:6', 'spend_info': None}
{'amount': 4607905, 'block_height': 144942, 'outpoint': '9b20145363703a3309166aa1af48d7907cc42dd98d49843ffb24ef909d1da108:1', 'spend_info': None}
{'amount': 10000, 'block_height': 142843, 'outpoint': '4450583c111e4a2974898e4b5068717f852c5b9e1803531ee2d006aedd2e9e39:1', 'spend_info': None}

Create PSBT:

from liana_rpc.liana_rpc import LianaRPC

liana = LianaRPC()

coins = liana.list_unspent_coins()

inputs = [inp['outpoint'] for inp in coins]
outputs = {
    'tb1qlmdc720pler50uhrf88xdt6chrqtuzrldfkw9727hqdr3e25r4csqc0m9x': 3000000
}

psbt = liana.create_psbt(inputs, outputs, 20)

print(psbt)

output:

cHNidP8BAP0EAQIAAAAEOZ4u3a4G0OIeUwMYnlsshX9xaFBLjol0KUoeETxYUEQBAAAAAP3///8IoR2dkO8k+z+ESY3ZLcR8kNdIr6FqFgkzOnBjUxQgmwEA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AAIAAAACAAgAAgAEAAAArAQAAIgIC806hQkPR7OHpn+AGSFx1IupSk9BOTqjs6MUudqAnJ/gcxPt05jAAAIABAACAAQAAgAIAAIABAAAAKwEAACICA6y8r1SgeukL6tL25h19Av1Px2JJ+S4rkpw/moLCmyhNHKXGt24wAACAAQAAgAEAAIACAACAAQAAACsBAAAA

Load PSBT in Liana DB and broadcast:

from liana_rpc.liana_rpc import LianaRPC, psbt_to_txid

liana = LianaRPC()

psbt = 'cHNidP8BANkCAAAABAihHZ2Q7yT7P4RJjdktxHyQ10ivoWoWCTM6cGNTFCCbAQAAAAD9////OZ4u3a4G0OIeUwMYnlsshX9xaFBLjol0KUoeETxYUEQBAAAAAP3///85ni7drgbQ4h5TAxieWyyFf3FoUEuOiXQpSh4RPFhQRAYAAAAA/f///zmeLt2uBtDiHlMDGJ5bLIV/cWhQS46JdClKHhE8WFBEAAAAAAD9////AV2dRgAAAAAAIgAgeypGlyQJmDjLrAkdM/fsNPDtOSJ1dZHpKLmqEu5rQ4sAAAAAAAEA/a4LAgAAAAABCTmeLt2uBtDiHlMDGJ5bLIV/cWhQS46JdClKHhE8WFBEBwAAAAD9////3DpES5uSMvb3nM8by2e9xT8n/dAPMYUFramPXdQZdDsBAAAAAP3///+UyUCPCoAxtegnIz0MZTMst9DJX5N+OhsSZgA2+58vWgAAAAAA/f///5C+JMX9wMPCB/PJfTcQuQRJpZlvGYm1pr+K/nG4PoZKAAAAAAD9////nac2MXuM5Bqd/bzNHpW9fh5Nr4x+86vyQ4e1U/19IqQBAAAAAP3///85ni7drgbQ4h5TAxieWyyFf3FoUEuOiXQpSh4RPFhQRAIAAAAA/f///zmeLt2uBtDiHlMDGJ5bLIV/cWhQS46JdClKHhE8WFBEAwAAAAD9////OZ4u3a4G0OIeUwMYnlsshX9xaFBLjol0KUoeETxYUEQEAAAAAP3///85ni7drgbQ4h5TAxieWyyFf3FoUEuOiXQpSh4RPFhQRAUAAAAA/f///wJAQg8AAAAAACIAIK+7y1/whM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xO3QYOMS47D/r8aBJuRmrEl/TCjz42s4cpca3bjAAAIABAACAAQAAgAIAAIABAAAALAEAACICA3V53uZ4UYV0U/nMWHIkpmy6xrZx2qzzFbiM4PupZOefHMT7dOYwAACAAQAAgAAAAIACAACAAQAAACwBAAAiAgOIXOw0BCMUinmyUthfHT84BMhaZ/CcRJqTKWPgMTqU3xylxrduMAAAgAEAAIAAAACAAgAAgAEAAAAsAQAAIgID5atxWmwgFGigHxd0Vx1LAeOna3gud7j9CfiID40Jp20cxPt05jAAAIABAACAAQAAgAIAAIABAAAALAEAAAA='

print(liana.upate_psbt(psbt))

txid = psbt_to_txid(psbt)

ret = liana.broadcast_psbt(txid)

if 'ok' in ret.keys():
    print(liana.del_psbt(txid))
else:
    print('Cannot broadcast!')

output:

{'ok': True}
{'ok': True}