From 9badd360bb22491589b6b8c513c82f5fa29c1bad Mon Sep 17 00:00:00 2001 From: Joan E <153745173+joaniefromtheblock@users.noreply.github.com> Date: Mon, 9 Sep 2024 07:36:26 +0000 Subject: [PATCH 1/2] remove extra latest --- .../_partials/trace-methods/_trace_callmany-request.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/reference/_partials/trace-methods/_trace_callmany-request.mdx b/services/reference/_partials/trace-methods/_trace_callmany-request.mdx index 28e393cf1c6..d91786e9046 100644 --- a/services/reference/_partials/trace-methods/_trace_callmany-request.mdx +++ b/services/reference/_partials/trace-methods/_trace_callmany-request.mdx @@ -8,14 +8,14 @@ import TabItem from "@theme/TabItem" curl https://mainnet.infura.io/v3/ \ -X POST \ -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "trace_callMany", "params": [[[{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1", "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value": "0x186a0"}, ["trace"]], [{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1", "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value": "0x186a0"}, ["trace"]]], "latest"], "latest"], "id": 1} + -d '{"jsonrpc": "2.0", "method": "trace_callMany", "params": [[[{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1", "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value": "0x186a0"}, ["trace"]], [{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1", "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value": "0x186a0"}, ["trace"]]], "latest"], "id": 1} ``` ```bash -wscat -c wss://mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "trace_callMany", "params": [[[{"from":"0x407d73d8a49eeb85d32cf465507dd71d507100c1","to":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value": "0x186a0"}, ["trace"]], [{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1", "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value": "0x186a0"}, ["trace"]]], "latest"], "latest"], "id": 1}' +wscat -c wss://mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "trace_callMany", "params": [[[{"from":"0x407d73d8a49eeb85d32cf465507dd71d507100c1","to":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value": "0x186a0"}, ["trace"]], [{"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1", "to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value": "0x186a0"}, ["trace"]]], "latest"], "id": 1}' ``` From 87abc4e2c4f46aad9292ed02c7ee918a272c37f0 Mon Sep 17 00:00:00 2001 From: Joan E <153745173+joaniefromtheblock@users.noreply.github.com> Date: Tue, 17 Sep 2024 15:46:51 +0000 Subject: [PATCH 2/2] update the params --- .../_partials/trace-methods/_trace_callmany-parameters.mdx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/reference/_partials/trace-methods/_trace_callmany-parameters.mdx b/services/reference/_partials/trace-methods/_trace_callmany-parameters.mdx index 8c9f4fc4d6a..2d65dddecbf 100644 --- a/services/reference/_partials/trace-methods/_trace_callmany-parameters.mdx +++ b/services/reference/_partials/trace-methods/_trace_callmany-parameters.mdx @@ -1,2 +1,5 @@ -- `block parameter`: _[Required]_ The hexadecimal block number, or the string `latest`, `earliest`, or `pending`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- `options`: A list of tracing options. Tracing options are [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff). Specify both options or none. +- `trace call parameters`: _[Required]_ Array of trace call parameters. + Each trace call parameter itself is an array containing the following: + - `transaction call object`: _[Required]_ Transaction call object containing the same data as in the [`trace_call`](../../ethereum/json-rpc-methods/trace-methods/trace_call.mdx#parameters) parameter. + - `options`:_[Optional]_ An array of tracing options. Tracing options are [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff). Specify both options or none. +- `block parameter`: _[Required]_ The hexadecimal block number, or the string `latest`, `earliest`, or `pending`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). The block parameter is applied uniformly to all trace calls in the `trace call parameters` array.