Validate a satoshi amount before constructing a SEND request
Shell validation
amount=${1:-}
case "$amount" in
''|*[!0-9]*) echo 'Amount must be a whole satoshi integer' >&2; exit 2 ;;
esac
[ "$amount" -gt 0 ] || { echo 'Amount must be positive' >&2; exit 2; }
printf 'Validated amount: %s sat\n' "$amount"
This is input validation only. It does not check UTXOs, mining fees, the signed wallet fee law, dust, or network policy. The Engine remains the authority for SEND acceptance.
Next step
Read the documented SEND request schema from your installed Engine release before adding an authenticated POST.
