Skip to content

Commit 88572df

Browse files
committed
createMethod confirmed with test, table hierachy improved to reflect response object
Signed-off-by: m4sterbunny <harrie.bickle-ext@consensys.net>
1 parent 96c1bda commit 88572df

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

services/reference/ethereum/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The [official Ethereum documentation](https://ethereum.org/en/) for more informa
2929
description: "Learn how to quickly connect and make calls to the Ethereum network."
3030
},
3131
{
32-
href: "./json-rpc-methods",
32+
href: "./json-rpc-methods/",
3333
title: "JSON-RPC APIs",
3434
description: "View the APIs available for communicating with the Ethereum network."
3535
},

services/reference/ethereum/json-rpc-methods/trace-methods/index.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,26 @@ smart contract transaction. Excludes precompiled contracts.
5858
| Key | Value |
5959
|-----------------------|-----------------------------------------------------------------------------------------------------------------|
6060
| `action` | Transaction details. |
61-
| `callType` | Whether the transaction is `call` or `create`. |
62-
| `from` | Address of the transaction sender. |
63-
| `gas` | Gas provided by sender. |
64-
| `input` | Transaction data. |
65-
| `to` | Target of the transaction. |
66-
| `value` | Value transferred in the transaction. |
61+
| &nbsp;&nbsp;- `creationMethod` | Opcode used during contract creation: `create` or `create2`. Returned for `create` operations. |
62+
| &nbsp;&nbsp;- `callType` | Whether the transaction is `call`, `staticcall`, `delegatecall`. Returned for `call` operations. |
63+
| &nbsp;&nbsp;- `from` | Address of the transaction sender. |
64+
| &nbsp;&nbsp;- `gas` | Gas provided by sender. |
65+
| &nbsp;&nbsp;- `input` | Transaction data. Returned for `call` operations. |
66+
| &nbsp;&nbsp;- `init` | Contract initialization code. Returned for `create` operations. |
67+
| &nbsp;&nbsp;- `to` | Target of the transaction. Returned for `call` operations. |
68+
| &nbsp;&nbsp;- `value` | Value transferred in the transaction. |
69+
| `blockHash` | Hash of the block containing this trace. |
70+
| `blockNumber` | Block number containing this trace. |
6771
| `result` | Transaction result. |
68-
| `gasUsed` | Gas used by the transaction. Includes any refunds of unused gas. |
69-
| `output` | Return value of the contract call. Contains only the actual value sent by a `RETURN` operation. If a `RETURN` was not executed, the output is empty bytes. |
70-
| `subTraces` | Traces of contract calls made by the transaction. |
72+
| &nbsp;&nbsp;- `address` | Address of the newly created contract. Returned for `create` operations. |
73+
| &nbsp;&nbsp;- `code` | Bytecode of the newly created contract. Returned for `create` operations. |
74+
| &nbsp;&nbsp;- `gasUsed` | Gas used by the transaction. Includes any refunds of unused gas. |
75+
| &nbsp;&nbsp;- `output` | Return value of the contract call. Contains only the actual value sent by a `RETURN` operation. If a `RETURN` was not executed, the output is empty bytes. Returned for `call` operations. |
76+
| `subtraces` | Number of sub-traces (nested contract calls) made by the transaction. |
7177
| `traceAddress` | Tree list address of where the call occurred, address of the parents, and order of the current sub call. |
72-
| `transactionHash` | Hash of the tansaction. |
73-
| `transactionPosition` | Transaction position. |
74-
| `type` | Whether the transaction is a `call` or `create` series operation. |
75-
| `creationMethod` | Opcode used during contract creation `create` or `create2`. |
76-
77-
<!-- Not yet tested to see position of creationMethod in response body -->
78+
| `transactionHash` | Hash of the transaction. |
79+
| `transactionPosition` | Transaction position within the block. |
80+
| `type` | Whether the transaction is a `call` or `create` operation. |
7881

7982
## `stateDiff`
8083

services/reference/linea/json-rpc-methods/trace-methods/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ smart contract transaction. Excludes precompiled contracts.
5858
| `result` | Transaction result. |
5959
| `gasUsed` | Gas used by the transaction. Includes any refunds of unused gas. |
6060
| `output` | Return value of the contract call. Contains only the actual value sent by a `RETURN` operation. If a `RETURN` was not executed, the output is empty bytes. |
61-
| `subTraces` | Traces of contract calls made by the transaction. |
61+
| `subtraces` | Traces of contract calls made by the transaction. |
6262
| `traceAddress` | Tree list address of where the call occurred, address of the parents, and order of the current sub call. |
6363
| `transactionHash` | Hash of the transaction. |
6464
| `transactionPosition`| Transaction position. |

0 commit comments

Comments
 (0)