Merge branch 'main' of github.com:hyle-team/zano_web3

This commit is contained in:
jejolare 2025-02-28 11:04:49 +07:00
commit e263faf387

View file

@ -395,4 +395,17 @@ const alias = "alias";
## Requirements
- Correct RPC URLs for the wallet and daemon.
- Correct RPC URLs for the wallet and daemon.
# Shared logic
## Usage
### validateTokensInput util
validateTokensInput function checks whether a numeric or string value can be used as an amount for an asset with the specified DP.
```typescript
import { validateTokensInput } from "zano_web3/shared";
let isValidAmount = validateTokensInput("18446744.073709551615", 12); // true
isValidAmount = validateTokensInput("18446744.073709551616", 12); // false
```