Skip to content

Instantly share code, notes, and snippets.

>>> all_backup = bob.export_all_channel_backups()
>>> type(all_backup.single_chan_backups)
<class 'lnd_grpc.protos.rpc_pb2.ChannelBackups'>
>>> bob.verify_chan_backup(single_chan_backups=all_backup.single_chan_backups)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/satoshi/Documents/src/lnd_grpc/lnd_grpc/lightning.py", line 484, in verify_chan_backup
response = self.lightning_stub.VerifyChanBackup(request)
File "/Users/satoshi/Documents/src/lnd_grpc/.venv/lib/python3.7/site-packages/grpc/_channel.py", line 549, in __call__
return _end_unary_response_blocking(state, call, False, None)
import codecs
import json
import os
import sys
import pprint
import grpc
from google.protobuf.json_format import MessageToJson
from tabulate import tabulate