Sha256: ce0c7b86c5f96fc714611dc739160ad8f35e11295f86f9750ab49b378b9c79ba

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true
module NanoRpc::AccountMethods
  def proxy_params
    { account: :address }
  end

  def proxy_methods # rubocop:disable Metrics/MethodLength
    {
      account_balance: {},
      account_block_count: {},

      account_create: {
        required: %i[wallet],
        optional: %i[work]
      },
      account_history: {
        required: %i[count]
      },
      account_info: {},
      account_key: {},
      account_move: {
        required: %i[wallet source accounts]
      },
      account_remove: {
        required: %i[wallet]
      },
      account_representative: {},
      account_representative_set: {
        required: %i[wallet representative]
      },
      account_weight: {},
      delegators: {},
      delegators_count: {},
      frontiers: {
        required: %i[count]
      },
      ledger: {
        required: %i[count],
        optional: %i[representative weight pending modified_since sorting]
      },
      payment_wait: {
        required: %i[amount timeout]
      },
      pending: {
        required: %i[count],
        optional: %i[threshold exists source]
      },
      receive: {
        required: %i[wallet block],
        optional: %i[work]
      },
      validate_account_number: {},
      work_get: {
        required: %i[wallet]
      },
      work_set: {}
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nano_rpc-0.19.0 lib/nano_rpc/methods/account_methods.rb
nano_rpc-0.18.0 lib/nano_rpc/methods/account_methods.rb