Synopsis
Behavior
- Load the private key using key auto-discovery.
- Build a Transfer transaction sending
amountCBY to the--toaddress. - The amount is specified in CBY and converted internally (1 CBY = 10^9 wei).
- Sign and submit the transaction.
- Print the transaction hash.
Flags
| Flag | Default | Description |
|---|---|---|
--to | Required | Recipient address (hex) |
--amount | Required | Amount to transfer in CBY |
--rpc-url | Auto-discovered | RPC endpoint |
--private-key | Auto-discovered | Path to private key file |
Example
Edge Cases
- If the sender has insufficient balance, the transaction will be rejected by the chain.
- If the recipient address doesn’t exist on-chain, the chain creates a new account.
- Amount must be a positive integer.

