Class: Faker::Blockchain::Bitcoin

Inherits:
Faker::Base show all
Defined in:
lib/faker/blockchain/bitcoin.rb

Constant Summary collapse

PROTOCOL_VERSIONS =
{
  main: 0,
  testnet: 111
}.freeze

Constants inherited from Faker::Base

Faker::Base::Letters, Faker::Base::Numbers, Faker::Base::ULetters

Class Method Summary collapse

Methods inherited from Faker::Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.addressObject



15
16
17
# File 'lib/faker/blockchain/bitcoin.rb', line 15

def address
  address_for(:main)
end

.testnet_addressObject



19
20
21
# File 'lib/faker/blockchain/bitcoin.rb', line 19

def testnet_address
  address_for(:testnet)
end