turnley.dev

PHP and MySQL code for faucet operators

Tools & Calculators

Tool

Satoshi and coin unit converter

Convert between satoshi, whole coins and USD for any coin, with the unit counts faucet APIs actually expect.

Faucet and payout APIs almost never take dollars, and they rarely take whole coins. They take the coin's smallest unit — satoshi for most, but not for all, and the multiplier is different for ETH, TRX and USDT.

Getting that multiplier wrong is the single most expensive mistake in faucet code, because the error is a factor of a hundred million and it goes in the direction of paying too much.

Enter any of the three and this gives you the other two. Leave the price blank if you only need unit maths.

Reset

Smallest unit
100,000satoshi — this is the number the API wants
Whole LTC
0.001
Units per whole coin
100,000,000

Notes

The unit count is always floored, never rounded up. Rounding up by one unit on every payout is a leak with no ledger entry behind it.

Not every coin uses 100,000,000. ETH and BNB use 10^18, TRX and USDT use 10^6, SOL uses 10^9. Hardcoding satoshi across a multi-coin faucet is where the second most expensive mistake lives.

Store the price you used on the payout row whenever you convert from USD. Reconciling a payout six weeks later without it is guesswork.

Other tools