Skip to content

createCoin

createCoin(amount): CoinInfo

Defined in: src/Utils.ts:263

Create a new coin with random nonce and native token color.

Parameters

amount

Token amount (as bigint or number)

number | bigint

Returns

CoinInfo

CoinInfo with nonce, color, and value

Since

0.2.0