|
|
@ -50,13 +50,13 @@ defmodule Explorer.Chain do |
|
|
|
|
|
|
|
|
|
|
|
## Options |
|
|
|
## Options |
|
|
|
|
|
|
|
|
|
|
|
* `:direction` - if specified, will filter internal transactions by address type. If `:to` is specified, only internal |
|
|
|
* `:direction` - if specified, will filter internal transactions by address type. If `:to` is specified, only |
|
|
|
transactions where the "to" address matches will be returned. Likewise, if `:from` is specified, only internal |
|
|
|
internal transactions where the "to" address matches will be returned. Likewise, if `:from` is specified, only |
|
|
|
transactions where the "from" address matches will be returned. If :direction is omitted, internal transactions either |
|
|
|
internal transactions where the "from" address matches will be returned. If :direction is omitted, internal |
|
|
|
to or from the address will be returned. |
|
|
|
transactions either to or from the address will be returned. |
|
|
|
* `:necessity_by_association` - use to load `t:association/0` as `:required` or `:optional`. If an association is |
|
|
|
* `:necessity_by_association` - use to load `t:association/0` as `:required` or `:optional`. If an association is |
|
|
|
`:required`, and the `t:Explorer.Chain.InternalTransaction.t/0` has no associated record for that association, then |
|
|
|
`:required`, and the `t:Explorer.Chain.InternalTransaction.t/0` has no associated record for that association, |
|
|
|
the `t:Explorer.Chain.InternalTransaction.t/0` will not be included in the page `entries`. |
|
|
|
then the `t:Explorer.Chain.InternalTransaction.t/0` will not be included in the page `entries`. |
|
|
|
* `:pagination` - pagination params to pass to scrivener. |
|
|
|
* `:pagination` - pagination params to pass to scrivener. |
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
|
""" |
|
|
@ -723,8 +723,8 @@ defmodule Explorer.Chain do |
|
|
|
* `:insert_logs_timeout` - the timeout for inserting all logs. Defaults to `#{@insert_logs_timeout}` milliseconds. |
|
|
|
* `:insert_logs_timeout` - the timeout for inserting all logs. Defaults to `#{@insert_logs_timeout}` milliseconds. |
|
|
|
* `:insert_receipts_timeout` - the timeout for inserting all receipts. Defaults to `#{@insert_receipts_timeout}` |
|
|
|
* `:insert_receipts_timeout` - the timeout for inserting all receipts. Defaults to `#{@insert_receipts_timeout}` |
|
|
|
milliseconds. |
|
|
|
milliseconds. |
|
|
|
* `:insert_transactions_timeout` - the timeout for inserting all transactions found in the params lists across all types. |
|
|
|
* `:insert_transactions_timeout` - the timeout for inserting all transactions found in the params lists across all |
|
|
|
Defaults to `#{@insert_transactions_timeout}` milliseconds. |
|
|
|
types. Defaults to `#{@insert_transactions_timeout}` milliseconds. |
|
|
|
""" |
|
|
|
""" |
|
|
|
def import_blocks( |
|
|
|
def import_blocks( |
|
|
|
%{ |
|
|
|
%{ |
|
|
|