module NanoRpc::WalletMethods

Public Instance Methods

proxy_methods() click to toggle source
# File lib/nano_rpc/methods/wallet_methods.rb, line 7
def proxy_methods # rubocop:disable Metrics/MethodLength
  {
    account_create: {
      optional: %i[work]
    },
    account_list: {},
    account_remove: {
      required: %i[account]
    },
    accounts_create: {
      required: %i[count],
      optional: %i[work]
    },
    password_change: {
      required: %i[password]
    },
    password_enter: {
      required: %i[password]
    },
    password_valid: {},
    payment_begin: {},
    payment_end: {
      required: %i[account]
    },
    payment_init: {},
    receive: {
      required: %i[account block],
      optional: %i[work]
    },
    search_pending: {},
    send: {
      required: %i[wallet source destination amount],
      optional: %i[id work]
    },
    wallet_add: {
      required: %i[key],
      optional: %i[work]
    },
    wallet_add_watch: {
      required: %i[accounts]
    },
    wallet_balances: {
      optional: %i[threshold]
    },
    wallet_change_seed: {
      required: %i[seed],
      optional: %i[count]
    },
    wallet_contains: {
      required: %i[account]
    },
    wallet_destroy: {},
    wallet_export: {},
    wallet_frontiers: {},
    wallet_history: {
      optional: %i[modified_since]
    },
    wallet_info: {},
    wallet_ledger: {},
    wallet_locked: {},
    wallet_pending: {
      required: %i[count],
      optional: %i[threshold source include_active]
    },
    wallet_representative: {},
    wallet_representative_set: {
      required: %i[representative],
      optional: %i[update_existing_accounts]
    },
    wallet_republish: {
      required: %i[count]
    },
    wallet_work_get: {},
    work_get: {
      required: %i[account]
    },
    work_set: {}
  }
end
proxy_params() click to toggle source
# File lib/nano_rpc/methods/wallet_methods.rb, line 3
def proxy_params
  { wallet: :id }
end