Add coin splitting command that uses largest coin#83
Merged
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
TheLastCicada
enabled auto-merge
July 11, 2025 17:30
cmmarslender
requested changes
Jul 11, 2025
Co-authored-by: Chris Marslender <chrismarslender@gmail.com>
…ls into split-largest-coin
cmmarslender
approved these changes
Jul 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Most of the time that I do coin splitting, I just want to take the largest coin in my wallet and split off a few smaller ones. It is a hassle to find the coin ID of the largest coin and then provide that to the coin splitting command. This command automates that for us - now if you do
chia-tools coins split-largest -f 00000000 -m 0.00000002 -n 2 -a 0.00033it will find the largest coin and split off 2 coins worth 0.00033 XCH. It takes the same flags aschia wallet coin splitexcept the options have been reduced to pretty much just the amount, number of coins, and fees. Here's the help output:Before this is merged, we'll need to update the go-chia-libs version that is pulled in after merging Chia-Network/go-chia-libs#206