Bitcoin Address generator

Generates a random Bitcoin address.

finance.bitcoinAddress

Generator settings

Generate data to see results here.

Parameters & Example

Generates a random Bitcoin address.

finance.bitcoinAddress(options?: { type?, network? })
options
An optional options object.
options.type
The bitcoin address type ('legacy', 'segwit', 'bech32' or 'taproot'). Defaults to a random address type.
options.network
The bitcoin network ('mainnet' or 'testnet'). Defaults to 'mainnet'.

Example

"bc15m3pfdu56trgurx9pehzaa9mkap24ldss3lh7ur"

Use synthetic data in a test environment.

Related generators

Explore scenarios