Why: * For API users to get a list of transactions in which the given address is the 'to' in the transaction. Example usage: ``` /api?module=account&action&txlist&address={someAddress}&filterby=to ``` * Issue link: https://github.com/poanetwork/blockscout/issues/138 This change addresses the need by: * Editing `API.RPC.AddressController`'s `txlist/2` action to support a `filterby` flag in which the only allowed value for now is `to`. This is an optional parameter. When given this filters the returned transactions to only those in which the given address matches the `to` field. When not given, the address provided could match the to, from, or contract address for the transaction. * Editing `Explorer.Etherscan`'s `list_transactions/3` to support the new `filterby` flag mentioned above. * Editing API docs data in `BlockScoutWeb.Etherscan` to include information about the new `filterby` flag added in this commit.pull/629/head
parent
8bdf93386d
commit
24e5da232f
Loading…
Reference in new issue