Multiple amounts support for multi-recipients transactions
Two solutions for CLI:
-
--amount1
--output1
,--amount2
--output2
,…--amountn
--outputn
pubkey1!pubkey_checksum1?amount1:pubkey2!pubkey_checksum2?amount2
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Moul changed the description
changed the description
- Moul mentioned in issue #234 (closed)
mentioned in issue #234 (closed)
- matograine assigned to @matograine
assigned to @matograine
- Moul changed title from Allow specifying different amounts for multi-output transactions to Allow to specify different amounts for multi-output transactions
changed title from Allow specifying different amounts for multi-output transactions to Allow to specify different amounts for multi-output transactions
- Maintainer
I think of another structure, maybe less human-friendly :
--output <output1>:<output2>:<output3> --amount <amount1>:<amount2>:<amount3>
With a function checking that the outputs number and the amounts number match.
Edited by matograine - Maintainer
OK, I'll use the syntax :
silkaj tx --output <pubkey1>:<pubkey2>:... --amount(UD) <amount1>:<amount2>:...
I think it is more adapted for scripts. I keep the feature
--output <pubkey1>:<pubkey2> --amount(UD) <amount>
to send the same amount to many recipients.
However, the confirmation table looks quite big for a single tx :
╒════════════════════════════╤══════════════════════════════════════════════╕ │ pubkey’s balance before tx │ 2278.02 ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ total amount (unit) │ 15.7 ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ total amount (relative) │ 0.018 UD ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ pubkey’s balance after tx │ 2262.32 ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ from (pubkey) │ 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ to (pubkey) │ d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ to (id) │ matograine-G1Test │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ amount (unit) │ 8.7 ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ amount (relative) │ 0.01 UD ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ to (pubkey) │ 5tKxzdi43AKPnYb4Bzjs1LZecceouvJ3ZaCrFTde2chf │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ amount (unit) │ 2.6 ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ amount (relative) │ 0.003 UD ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ to (pubkey) │ BpERUYSfdzFPGWuE1y3VoHxamnTnK4Q6dZTNbaSkL1j3 │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ amount (unit) │ 4.4 ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ amount (relative) │ 0.005 UD ĞTest │ ├────────────────────────────┼──────────────────────────────────────────────┤ │ comment │ BABA YAGA │ ╘════════════════════════════╧══════════════════════════════════════════════╛
I'd like to make it lighter :
╒════════════════════════════════╤══════════════════════════════════════════════╕ │ pubkey’s balance before tx │ 2272.32 ĞTest │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ total amount (unit | relative) │ 15.7 ĞTest || 0.018 UD │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ pubkey’s balance after tx │ 2256.62 ĞTest │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ from (pubkey) │ 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ to (pubkey) │ d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ to (id) │ matograine-G1Test │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ amount (unit | relative) │ 8.7 ĞTest || 0.01 UD │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ to (pubkey) │ 5tKxzdi43AKPnYb4Bzjs1LZecceouvJ3ZaCrFTde2chf │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ amount (unit | relative) │ 2.6 ĞTest || 0.003 UD │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ to (pubkey) │ BpERUYSfdzFPGWuE1y3VoHxamnTnK4Q6dZTNbaSkL1j3 │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ amount (unit | relative) │ 4.4 ĞTest || 0.005 UD │ ├────────────────────────────────┼──────────────────────────────────────────────┤ │ comment │ BABA YAGA │ ╘════════════════════════════════╧══════════════════════════════════════════════╛
What do you think ? Is there a good reason to separate the amount (unit) and the amount (UD) on two lines ?
Edited by matograine This CLI syntax looks great. You can go into this direction.
Concerning the display of the amounts in relative and absolute, there is no reason, except that features get piled up. And this improvement is a nice idea.
I would suggest you to open a new ticket to tackle it separetely as is it not linked to this ticket. And that would make things easier to treat it.
- matograine mentioned in issue #237 (closed)
mentioned in issue #237 (closed)
- Moul removed enhancement label
removed enhancement label
- matograine mentioned in merge request !105 (closed)
mentioned in merge request !105 (closed)
- matograine mentioned in issue #242 (closed)
mentioned in issue #242 (closed)
- matograine added Doing label
added Doing label
- matograine mentioned in issue #248 (closed)
mentioned in issue #248 (closed)
- matograine mentioned in merge request !108 (merged)
mentioned in merge request !108 (merged)
- matograine mentioned in commit 4405ee78
mentioned in commit 4405ee78
- matograine mentioned in commit fc2b73f0
mentioned in commit fc2b73f0
- matograine mentioned in commit 259af22f
mentioned in commit 259af22f
- matograine mentioned in commit 840d7352
mentioned in commit 840d7352
- matograine mentioned in commit 0c685449
mentioned in commit 0c685449
- matograine mentioned in commit 20b728cb
mentioned in commit 20b728cb
- matograine mentioned in commit cf7f226e
mentioned in commit cf7f226e
- matograine mentioned in commit e92d4eeb
mentioned in commit e92d4eeb
- matograine mentioned in commit 045ff84c
mentioned in commit 045ff84c
- matograine mentioned in commit bf693c44
mentioned in commit bf693c44
- matograine mentioned in commit d6ebc0d4
mentioned in commit d6ebc0d4
- matograine mentioned in commit 2a647152
mentioned in commit 2a647152
- matograine mentioned in commit 6dce5ca0
mentioned in commit 6dce5ca0
- matograine mentioned in commit defb794c
mentioned in commit defb794c
- matograine mentioned in commit 29621aa2
mentioned in commit 29621aa2
- matograine mentioned in commit c0b4e9e4
mentioned in commit c0b4e9e4
- matograine mentioned in commit abb39ce8
mentioned in commit abb39ce8
- matograine mentioned in commit acc30245
mentioned in commit acc30245
- matograine mentioned in commit 4173988c
mentioned in commit 4173988c
- matograine mentioned in commit b5cd4bbc
mentioned in commit b5cd4bbc
- matograine mentioned in commit df2376ad
mentioned in commit df2376ad
- matograine mentioned in commit 7321f18d
mentioned in commit 7321f18d
- matograine mentioned in commit 505bbb60
mentioned in commit 505bbb60
- matograine mentioned in commit bfa4c7e5
mentioned in commit bfa4c7e5
- matograine mentioned in commit a59fcd66
mentioned in commit a59fcd66
- matograine mentioned in commit 21b19008
mentioned in commit 21b19008
- matograine mentioned in commit bd7a058e
mentioned in commit bd7a058e
- matograine mentioned in commit 0e50a90e
mentioned in commit 0e50a90e
- matograine mentioned in commit 709c34af
mentioned in commit 709c34af
- matograine mentioned in commit a036d162
mentioned in commit a036d162
- matograine mentioned in commit 4a7d49eb
mentioned in commit 4a7d49eb
- matograine mentioned in commit 80536013
mentioned in commit 80536013
- matograine mentioned in commit 745d1587
mentioned in commit 745d1587
- matograine mentioned in commit a69eabb8
mentioned in commit a69eabb8