Skip to content

Function: isValidLedgerAmount() ​

ts
function isValidLedgerAmount(amount): boolean;

Defined in: packages/x402-core/src/verify/common.ts:32

An on-ledger transfer amount: a non-negative decimal with at most 10 places.

Parameters ​

amount ​

string

Returns ​

boolean