mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
A more detailed description of the "amount" field
The more frequent question I ask to myself when initiating channels regards the amount field. In this document we have three different denominations and the modification proposed aims to address the possible doubts or errors. The names <amount_in_bitcoins>, <amount_in_satoshis> or <amount_in_millisatoshis> (this last is omitted because the denomination is in the description) are not so elegant but they could serve the purpose.
This commit is contained in:
@@ -76,7 +76,7 @@ First you need to transfer some funds to `lightningd` so that it can open a chan
|
|||||||
cli/lightning-cli newaddr
|
cli/lightning-cli newaddr
|
||||||
|
|
||||||
# Returns a transaction id <txid>
|
# Returns a transaction id <txid>
|
||||||
bitcoin-cli -testnet sendtoaddress <address> <amount>
|
bitcoin-cli -testnet sendtoaddress <address> <amount_in_bitcoins>
|
||||||
```
|
```
|
||||||
|
|
||||||
`lightningd` will register the funds once the transaction is
|
`lightningd` will register the funds once the transaction is
|
||||||
@@ -102,7 +102,7 @@ Let's assume the **remote** node is accepting connections at
|
|||||||
|
|
||||||
```
|
```
|
||||||
cli/lightning-cli connect <node_id> <ip> [<port>]
|
cli/lightning-cli connect <node_id> <ip> [<port>]
|
||||||
cli/lightning-cli fundchannel <node_id> <amount>
|
cli/lightning-cli fundchannel <node_id> <amount_in_satoshis>
|
||||||
```
|
```
|
||||||
|
|
||||||
This opens a connection and, on top of that connection, then opens a channel.
|
This opens a connection and, on top of that connection, then opens a channel.
|
||||||
|
|||||||
Reference in New Issue
Block a user