Closed ermvrs closed 6 months ago
Hey @ermvrs , I'll take this up !!
Assigned
Hello @ermvrs there's already a method implemented for the same functionality (eth_blockNumber). I guess this can be closed.
hi @ermvrs Is this issue still relevant?
@Akashneelesh as I know you're too busy, i took this issue back from you
Can you assign this to me? @ermvrs
assigned
@ermvrs I started working on this already and I noticed something:
starknet_getBlockWithTxn
returns:
starknet_getBlockWithTxHashes
returns:
and those are the two methods available on Starknet to return block data. Comparing the response from the two rpc endpoints above, none of them seems to have enough data to return the expected object:
Please how do you think I go about this? Or maybe there are other starknet RPC methods I am not aware of?
Please fill outputs with the values that exist on the starknet response and also if you can derive or calculate the value that fits into the response. Otherwise, if there is no chance to provide, then simply return a mock value that won't get the problem on ETH integration. Return default Ethereum values
Description
https://github.com/keep-starknet-strange/rosettanet/blob/main/rpc-call-examples/eth_getBlockByNumber.hurl
If there is a way to get block data from the block number in starknet. Get block data and format output. Otherwise, return mock values.
Requirements
Completion Time
The issue is assumed to be completed in 5 days. If you need more time, please also specify that.