Sha256: 74ad8d0c8fae649b73ef11cc787d563494be5ed4f34a84ed9101069ad80ef2f9
Contents?: true
Size: 669 Bytes
Versions: 2
Compression:
Stored size: 669 Bytes
Contents
# frozen_string_literal: true module Bitcoin module Grpc module Api class ListColoredUnspent attr_reader :spv def initialize(spv) @spv = spv end def execute(request) height = spv.chain.latest_block.height assets = spv.wallet.list_unspent_assets_in_account( request.asset_type, request.asset_id, account_name: request.account_name, current_block_height: height, min: request.min, max: request.max ) Bitcoin::Grpc::ListColoredUnspentResponse.new(assets: assets) 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_colored_unspent.rb |
bitcoinrb-grpc-0.1.8 | lib/bitcoin/grpc/api/list_colored_unspent.rb |