add sei2_getBlock endpoints to include bank transfers #2064
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes and provide context
Add a new version of
sei2_getBlock...
endpoints that include bank transfers. Specifically anyusei
bank transfer will show up as a transaction in thetransactions
field of the_getBlock
responses, withfrom
being the sender,to
being the recipient, andinput
being the amount (serialized as bytes and in terms of wei)Testing performed to validate your change
unit test
![Screenshot 2025-01-31 at 2 11 05 PM](https://private-user-images.githubusercontent.com/6227889/408429093-eb28d085-c2aa-48e7-9681-4af6168d77a5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTQ3NDMsIm5iZiI6MTczOTY5NDQ0MywicGF0aCI6Ii82MjI3ODg5LzQwODQyOTA5My1lYjI4ZDA4NS1jMmFhLTQ4ZTctOTY4MS00YWY2MTY4ZDc3YTUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDgyNzIzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjIxYmIzNzg2YzY4NTVlMTRhNTMzMTYzZTQ5YTZmNmE1YzhkNzY4MzQ4ZTc5NGI1MjFkMjc4ZGY1ODRhMmNlMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.7tCF7UMzJZu8L0p_ffGEruP7fZYMnUIc8omI3J866_I)
localsei