mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
docs: add field description for the from/to address
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
cc07116c4a
commit
87e95afbb2
1 changed files with 20 additions and 13 deletions
|
|
@ -124,18 +124,25 @@ Return:
|
||||||
The `callTracer` tracks all the call frames executed during a transaction, including depth 0. The result will be a nested list of call frames, resembling how EVM works. They form a tree with the top-level call at root and sub-calls as children of the higher levels. Each call frame has the following fields:
|
The `callTracer` tracks all the call frames executed during a transaction, including depth 0. The result will be a nested list of call frames, resembling how EVM works. They form a tree with the top-level call at root and sub-calls as children of the higher levels. Each call frame has the following fields:
|
||||||
|
|
||||||
| field | type | description |
|
| field | type | description |
|
||||||
| ------------ | ----------- | ------------------------------------ |
|
| ------------ | ----------- | -------------------------------------------------------------------------------- |
|
||||||
| type | string | CALL or CREATE |
|
| type | string | the type of call (CALL, STATICCALL, DELEGATECALL, CREATE, CREATE2, SELFDESTRUCT) |
|
||||||
| from | string | address |
|
| from | string | the address initiating the call |
|
||||||
| to | string | address |
|
| to | string | the target address receiving the call |
|
||||||
| value | string | hex-encoded amount of value transfer |
|
| value | string | hex-encoded amount of ETH transfer |
|
||||||
| gas | string | hex-encoded gas provided for call |
|
| gas | string | hex-encoded gas provided for call |
|
||||||
| gasUsed | string | hex-encoded gas used during call |
|
| gasUsed | string | hex-encoded gas used during call |
|
||||||
| input | string | call data |
|
| input | string | call data |
|
||||||
| output | string | return data |
|
| output | string | return data |
|
||||||
| error | string | error, if any |
|
| error | string | error informaction if the call failed |
|
||||||
| revertReason | string | Solidity revert reason, if any |
|
| revertReason | string | Solidity revert reason, if any |
|
||||||
| calls | []callframe | list of sub-calls |
|
| calls | []callframe | list of nested sub-calls |
|
||||||
|
|
||||||
|
Hints the `to` address, which varies by call type:
|
||||||
|
|
||||||
|
- `CALL/STATICCALL`: The contract or receiving address being called
|
||||||
|
- `DELEGATECALL`: The contract whose code is being executed
|
||||||
|
- `CREATE/CREATE2`: The address of the newly deployed contract
|
||||||
|
- `SELFDESTRUCT/SUICIDE`: The address of the refund recipient
|
||||||
|
|
||||||
Example Call:
|
Example Call:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue