Skip to content

createCustomCoin

createCustomCoin(amount, color): CoinInfo

Defined in: src/Utils.ts:287

Create a coin with a custom token color.

Parameters

amount

Token amount

number | bigint

color

Uint8Array

Token color as Uint8Array (32 bytes)

Returns

CoinInfo

CoinInfo with nonce, color, and value

Since

0.2.0