Talk with a lightningd/c-lightning with minimal overhead and gjson responses.
Minor fixes and add https://explorer.bullbitcoin.com/ as an alternative esplora backend.
Updated mempool.space URL from /electrs to /api. This was causing big breaks.
sparko v2.1 has support for Range
headers that allow you to only get a slice of long lists of things returned by listinvoices
, listsendpays
, listforwards
any anything else.
Just specify the header as Range: <jsonattrname>=<from>-<to>
to get response[jsonattrname].slice(from, to)
or Range: <jsonattrname>=-<from>
to get response[jsonattrname].slice(-from)
.
A practical example. Imagine I want to get my last forwarded payment. If I call listforwards
I'll have to download thousands of forwards and then only filter one locally. With a Range
header I can do:
~> curl -k https://etleneum.com/rpc -H 'X-Access: secretkey' -d '{"method": "listforwards"}' -H 'Range: forwards=-1'
{
"forwards": [
{
"payment_hash": "ad36317a3163e23f5b6d5c2376fddf908724bd449b841298d8b6c4ca6f93b91c",
"in_channel": "626617x2512x1",
"out_channel": "623255x1489x0",
"in_msatoshi": 12860001,
"in_msat": "12860001msat",
"out_msatoshi": 12860000,
"out_msat": "12860000msat",
"fee": 1,
"fee_msat": "1msat",
"status": "local_failed",
"failcode": 16392,
"failreason": "WIRE_PERMANENT_CHANNEL_FAILURE",
"received_time": 1590002068.897
}
]
}
sparko v2.0 has
/stream
and wait until you get events (to call methods, as always you just call /rpc
).More details at the README.
Fixing a stupid bug that rarely happens.
trustedcoin now is (hopefully) safer (in the sense that it won't constantly close your channels because of fee disagreements), adapted to c-lightning v0.8.2 which changed the Bitcoin backend interface.
Single-binary executables for plugins.
Read more at https://github.com/fiatjaf/lightningd-gjson-rpc/tree/x1/cmd
This release has nothing new except
rpc_command
hook to track channels and nodes most present in your outgoing payment attempts;signatures
pluginSince the new c-lightning version includes signing methods by default this plugin won't be maintained anymore and I've deleted it entirely. If you want you can still find the old releases or go to previous commits to see the source.
shadows
pluginshadows
is an experimental plugin that allows you to create invoices from random nodes and channels that don't actually exist and resolve them on your node!
sparko
now supports LetsEncrypt certificatesJust specify sparko-letsencrypt-email
and a domain name as sparko-host
and you'll get a certificate for free automatically! (For now it's required that you're allowed to bind to port 80 and 443, which means you must either run lightningd
as root or explicitly grant authorization so your user can bind to these ports.)
Sparko has has some other improvements too.
webhook
filter names changed, but now supports all lightningd notifications!Woohoo! This is good for everybody, except if you were using the ?filter-event=
stuff on your webhook URLs. But it's easy to update to the new names nonetheless.
The plugin framework allows you to specify a string version like v1.3
and the plugin will print that on startup!
waitpay
bugfixes.This is not interesting.