trace_callMany
Performs multiple call traces on top of the same block. Allows tracing of dependent transactions.
trace_callMany performs multiple call traces on top of the same block. i.e. transactionnwill be executed on top of a pending block with all n-1 transactions applied (traced) first. Allows tracing of dependent transactions.

Parameters

  1. 1.
    Array - List of trace calls with the type of trace, one or more of: "vmTrace", "trace", "stateDiff".
  2. 2.
    Quantity or Tag - (optional) integer block number, or the string 'latest', 'earliest' or 'pending', see the default block parameter.
1
params: [
2
[
3
[
4
{
5
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
6
"to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
7
"value": "0x186a0"
8
},
9
["trace"]
10
],
11
[
12
{
13
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
14
"to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
15
"value": "0x186a0"
16
},
17
["trace"]
18
]
19
],
20
"latest"
21
]
Copied!

Returns

  • Array - Array of the given transactions’ traces

Example

Request

Curl
Postman
1
curl https://eth-mainnet.alchemyapi.io/v2/your-api-key \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{"method":"trace_callMany","params":[[[{"from":"0x407d73d8a49eeb85d32cf465507dd71d507100c1","to":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","value":"0x186a0"},["trace"]],[{"from":"0x407d73d8a49eeb85d32cf465507dd71d507100c1","to":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","value":"0x186a0"},["trace"]]],"latest"],"id":1,"jsonrpc":"2.0"}'
Copied!
1
URL: https://eth-mainnet.alchemyapi.io/v2/your-api-key
2
RequestType: POST
3
Body:
4
{
5
"jsonrpc":"2.0",
6
"method":"trace_callMany",
7
"params":[[[{"from":"0x407d73d8a49eeb85d32cf465507dd71d507100c1","to":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","value":"0x186a0"},["trace"]],[{"from":"0x407d73d8a49eeb85d32cf465507dd71d507100c1","to":"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","value":"0x186a0"},["trace"]]],"latest"],
8
"id":1
9
}
Copied!

Response

1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"result": [
5
{
6
"output": "0x",
7
"stateDiff": null,
8
"trace": [{
9
"action": {
10
"callType": "call",
11
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
12
"gas": "0x1dcd12f8",
13
"input": "0x",
14
"to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
15
"value": "0x186a0"
16
},
17
"result": {
18
"gasUsed": "0x0",
19
"output": "0x"
20
},
21
"subtraces": 0,
22
"traceAddress": [],
23
"type": "call"
24
}],
25
"vmTrace": null
26
},
27
{
28
"output": "0x",
29
"stateDiff": null,
30
"trace": [{
31
"action": {
32
"callType": "call",
33
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
34
"gas": "0x1dcd12f8",
35
"input": "0x",
36
"to": "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b",
37
"value": "0x186a0"
38
},
39
"result": {
40
"gasUsed": "0x0",
41
"output": "0x"
42
},
43
"subtraces": 0,
44
"traceAddress": [],
45
"type": "call"
46
}],
47
"vmTrace": null
48
}
49
]
50
}
Copied!