understand, thanks. But how can I open bi-directional channel with any node?
how can I open such channel with some (not mine) node?
Using whatever channel opening functionality the LN software you are using provides. All channels are bidirectional; it doesn't matter who creates them, both parties in the channel can send money to and receive money from the other party in the channel.
maybe I ask wrong question.
according to this tutorial
https://dev.lightning.community/tutorial/01-lncli/If I open channel from Alice to Bob - Alice can pay to Bob, right?
But how can I force Bob to put some satoshi in this channel? So Bob can pay back to Alice?
for example:
bitcointest@zabbix:/root$ lncli-alice openchannel --node_key=XXXXX --local_amt=80000
{
"funding_txid": "XXXXXX"
}
bitcointest@zabbix:/root$ lncli-alice listchannels
{
"channels": [
{
"active": true,
"remote_pubkey": "XXXXXXX",
"channel_point": "XXXXXXXXX:1",
"chan_id": "XX",
"capacity": "80000",
"local_balance": "77199",
"remote_balance": "0",
"commit_fee": "191",
"commit_weight": "600",
"fee_per_kw": "250",
"unsettled_balance": "0",
"total_satoshis_sent": "0",
"total_satoshis_received": "0",
"num_updates": "0",
"pending_htlcs": [
],
"csv_delay": 144,
"private": false
}
]
}
now we have channel from Alice to Bob. But I want Bob to pay Alice invoice.
bitcointest@zabbix:/root$ lncli-alice addinvoice 5000
{
"r_hash": "XXXXX5cfd2a4949adc680b01ad0f002553c",
"pay_req": "lnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXf5mvr"
}
bitcointest@zabbix:/root$ lncli-bob payinvoice lnXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXf5mvr
{
"payment_error": "unable to route payment to destination: TemporaryChannelFailure: insufficient capacity in available outgoing links: need 5000000 mSAT, max available is 0 mSAT",
"payment_preimage": "",
"payment_route": null
}
so, question is - how to force Bob to put some money into channel?