class Sibit::Fake
Fake
API
Public Instance Methods
balance(_address)
click to toggle source
# File lib/sibit/fake.rb, line 49 def balance(_address) 100_000_000 end
block(hash)
click to toggle source
# File lib/sibit/fake.rb, line 65 def block(hash) { provider: self.class.name, hash: hash, orphan: false, next: hash, previous: hash, txns: [ { hash: hash, outputs: [ { address: '1HqhZx8U18TYS5paraTM1MzUQWb7ZbcG9u', value: 1000 } ] } ] } end
fees()
click to toggle source
# File lib/sibit/fake.rb, line 45 def fees { S: 12, M: 45, L: 100, XL: 200 } end
height(_hash)
click to toggle source
# File lib/sibit/fake.rb, line 41 def height(_hash) 1 end
latest()
click to toggle source
# File lib/sibit/fake.rb, line 61 def latest '00000000000000000008df8a6e1b61d1136803ac9791b8725235c9f780b4ed71' end
next_of(_hash)
click to toggle source
# File lib/sibit/fake.rb, line 37 def next_of(_hash) nil end
price(_cur = 'USD')
click to toggle source
# File lib/sibit/fake.rb, line 33 def price(_cur = 'USD') 4_000 end
push(hex)
click to toggle source
# File lib/sibit/fake.rb, line 57 def push(hex) # Nothing to do here end
utxos(_sources)
click to toggle source
# File lib/sibit/fake.rb, line 53 def utxos(_sources) [] end