|
| 1 | +--- |
| 2 | +"@turnkey/react-wallet-kit": minor |
| 3 | +--- |
| 4 | + |
| 5 | +- Synced with Mono v2026.7.3 |
| 6 | + |
| 7 | +- Added `EthSendTransactionV2()` `httpClient` function which uses `ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2`. This activity allows for multiple eth calls to be batched together via the new `calls` array. The existing `EthSendTransaction()` `httpClient` remains on the previous activity version. |
| 8 | + |
| 9 | +- `ethSendTransaction` helper function can now accept a `calls` array in the `transaction` parameter which will direct the call to use `ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2`. Passing the legacy `to`/`value`/`data` fields still works and continues to use V1. |
| 10 | + |
| 11 | + ```ts |
| 12 | + // V1 (still works, unchanged) |
| 13 | + await client.ethSendTransaction({ |
| 14 | + transaction: { from, caip2, to, value, data }, |
| 15 | + }); |
| 16 | + |
| 17 | + // V2 — batch one or more calls via `calls` |
| 18 | + await client.ethSendTransaction({ |
| 19 | + transaction: { |
| 20 | + from, |
| 21 | + caip2, |
| 22 | + calls: [{ to, value, data }], |
| 23 | + }, |
| 24 | + }); |
| 25 | + ``` |
| 26 | + |
| 27 | +- `handleSendTransaction` helper function can now accept a `calls` array in the `transaction` parameter which will direct the call to use `ACTIVITY_TYPE_ETH_SEND_TRANSACTION_V2`. Passing the legacy `to`/`value`/`data` fields still works and continues to use V1. |
| 28 | + |
| 29 | + ```ts |
| 30 | + // V1 (still works, unchanged) |
| 31 | + await handleSendTransaction({ |
| 32 | + transaction: { from, caip2, to, value, data }, |
| 33 | + }); |
| 34 | + |
| 35 | + // V2 — batch one or more calls via `calls` |
| 36 | + await handleSendTransaction({ |
| 37 | + transaction: { |
| 38 | + from, |
| 39 | + caip2, |
| 40 | + calls: [{ to, value, data }], |
| 41 | + }, |
| 42 | + }); |
| 43 | + ``` |
0 commit comments