Sha256: 2e0c4c663c8a4c489fbcd3acf08034e15d2e44feb6f43eb58f90e0f0c2845db2
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
# frozen_string_literal: true class Nano::Account include Nano::Proxy include Nano::AccountProxyHelper attr_accessor :address def initialize(address = nil, opts = {}) unless address.is_a?(String) raise Nano::MissingParameters, 'Missing argument: address (str)' end @address = address super(opts) end proxy_params account: :address proxy_method :account_balance proxy_method :account_block_count proxy_method :account_info proxy_method :account_create, required: %i[wallet], optional: %i[work] proxy_method :account_history, required: %i[count] proxy_method :account_move, required: %i[wallet source accounts] proxy_method :account_key proxy_method :account_remove, required: %i[wallet] proxy_method :account_representative proxy_method :account_representative_set, required: %i[wallet representative] proxy_method :account_weight proxy_method :delegators proxy_method :delegators_count proxy_method :frontiers, required: %i[count] proxy_method :frontier_count proxy_method :ledger, required: %i[count], optional: %i[representative weight pending sorting] proxy_method :validate_account_number proxy_method :pending, required: %i[count], optional: %i[threshold exists] proxy_method :payment_wait, required: %i[amount timeout] proxy_method :work_get proxy_method :work_set end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nano_rpc-0.3.0 | lib/nano_rpc/proxies/account.rb |
nano_rpc-0.2.0 | lib/nano/proxies/account.rb |