Sha256: 9e38d198d9109272c40df55abedcdee5a682ad1888ca0f27e7d6fcfe688cf1c8

Contents?: true

Size: 933 Bytes

Versions: 13

Compression:

Stored size: 933 Bytes

Contents

require 'spec_helper'

describe Etherscanio::Api do
  describe 'account_txlistinternal' do
    subject { Etherscanio::Api.new(apikey).account_txlistinternal(address, startblock, endblock, sort) }

    context 'no paging' do
      let(:apikey) { 'YourApiKeyToken' }
      let(:address) { '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' }
      let(:startblock) { 0 }
      let(:endblock) { 99_999_999 }
      let(:sort) { 'desc' }
      it { is_expected.to be_a(Object) }
    end

    context 'paging' do
      subject { Etherscanio::Api.new(apikey).account_txlistinternal(address, startblock, endblock, sort, page, offset) }
      let(:apikey) { 'YourApiKeyToken' }
      let(:address) { '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae' }
      let(:startblock) { 0 }
      let(:endblock) { 99_999_999 }
      let(:sort) { 'desc' }
      let(:page) { 1 }
      let(:offset) { 10 }
      it { is_expected.to be_a(Object) }
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
etherscan-0.1.4 spec/api/account/txlist_internal_spec.rb
etherscan-0.1.3 spec/api/account/txlist_internal_spec.rb
etherscan-0.1.2 spec/api/account/txlist_internal_spec.rb
etherscan-0.1.1 spec/api/account/txlist_internal_spec.rb
etherscan-0.1.0 spec/api/account/txlist_internal_spec.rb
etherscan-0.0.9 spec/api/account/txlist_internal_spec.rb
etherscan-0.0.8 spec/api/account/txlist_internal_spec.rb
etherscan-0.0.7 spec/api/account/txlist_internal_spec.rb
etherscan-0.0.6 spec/api/account/txlist_internal_spec.rb
etherscanio-0.0.5 spec/api/account/txlist_internal_spec.rb
etherscanio-0.0.4 spec/api/account/txlist_internal_spec.rb
etherscanio-0.0.3 spec/api/account/txlist_internal_spec.rb
etherscanio-0.0.1 spec/api/account/txlist_internal_spec.rb