Skip to content

Instantly share code, notes, and snippets.

@niftynei
Last active April 3, 2023 17:24
Show Gist options
  • Save niftynei/901d27f01953ad7555197dcc1c8d258d to your computer and use it in GitHub Desktop.
Save niftynei/901d27f01953ad7555197dcc1c8d258d to your computer and use it in GitHub Desktop.
l2-cli fundpsbt -k satoshi=0.0001btc feerate=1000perkw startweight=100 excess_as_change=true
l2-cli splice_init 6117cb0a5cf324429f9d9b2d5b65997ceae4c36cfea3257f0c04b78abc5a58e1 0.001btc
bt-cli joinpsbts '["cHNidP8BAFICAAAAAeD6kUTEGtSDpqTBJjNNdkbeLNhT7B987T5jsTM1Xq9hAQAAAAD9////AQG49QUAAAAAFgAUfVYv/nExvr8P/3NvUagIM+V5HCpGAQAAAAEA3gIAAAAAAQGo4bIaZGNf2TwQM/RctA9J0DZsdJOfxqkD9lTCpYaZbwEAAAAA/v///wJKo5BBAAAAABYAFPK4omogjA1InRg5qeYUO3unUaN8AOH1BQAAAAAWABSPLmIuh2UJIDAGzg4bnK1xCrTAygJHMEQCICAHt0ORtzYYn7rexl/wmQYQsRQoqIJIZciDgViSVweUAiAUGlyX+QNe5atJ/S881MVITLM/ZJW1SCmmfkSBogPQXgEhAwGfFp/l2sIBsYigCpc1IkoRmS9aXc7iGESWiwPqqLVNUQEAAAEBHwDh9QUAAAAAFgAUjy5iLodlCSAwBs4OG5ytcQq0wMoAAA==", "cHNidP8BAF4CAAAAATwa1GgGHwXM+FJDoQYrQDDQ4gY12zqHgYBJ8dWjB0O5AAAAAAAAAAAAAQAAAAAAAAAAIgAge/ylPwuumitQ8tlqzuRaF6DbBmyZdg3LwpnGFxzplisAAAAAAAEA6gIAAAAAAQEF8nj+tU1U9LN29X4rBKXO4NdCI8l0xKW73ZRR6neiZwAAAAAA/f///wIgTgAAAAAAACIAIHv8pT8LrporUPLZas7kWheg2wZsmXYNy8KZxhcc6ZYrRpL1BQAAAAAWABT8EaUz/Pmm3qQ9A2wknEogfw37lQJHMEQCIBhkVblA5MbMWtbsnGQ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