Skip to content

Commit f8b6a5a

Browse files
committed
Add txlimit param to address_full_txs call
Adds the optional txlimit parameter to the Blockcypher::Api#address_full_txs method so that the method can return more than the default 20 inputs and outputs.
1 parent 69c9b8b commit f8b6a5a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/blockcypher/api.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,14 @@ def address_final_balance(address, omit_wallet_addresses: false)
203203
end
204204

205205
def address_full_txs(address, limit: 10, before: nil, after: nil,
206-
include_hex: false, omit_wallet_addresses: false, include_confidence: false)
206+
include_hex: false, omit_wallet_addresses: false,
207+
include_confidence: false, txlimit: 20)
207208
query = {
208209
limit: limit,
209210
includeHex: include_hex,
210211
omitWalletAddresses: omit_wallet_addresses,
211-
includeConfidence: include_confidence
212+
includeConfidence: include_confidence,
213+
txlimit: txlimit
212214
}
213215
query[:before] = before if before
214216
query[:after] = after if after

0 commit comments

Comments
 (0)