Sha256: 543745f4b51d094a1a63f5441e413411ab7ea86867bf80c076a4853d85a714bf
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
# frozen_string_literal: true class Nano::Wallet include Nano::Proxy include Nano::WalletProxyHelper attr_accessor :seed def initialize(seed = nil, opts = {}) unless seed.is_a?(String) raise Nano::MissingParameters, 'Missing argument: address (str)' end @seed = seed super(opts) end proxy_params wallet: :seed proxy_method :account_create, optional: %i[work] proxy_method :accounts_create, required: %i[count], optional: %i[work] proxy_method :account_list proxy_method :account_remove, required: %i[account] proxy_method :password_change, required: %i[password] proxy_method :password_enter, required: %i[password] proxy_method :password_valid proxy_method :payment_begin proxy_method :payment_init proxy_method :payment_end, required: %i[account] proxy_method :receive, required: %i[account block], optional: %i[work] proxy_method :send, required: %i[wallet source destination amount] proxy_method :search_pending proxy_method :wallet_add, required: %i[key], optional: %i[work] proxy_method :wallet_balance_total proxy_method :wallet_balances, optional: %i[threshold] proxy_method :wallet_change_seed, required: %i[seed] proxy_method :wallet_contains, required: %i[account] proxy_method :wallet_destroy proxy_method :wallet_export proxy_method :wallet_frontiers proxy_method :wallet_locked proxy_method :wallet_pending, required: %i[count], optional: %i[threshold source] proxy_method :wallet_representative proxy_method :wallet_representative_set, required: %i[representative] proxy_method :wallet_republish, required: %i[count] proxy_method :wallet_work_get 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/wallet.rb |
nano_rpc-0.2.0 | lib/nano/proxies/wallet.rb |