You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/content/developers/docs/apis/json-rpc/index.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -561,7 +561,7 @@ Returns the balance of the account of given address.
561
561
**Parameters**
562
562
563
563
1.`DATA`, 20 Bytes - address to check for balance.
564
-
2.`QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`or `"pending"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
564
+
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)
@@ -592,7 +592,7 @@ Returns the value from a storage position at a given address.
592
592
593
593
1.`DATA`, 20 Bytes - address of the storage.
594
594
2.`QUANTITY` - integer of the position in the storage.
595
-
3.`QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"` or `"pending"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
595
+
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)
596
596
597
597
**Returns**
598
598
@@ -659,7 +659,7 @@ Returns the number of transactions _sent_ from an address.
659
659
**Parameters**
660
660
661
661
1.`DATA`, 20 Bytes - address.
662
-
2.`QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`or `"pending"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
662
+
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)
663
663
664
664
```js
665
665
params: [
@@ -720,7 +720,7 @@ Returns the number of transactions in a block matching the given block number.
720
720
721
721
**Parameters**
722
722
723
-
1.`QUANTITY|TAG` - integer of a block number, or the string `"earliest"`, `"latest"`or `"pending"`, as in the [default block parameter](/developers/docs/apis/json-rpc/#default-block).
723
+
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).
724
724
725
725
```js
726
726
params: [
@@ -780,7 +780,7 @@ Returns the number of uncles in a block from a block matching the given block nu
780
780
781
781
**Parameters**
782
782
783
-
1.`QUANTITY|TAG` - integer of a block number, or the string "latest", "earliest"or "pending", see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
783
+
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)
784
784
785
785
```js
786
786
params: [
@@ -812,7 +812,7 @@ Returns code at a given address.
812
812
**Parameters**
813
813
814
814
1.`DATA`, 20 Bytes - address
815
-
2.`QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`or `"pending"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
815
+
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)
816
816
817
817
```js
818
818
params: [
@@ -999,7 +999,7 @@ Executes a new message call immediately without creating a transaction on the bl
999
999
-`value`: `QUANTITY` - (optional) Integer of the value sent with this transaction
1000
1000
-`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).
1001
1001
1002
-
2.`QUANTITY|TAG` - integer block number, or the string `"latest"`, `"earliest"`or `"pending"`, see the [default block parameter](/developers/docs/apis/json-rpc/#default-block)
1002
+
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)
1003
1003
1004
1004
**Returns**
1005
1005
@@ -1126,7 +1126,7 @@ Returns information about a block by block number.
1126
1126
1127
1127
**Parameters**
1128
1128
1129
-
1. `QUANTITY|TAG` - integer of a block number, or the string `"earliest"`, `"latest"`or `"pending"`, as in the [default block parameter](/developers/docs/apis/json-rpc/#default-block).
1129
+
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).
1130
1130
2. `Boolean` - If `true` it returns the full transaction objects, if `false` only the hashes of the transactions.
1131
1131
1132
1132
```js
@@ -1241,7 +1241,7 @@ Returns information about a transaction by block number and transaction index po
1241
1241
1242
1242
**Parameters**
1243
1243
1244
-
1. `QUANTITY|TAG` - a block number, or the string `"earliest"`, `"latest"`or `"pending"`, as in the [default block parameter](/developers/docs/apis/json-rpc/#default-block).
1244
+
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).
1245
1245
2. `QUANTITY` - the transaction index position.
1246
1246
1247
1247
```js
@@ -1367,7 +1367,7 @@ Returns information about a uncle of a block by number and uncle index position.
1367
1367
1368
1368
**Parameters**
1369
1369
1370
-
1. `QUANTITY|TAG` - a block number, or the string `"earliest"`, `"latest"` or `"pending"`, as in the [default block parameter](/developers/docs/apis/json-rpc/#default-block).
1370
+
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).
1371
1371
2. `QUANTITY` - the uncle's index position.
1372
1372
1373
1373
```js
@@ -1408,8 +1408,8 @@ Topics are order-dependent. A transaction with a log with topics [A, B] will be
1408
1408
1409
1409
1. `Object` - The filter options:
1410
1410
1411
-
- `fromBlock`: `QUANTITY|TAG` - (optional, default: `"latest"`) Integer block number, or `"latest"` for the last mined block or `"pending"`, `"earliest"` for not yet mined transactions.
1412
-
- `toBlock`: `QUANTITY|TAG` - (optional, default: `"latest"`) Integer block number, or `"latest"` for the last mined block or `"pending"`, `"earliest"` for not yet mined transactions.
1411
+
- `fromBlock`: `QUANTITY|TAG` - (optional, default: `"latest"`) Integer block number, or `"latest"` for the last mined block, `"safe"` for the latest safe block, `"finalized"` for the latest finalized block, or `"pending"`, `"earliest"` for not yet mined transactions.
1412
+
- `toBlock`: `QUANTITY|TAG` - (optional, default: `"latest"`) Integer block number, or `"latest"` for the last mined block, `"safe"` for the latest safe block, `"finalized"` for the latest finalized block, or `"pending"`, `"earliest"` for not yet mined transactions.
1413
1413
- `address`: `DATA|Array`, 20 Bytes - (optional) Contract address or a list of addresses from which logs should originate.
1414
1414
- `topics`: `Array of DATA`, - (optional) Array of 32 Bytes `DATA` topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options.
1415
1415
@@ -1613,8 +1613,8 @@ Returns an array of all logs matching a given filter object.
1613
1613
1614
1614
1. `Object` - The filter options:
1615
1615
1616
-
- `fromBlock`: `QUANTITY|TAG` - (optional, default: `"latest"`) Integer block number, or `"latest"` for the last mined block or `"pending"`, `"earliest"` for not yet mined transactions.
1617
-
- `toBlock`: `QUANTITY|TAG` - (optional, default: `"latest"`) Integer block number, or `"latest"` for the last mined block or `"pending"`, `"earliest"` for not yet mined transactions.
1616
+
- `fromBlock`: `QUANTITY|TAG` - (optional, default: `"latest"`) Integer block number, or `"latest"` for the last mined block, `"safe"` for the latest safe block, `"finalized"` for the latest finalized block, or `"pending"`, `"earliest"` for not yet mined transactions.
1617
+
- `toBlock`: `QUANTITY|TAG` - (optional, default: `"latest"`) Integer block number, or `"latest"` for the last mined block, `"safe"` for the latest safe block, `"finalized"` for the latest finalized block, or `"pending"`, `"earliest"` for not yet mined transactions.
1618
1618
- `address`: `DATA|Array`, 20 Bytes - (optional) Contract address or a list of addresses from which logs should originate.
1619
1619
- `topics`: `Array of DATA`, - (optional) Array of 32 Bytes `DATA` topics. Topics are order-dependent. Each topic can also be an array of DATA with "or" options.
1620
1620
- `blockhash`: `DATA`, 32 Bytes - (optional, **future**) With the addition of EIP-234, `blockHash` will be a new filter option which restricts the logs returned to the single block with the 32-byte hash `blockHash`. Using `blockHash` is equivalent to `fromBlock` = `toBlock` = the block number with hash `blockHash`. If `blockHash` is present in the filter criteria, then neither `fromBlock` nor `toBlock` are allowed.
0 commit comments