lwk_bindings 0.14.0

Liquid Wallet Kit - Bindings for other languages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from lwk import *

t = LwkTestEnv() # launch electrs and elementsd

assert(t.height() == 101)

t.generate(10)

assert(t.height() == 111)

node_address = t.get_new_address()

t.send_to_address(node_address, 10000, None)

p = Precision(2)
assert(p.sats_to_string(100) == "1.00")
assert(p.string_to_sats("1") == 100)