Skip to content

Conversation

@iuwqyir
Copy link
Contributor

@iuwqyir iuwqyir commented Feb 25, 2025

Implements a search endpoint

  • For a numeric value, tries to fetch a block
  • For a hash value (length 66 with 0x) tries to fetch a block, a transaction and logs by signature. Whichever returns data first will be returned
  • For a hash value (length 10) fetches transactions with that function selector
  • For addresses, uses RPC to check for code. If not configured, looks at latest transactions and determines if it's a contract or not.
    For EOAs returns last 20 initiated transactions
    For contracts returns last 20 received transactions

Copy link
Contributor Author

iuwqyir commented Feb 25, 2025

@iuwqyir iuwqyir requested a review from a team February 25, 2025 22:16
@iuwqyir iuwqyir marked this pull request as ready for review February 25, 2025 22:19
@iuwqyir iuwqyir force-pushed the 02-26-search_endpoint branch from 39bc89b to 1c2e19a Compare February 25, 2025 23:06
@iuwqyir iuwqyir force-pushed the 02-26-move_entity_serialization_into_common_package branch 2 times, most recently from e756382 to faf91e2 Compare February 26, 2025 11:39
@iuwqyir iuwqyir force-pushed the 02-26-search_endpoint branch 2 times, most recently from d81f8a1 to a4aeb08 Compare February 26, 2025 13:15
@iuwqyir iuwqyir force-pushed the 02-26-move_entity_serialization_into_common_package branch from faf91e2 to e85224e Compare February 26, 2025 13:15
@iuwqyir iuwqyir mentioned this pull request Feb 26, 2025
@iuwqyir iuwqyir force-pushed the 02-26-search_endpoint branch from a4aeb08 to 701c753 Compare February 26, 2025 13:57
Copy link
Contributor Author

iuwqyir commented Feb 27, 2025

Merge activity

  • Feb 27, 3:29 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 27, 3:31 AM EST: Graphite rebased this pull request as part of a merge.
  • Feb 27, 3:32 AM EST: A user merged this pull request with Graphite.

@iuwqyir iuwqyir changed the base branch from 02-26-move_entity_serialization_into_common_package to graphite-base/161 February 27, 2025 08:29
@iuwqyir iuwqyir changed the base branch from graphite-base/161 to main February 27, 2025 08:29
@iuwqyir iuwqyir force-pushed the 02-26-search_endpoint branch from 701c753 to acda5f8 Compare February 27, 2025 08:30
@iuwqyir iuwqyir merged commit 0b14f58 into main Feb 27, 2025
5 checks passed
@iuwqyir iuwqyir deleted the 02-26-search_endpoint branch February 27, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants