From 9d014b20c509084624d36434834ff55ebd5ae327 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Thu, 20 Jan 2022 17:09:54 -0300 Subject: [PATCH] Add more explanation to search methods --- docs/custom-jsonrpc.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/custom-jsonrpc.md b/docs/custom-jsonrpc.md index 54cefe1..01b622d 100644 --- a/docs/custom-jsonrpc.md +++ b/docs/custom-jsonrpc.md @@ -197,10 +197,12 @@ These are address history navigation methods. They are similar, the difference i They are paginated, you **MUST** inform the page size. Some addresses like exchange addresses or very popular DeFi contracts like Uniswap Router will return millions of results. +They return inbound (`to`), outbound (`from`) and "internal" transactions. By internal it means that if a transaction calls a contract and somewhere in the call stack it sends ETH to the address you are searching for or the address is a contract and it calls a method on it, the transaction is matched and returned in the search results. + Parameters: `address` - The ETH address to be searched. -`blockNumber` - It searches for occurrences of `address` starting from `blockNumber` (inclusive). A value of `0` means you want to search from the most recent block (`ots_searchTransactionsBefore`) or from the genesis (`ots_searchTransactionsAfter`). +`blockNumber` - It searches for occurrences of `address` before/after `blockNumber`. A value of `0` means you want to search from the most recent block (`ots_searchTransactionsBefore`) or from the genesis (`ots_searchTransactionsAfter`). `pageSize` - How many transactions it may return. See the detailed explanation about this parameter bellow. Returns: