Sha256: d1770aa588655fa5c80fc051817cca9869399b062ac3b59b926534581567393d
Contents?: true
Size: 614 Bytes
Versions: 2
Compression:
Stored size: 614 Bytes
Contents
# frozen_string_literal: true module Bitcoin module Grpc module Api class ListUnspent attr_reader :spv def initialize(spv) @spv = spv end def execute(request) height = spv.chain.latest_block.height utxos = spv.wallet.list_unspent( account_name: request.account_name, current_block_height: height, min: request.min, max: request.max, addresses: request.addresses ) Bitcoin::Grpc::ListUnspentResponse.new(utxos: utxos) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bitcoinrb-grpc-0.1.9 | lib/bitcoin/grpc/api/list_unspent.rb |
bitcoinrb-grpc-0.1.8 | lib/bitcoin/grpc/api/list_unspent.rb |