Skip to content

Commit 594fc53

Browse files
committed
Fix eth_call typo, remove optional marker
1 parent a37bfae commit 594fc53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/_rpc/eth_call.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Executes a new message call immediately, without creating a transaction on the b
88

99
The method takes 3 parameters: an unsigned transaction object to execute in read-only mode; the block number to execute the call against; and an optional state override-set to allow executing the call against a modified chain state.
1010

11-
##### 1. `Object` - Transaction call object
11+
#### 1. `Object` - Transaction call object
1212

1313
The *transaction call object* is mandatory and contains all the necessary parameters to execute a read-only EVM contract method.
1414

@@ -32,11 +32,11 @@ Example:
3232
}
3333
```
3434

35-
##### 2. `Quantity | Tag` - Block number or the string `latest` or `pending`
35+
#### 2. `Quantity | Tag` - Block number or the string `latest` or `pending`
3636

3737
The *block number* is mandatory and defines the context (state) against which the specified transaction should be executed. It is not possible to execute calls against reorged blocks; or blocks older than 128 (unless the node is an archive node).
3838

39-
##### 3. `Object` - Optional - State override set
39+
#### 3. `Object` - State override set
4040

4141
The *state override set* is an optional address-to-state mapping, where each entry specifies some state to be ephemerally overridden prior to executing the call. Each address maps to an object containing:
4242

@@ -126,7 +126,7 @@ contract CheckpointOracle {
126126
}
127127
```
128128

129-
With a synced Rinkeby node with RPC exposed on localhost (`geth --rinkeby --rpc`) we can make a call against the live [Checkpoint Oracle](https://rinkeby.etherscan.io/address/0xebe8efa441b9302a0d7eaecc277c09d20d684540), but override its byte code with our own version that has an accessor for the voting theshold field:
129+
With a synced Rinkeby node with RPC exposed on localhost (`geth --rinkeby --rpc`) we can make a call against the live [Checkpoint Oracle](https://rinkeby.etherscan.io/address/0xebe8efa441b9302a0d7eaecc277c09d20d684540), but override its byte code with our own version that has an accessor for the voting threshold field:
130130

131131
```
132132
$ curl --data '{"method":"eth_call","params":[{"to":"0xebe8efa441b9302a0d7eaecc277c09d20d684540","data":"0x0be5b6ba"}, "latest", {"0xebe8efa441b9302a0d7eaecc277c09d20d684540": {"code":"0x6080604052348015600f57600080fd5b506004361060285760003560e01c80630be5b6ba14602d575b600080fd5b60336045565b60408051918252519081900360200190f35b6007549056fea265627a7a723058206f26bd0433456354d8d1228d8fe524678a8aeeb0594851395bdbd35efc2a65f164736f6c634300050a0032"}}],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

0 commit comments

Comments
 (0)