Skip to content

Instantly share code, notes, and snippets.

View yuyaogawa's full-sized avatar
🏠
Working from home

Yuya yuyaogawa

🏠
Working from home
  • Japan
View GitHub Profile
from glclient import TlsConfig, Scheduler, Signer
seed=b'my-seed'
cert = "my-cert"
key = "my-key"
node_id = bytes.fromhex("02a5b6a3fe53c39edb348818b4a145c830db90cbc410ac52ce16e985e7f0b37e86")
network = "mainnet"
tls = TlsConfig()
tls = tls.identity(cert, key)

Testing shiro wallet on Umbrel

  1. SSH into the Pi
ssh umbrel@umbrel.local
  1. Switch repo to Diamondhands-dev repo
sudo ./scripts/repo checkout https://github.com/diamondhands-dev/umbrel-apps.git

Opening a channel by using a PSBT

This document describes how to open a channel with c-lightning by using a PSBT as the funding transaction for my learning. If you use lnd please go to here that is well documented. Also, here is the c-lightning offical document for each command that are shown below.

1. Start a funding process

fundchannel_start is a lower level RPC command that allows a user to initiate channel establishment with a connected peer. Assume my node is already connected to 02b861cc95a061d0536a2e6d96992274c284490bc1e3782d5b59004a2aba7767a7. Below the command returns the funding_address and the scriptpubkey for the channel funding output with 200000 sats.