Pool usage notes
Read through the documentation and the resources below.
The best place to search for commands and keywords: https://lightning.engineering/poolapi
Follow https://twitter.com/LightningPool for an (unofficial) list of past batches and curated content.
The Pool install script for the RaspiBlitz is in this PR:
1
# download
2
wget https://raw.githubusercontent.com/openoms/raspiblitz/pool/home.admin/config.scripts/bonus.pool.sh
3
# inspect the script
4
cat bonus.pool.sh
5
# install
6
bash bonus.pool.sh on
Copied!

clearing_price_rate

The uniform clearing price rate in parts per billion of the batch. It equals to the lowest included bid rate in the batch.

ratings

Returns the current Node Tier of a node, along with other information.
By default nodes listed in the Bos Score list are used to fill the bids, called TIER_1 in the ratings. They are shortlisted according to: up time, inbound capacity, history, channel updates, ability to actively route (via probing).
  • Check for a rating of a public node:
    1
    pool auction ratings [NODE_PUBKEY]
    Copied!
  • The check the rating of the local node:
    1
    $ pool auc r $(lncli getinfo|grep "identity"|cut -d'"' -f4)
    2
    {
    3
    "node_ratings": [
    4
    {
    5
    "node_pubkey": "REDACTED_NODE_PUBKEY",
    6
    "node_tier": "TIER_1"
    7
    }
    8
    ]
    9
    }
    Copied!
  • A channel buyer (Taker) can specify a bid to accept all tiers with --min_node_tier 0
    1
    --min_node_tier value the min node tier this bid should be matched with, tier 1 nodes are considered 'good', if set to tier 0, then all nodes will be considered regardless of 'quality' (default: 0)
    Copied!

nextbatchinfo

Returns information about the next batch the auctioneer will perform.
Shows:
  • fee_rate_sat_per_kw: what the target fee rate cut off will be
  • clear_timestamp: the blockheight of the next marker clearing attempt
$ pool auction nextbatchinfo
Example:
1
{
2
"conf_target": 35,
3
"fee_rate_sat_per_kw": "27714",
4
"clear_timestamp": "1604406782"
5
}
Copied!
For your order to be included in the next batch the fee_rate_sat_per_kw should be above the cut off value.
List the fee_rate_sat_per_kw of your orders with:
1
$ pool orders list | grep fee_rate_sat_per_kw
Copied!

auction snapshot

Returns information about a prior batch such as the clearing price and the set of orders included in the batch. The prev_batch_id field can be used to explore prior batches in the sequence, similar to a block chain.
last batch info: $ pool auction snapshot
query the prior batches recursively:
1
# get the previous batch id
2
prev_batch_id=$(pool auc s |jq -r '.prev_batch_id')
3
4
# show the prior batch (just repeat the line to show the past batches)
5
prev_batch_id=$(pool auc s --batch_id $prev_batch_id|jq -r '.prev_batch_id') && pool auc s --batch_id $prev_batch_id
6
7
# show only the clearing price of the prior batch recursively:
8
prev_batch_id=$(pool auc s --batch_id $prev_batch_id|jq -r '.prev_batch_id') && pool auc s --batch_id $prev_batch_id|jq -r '.clearing_price_rate'
Copied!
Search the txid of a batch on http://1ml.com after it is confirmed (channels opened and published) to see the details of the channels and peers involved. https://twitter.com/openoms/status/1326482404224229376

logs

Monitor the pool logs in: /home/pool/.pool/logs/mainnet/poold.log
Example:
1
tail -f -n 1000 /home/pool/.pool/logs/mainnet/poold.log
Copied!

Resources

Last modified 28d ago