Skip to content

Commit b7d28d8

Browse files
authored
Merge pull request #15551 from Thegaram/feat-update-wording-about-default-block-parameter
feat: update ambiguous wording about RPC block parameter
2 parents ac73678 + 7b6e603 commit b7d28d8

File tree

1 file changed

+14
-14
lines changed
  • public/content/developers/docs/apis/json-rpc

1 file changed

+14
-14
lines changed

public/content/developers/docs/apis/json-rpc/index.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ Here are some examples:
5858
- WRONG: 0xf0f0f (must be even number of digits)
5959
- WRONG: 004200 (must be prefixed 0x)
6060

61-
### The default block parameter {#default-block}
61+
### The block parameter {#block-parameter}
6262

63-
The following methods have an extra default block parameter:
63+
The following methods have a block parameter:
6464

6565
- [eth_getBalance](#eth_getbalance)
6666
- [eth_getCode](#eth_getcode)
6767
- [eth_getTransactionCount](#eth_gettransactioncount)
6868
- [eth_getStorageAt](#eth_getstorageat)
6969
- [eth_call](#eth_call)
7070

71-
When requests are made that act on the state of Ethereum, the last default block parameter determines the height of the block.
71+
When requests are made that query the state of Ethereum, the provided block parameter determines the height of the block.
7272

73-
The following options are possible for the defaultBlock parameter:
73+
The following options are possible for the block parameter:
7474

7575
- `HEX String` - an integer block number
7676
- `String "earliest"` for the earliest/genesis block
@@ -567,7 +567,7 @@ Returns the balance of the account of given address.
567567
**Parameters**
568568

569569
1. `DATA`, 20 Bytes - address to check for balance.
570-
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"`, or `"finalized"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
570+
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"`, or `"finalized"`, see the [block parameter](/developers/docs/apis/json-rpc/#block-parameter)
571571

572572
```js
573573
params: ["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"]
@@ -598,7 +598,7 @@ Returns the value from a storage position at a given address.
598598

599599
1. `DATA`, 20 Bytes - address of the storage.
600600
2. `QUANTITY` - integer of the position in the storage.
601-
3. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"`, `"finalized"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
601+
3. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"`, `"finalized"`, see the [block parameter](/developers/docs/apis/json-rpc/#block-parameter)
602602

603603
**Returns**
604604

@@ -665,7 +665,7 @@ Returns the number of transactions _sent_ from an address.
665665
**Parameters**
666666

667667
1. `DATA`, 20 Bytes - address.
668-
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"` or `"finalized"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
668+
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"` or `"finalized"`, see the [block parameter](/developers/docs/apis/json-rpc/#block-parameter)
669669

670670
```js
671671
params: [
@@ -726,7 +726,7 @@ Returns the number of transactions in a block matching the given block number.
726726

727727
**Parameters**
728728

729-
1. `QUANTITY|TAG` - integer of a block number, or the string `"earliest"`, `"latest"`, `"pending"`, `"safe"` or `"finalized"`, as in the [default block parameter](/developers/docs/apis/json-rpc/#default-block).
729+
1. `QUANTITY|TAG` - integer of a block number, or the string `"earliest"`, `"latest"`, `"pending"`, `"safe"` or `"finalized"`, as in the [block parameter](/developers/docs/apis/json-rpc/#block-parameter).
730730

731731
```js
732732
params: [
@@ -786,7 +786,7 @@ Returns the number of uncles in a block from a block matching the given block nu
786786

787787
**Parameters**
788788

789-
1. `QUANTITY|TAG` - integer of a block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"` or `"finalized"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
789+
1. `QUANTITY|TAG` - integer of a block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"` or `"finalized"`, see the [block parameter](/developers/docs/apis/json-rpc/#block-parameter)
790790

791791
```js
792792
params: [
@@ -818,7 +818,7 @@ Returns code at a given address.
818818
**Parameters**
819819

820820
1. `DATA`, 20 Bytes - address
821-
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"` or `"finalized"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
821+
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"` or `"finalized"`, see the [block parameter](/developers/docs/apis/json-rpc/#block-parameter)
822822

823823
```js
824824
params: [
@@ -1005,7 +1005,7 @@ Executes a new message call immediately without creating a transaction on the bl
10051005
- `value`: `QUANTITY` - (optional) Integer of the value sent with this transaction
10061006
- `input`: `DATA` - (optional) Hash of the method signature and encoded parameters. For details see [Ethereum Contract ABI in the Solidity documentation](https://docs.soliditylang.org/en/latest/abi-spec.html).
10071007

1008-
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"` or `"finalized"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
1008+
2. `QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`, `"pending"`, `"safe"` or `"finalized"`, see the [block parameter](/developers/docs/apis/json-rpc/#block-parameter)
10091009

10101010
**Returns**
10111011

@@ -1132,7 +1132,7 @@ Returns information about a block by block number.
11321132
11331133
**Parameters**
11341134
1135-
1. `QUANTITY|TAG` - integer of a block number, or the string `"earliest"`, `"latest"`, `"pending"`, `"safe"` or `"finalized"`, as in the [default block parameter](/developers/docs/apis/json-rpc/#default-block).
1135+
1. `QUANTITY|TAG` - integer of a block number, or the string `"earliest"`, `"latest"`, `"pending"`, `"safe"` or `"finalized"`, as in the [block parameter](/developers/docs/apis/json-rpc/#block-parameter).
11361136
2. `Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.
11371137
11381138
```js
@@ -1247,7 +1247,7 @@ Returns information about a transaction by block number and transaction index po
12471247
12481248
**Parameters**
12491249
1250-
1. `QUANTITY|TAG` - a block number, or the string `"earliest"`, `"latest"`, `"pending"`, `"safe"` or `"finalized"`, as in the [default block parameter](/developers/docs/apis/json-rpc/#default-block).
1250+
1. `QUANTITY|TAG` - a block number, or the string `"earliest"`, `"latest"`, `"pending"`, `"safe"` or `"finalized"`, as in the [block parameter](/developers/docs/apis/json-rpc/#block-parameter).
12511251
2. `QUANTITY` - the transaction index position.
12521252
12531253
```js
@@ -1373,7 +1373,7 @@ Returns information about a uncle of a block by number and uncle index position.
13731373
13741374
**Parameters**
13751375
1376-
1. `QUANTITY|TAG` - a block number, or the string `"earliest"`, `"latest"`, `"pending"`, `"safe"`, `"finalized"`, as in the [default block parameter](/developers/docs/apis/json-rpc/#default-block).
1376+
1. `QUANTITY|TAG` - a block number, or the string `"earliest"`, `"latest"`, `"pending"`, `"safe"`, `"finalized"`, as in the [block parameter](/developers/docs/apis/json-rpc/#block-parameter).
13771377
2. `QUANTITY` - the uncle's index position.
13781378
13791379
```js

0 commit comments

Comments
 (0)