Sha256: 97dc66d594383ae78aff386b93936e2ca0c9c27954d8782ad639b5f83d1c2f9b
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true module Nano::NodeProxyHelper include Nano::ApplicationHelper def account_containing_block(opts) block_account(opts_hash(opts)).account end def available_nano available_supply.available end def create_wallet Nano::Wallet.new(wallet_create.wallet) end def pending_exists?(opts) pending_exists(opts_hash(opts)).exists == 1 end def work_valid?(work:, hash:) work_validate(work: work, hash: hash).valid == 1 end private def opts_hash(opts) { hash: opts_pluck(opts, :hash) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nano_rpc-0.3.0 | lib/nano_rpc/helpers/node_proxy_helper.rb |