{"push_id":2834771604,"size":1,"distinct_size":1,"ref":"refs/heads/sa-api-add-filterby-flag-to-txlist","head":"a24871e98622b8d457ef3bf5c43dd55feace798d","before":"5de06e0376f918728f1d210bf5a49fee899e6302","commits":[{"sha":"a24871e98622b8d457ef3bf5c43dd55feace798d","author":{"name":"Sebastian Abondano","email":"8c226f5918aadb758474e28b5d486c9b79afaef8@gmail.com"},"message":"Add filterby flag to account#txlist\n\nWhy:\n\n* For API users to get a list of transactions in which the given address\nis the 'to' in the transaction.\n\n  Example usage:\n    ```\n    /api?module=account&action&txlist&address={someAddress}&filterby=to\n    ```\n\n* Issue link: https://github.com/poanetwork/blockscout/issues/138\n\nThis change addresses the need by:\n\n* Editing `API.RPC.AddressController`'s `txlist/2` action to support a\n`filterby` flag in which the only allowed value for now is `to`. This is\nan optional parameter. When given this filters the returned transactions\nto only those in which the given address matches the `to` field. When\nnot given, the address provided could match the to, from, or contract\naddress for the transaction.\n* Editing `Explorer.Etherscan`'s `list_transactions/3` to support the\nnew `filterby` flag mentioned above.\n* Editing API docs data in `BlockScoutWeb.Etherscan` to include\ninformation about the new `filterby` flag added in this commit.","distinct":true,"url":"https://api.github.com/repos/poanetwork/blockscout/commits/a24871e98622b8d457ef3bf5c43dd55feace798d"}]}
{"actor":{"display_login":"sabondano"}}