website: fix out-of-date tracing docs (#28406)
This update covers this PRs: - https://github.com/ethereum/go-ethereum/pull/26414 - https://github.com/ethereum/go-ethereum/pull/27183 - https://github.com/ethereum/go-ethereum/pull/26291 - https://github.com/ethereum/go-ethereum/pull/26048
This commit is contained in:
parent
3f59d0ce83
commit
367f98703d
|
@ -216,11 +216,10 @@ If the step function throws an exception or executes an illegal operation at any
|
||||||
- `gas` - Number, gas budget of the transaction
|
- `gas` - Number, gas budget of the transaction
|
||||||
- `gasUsed` - Number, amount of gas used in executing the transaction (excludes txdata costs)
|
- `gasUsed` - Number, amount of gas used in executing the transaction (excludes txdata costs)
|
||||||
- `gasPrice` - Number, gas price configured in the transaction being executed
|
- `gasPrice` - Number, gas price configured in the transaction being executed
|
||||||
- `intrinsicGas` - Number, intrinsic gas for the transaction being executed
|
|
||||||
- `value` - big.Int, amount to be transferred in wei
|
- `value` - big.Int, amount to be transferred in wei
|
||||||
- `block` - Number, block number
|
- `block` - Number, block number
|
||||||
- `output` - Buffer, value returned from EVM
|
- `output` - Buffer, value returned from EVM
|
||||||
- `time` - String, execution runtime
|
- `error` - String, non-empty if there was an EVM error
|
||||||
|
|
||||||
And these fields are only available for tracing mined transactions (i.e. not available when doing `debug_traceCall`):
|
And these fields are only available for tracing mined transactions (i.e. not available when doing `debug_traceCall`):
|
||||||
|
|
||||||
|
|
|
@ -494,7 +494,10 @@ References:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
> debug.traceBlock("0xblock_rlp")
|
> debug.traceBlock("0xblock_rlp")
|
||||||
|
[
|
||||||
{
|
{
|
||||||
|
txHash: "0xabba...",
|
||||||
|
result: {
|
||||||
gas: 85301,
|
gas: 85301,
|
||||||
returnValue: "",
|
returnValue: "",
|
||||||
structLogs: [{
|
structLogs: [{
|
||||||
|
@ -524,6 +527,15 @@ References:
|
||||||
f652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f: "00000000000000000000000002e816afc1b5c0f39852131959d946eb3b07b5ad"
|
f652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f: "00000000000000000000000002e816afc1b5c0f39852131959d946eb3b07b5ad"
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
txHash: "0xacca...",
|
||||||
|
result: {
|
||||||
|
/* snip */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
### debug_traceBlockByNumber
|
### debug_traceBlockByNumber
|
||||||
|
|
|
@ -15,7 +15,7 @@ Executes a new message call immediately, without creating a transaction on the b
|
||||||
|
|
||||||
**Parameters:**
|
**Parameters:**
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
1. `Object` - Transaction call object
|
1. `Object` - Transaction call object
|
||||||
|
|
||||||
|
@ -59,6 +59,22 @@ The method takes 3 parameters: an unsigned transaction object to execute in read
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
4. `Object` - Block override set
|
||||||
|
|
||||||
|
The fields of this optional object customize the block as part of which the call is simulated. The object contains the following fields:
|
||||||
|
|
||||||
|
| Field | Type | Bytes | Optional | Description |
|
||||||
|
|---------------|----------|-------|----------|----------------------------------------------------------|
|
||||||
|
| `number` | Quantity | <32 | Yes | Fake block number |
|
||||||
|
| `difficulty` | Quantity | <32 | Yes | Fake difficulty. Note post-merge difficulty should be 0. |
|
||||||
|
| `time` | Quantity | <8 | Yes | Fake block timestamp |
|
||||||
|
| `gasLimit` | Quantity | <8 | Yes | Block gas capacity |
|
||||||
|
| `coinbase` | String | 20 | Yes | Block fee recipient |
|
||||||
|
| `random` | Binary | 32 | Yes | Fake PrevRandao value |
|
||||||
|
| `baseFee` | Quantity | <32 | Yes | Block base fee (see EIP-1559) |
|
||||||
|
| `blobBaseFee` | Quantity | <32 | Yes | Block blob base fee (see EIP-4844) |
|
||||||
|
|
||||||
|
|
||||||
**Response:**
|
**Response:**
|
||||||
|
|
||||||
The method returns a single `Binary` consisting the return value of the executed contract call.
|
The method returns a single `Binary` consisting the return value of the executed contract call.
|
||||||
|
|
Loading…
Reference in New Issue