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: docs/interacting-with-geth/rpc/ns-eth.md
+31-15Lines changed: 31 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Executes a new message call immediately, without creating a transaction on the b
15
15
16
16
**Parameters:**
17
17
18
-
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.
18
+
The method takes 4 parameters: an unsigned transaction object to execute in read-only mode; the block number to execute the call against; an optional state override-set to allow executing the call against a modified chain state; and an optional set of overrides for the block context.
19
19
20
20
1.`Object` - Transaction call object
21
21
@@ -43,21 +43,37 @@ The method takes 3 parameters: an unsigned transaction object to execute in read
43
43
- It can be used for smart contract analysis by extending the code deployed on chain with custom methods and invoking them. This avoids having to download and reconstruct the entire state in a sandbox to run custom code against.
44
44
- It can be used to debug smart contracts in an already deployed large suite of contracts by selectively overriding some code or state and seeing how execution changes. Specialized tooling will probably be necessary.
45
45
46
-
**Example:**
46
+
**Example:**
47
+
48
+
```json
49
+
{
50
+
"0xd9c9cd5f6779558b6e0ed4e6acf6b1947e7fa1f3": {
51
+
"balance": "0xde0b6b3a7640000"
52
+
},
53
+
"0xebe8efa441b9302a0d7eaecc277c09d20d684540": {
54
+
"code": "0x...",
55
+
"state": {
56
+
""
57
+
}
58
+
}
59
+
}
60
+
```
61
+
62
+
4.`Object` - Block override set
63
+
64
+
The fields of this optional object customize the block as part of which the call is simulated. The object contains the following fields:
0 commit comments