proposes alt definition blockNumber #1696
Draft
+31
−32
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.
Description
This is an ad-hoc pass -- setting up expanded descriptions for Linea == using Besu as sot. If I find something in sot, raising it as proposal here.
curl -X POST https://linea-mainnet.infura.io/v3/<"key">
-H "Content-Type: application/json"
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": [
"5237789",
false
],
"id": 1
}'
curl -X POST https://linea-mainnet.infura.io/v3<"key">
-H "Content-Type: application/json"
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockReceipts",
"params": [{
"blockHash": "0xd459570b5d2994a81ec1875b058f665b7f9c006172a8bd2860de87aee9569ac8"
}],
"id": 1
}'
Issue(s) fixed
A
Passing the percentile array as optional fails
curl -X POST https://linea-mainnet.infura.io/v3/<"key">
-H "Content-Type: application/json"
-d '{
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [
"0x5",
"latest",
],
"id": 1
}'
While empty array passes
-H "Content-Type: application/json"
-d '{
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [
"9964064",
"latest",
[]
],
"id": 1
}'
B
The result object schema says oldestBlock is integer, but my result provides Hexademical of the integer, i.e a string
result:
name: eth_feeHistoryLineaExampleResponse
value:
type: object
schema:
properties:
oldestBlock: '0x10b52f'
tested and response is not integer
curl -X POST
https://linea-mainnet.infura.io/v3/<"key">
-H "Content-Type: application/json"
-d '{
"jsonrpc":"2.0",
"method":"eth_getTransactionCount",
"params": [
"0x188e0B45cedd8f5e425e73c8aa7953b92115ec24",
"0x4fb66d"
],
"id":1
}'
{"jsonrpc":"2.0","id":1,"result":"0x52"}%
Fixes #1695
Preview