Plugin for batch transactions#1475
Open
DivyanshGoel20 wants to merge 1 commit intohiero-ledger:mainfrom
Open
Conversation
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.
Split Payments Plugin
Summary
Adds a Split Payments plugin so you can run batch HBAR transfers from a single CSV file. Instead of running one transfer per command, you point the CLI at a CSV (to, amount) and it executes each row as a separate transfer, using a single payer (operator or
--from).Commands
split-payments transferWhy This Plugin?
Paying many recipients (refunds, rewards, payroll) usually means repeating the same transfer command or writing a script. This plugin turns a CSV plus one command into a full batch: validate with
--dry-run, then run for real with the same file.What's Included
to(account ID, EVM address, or CLI alias),amount(e.g.10for 10 HBAR or100tfor 100 tinybars). Optional header (to,amount); comma or semicolon; quoted fields supported.--dry-runvalidates the CSV and lists planned transfers without sending any transaction.--from(alias oraccountId:privateKey); optional--key-managerfor key storage.10) or tinybars withtsuffix (e.g.100t).--format jsonfor scripting and CI.Architecture
PluginManifest.CommandExecutionResult(ADR-003).api.hbar.transferTinybar,api.txExecution,api.keyResolver,api.network,api.alias; sharedprocessBalanceInputandformatError. CSV parsing and header detection live in the handler.Prerequisites
--from— Payer must have enough HBAR for all transfers and fees.--file(absolute or relative to cwd). Recipients must be valid account IDs, EVM addresses, or CLI aliases.References