$ npm i satoshi-value
$ yarn add satoshi-value
// Boomers
const satoshi = require('satoshi-value');
// Cool people
import satoshi from "satoshi-value"
const amountToSend = 1 * satoshi; // 1.0e+8
Satoshi was named after the founder, or founders, of bitcoin, known as Satoshi Nakamoto.
According to the Investopedia Satoshi represents one hundred millionths of a bitcoin. Small denominations make bitcoin transactions easier to conduct and makes extremely fine transactions readable. The general unit structure of bitcoins has 1 bitcoin (BTC) equivalent to 1,000 millibitcoins (mBTC), 1,000,000 microbitcoins (μBTC), or 100,000,000 satoshis.
Copyright © 2021, Amin Mahrami. Released under the MIT License.