Skip to content

Commit e5d3af1

Browse files
Add links to 5792 methods in API reference (#2004)
1 parent 2d597e2 commit e5d3af1

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

wallet/how-to/send-transactions/send-batch-transactions.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ description: Send atomic batch transactions using `wallet_sendCalls`.
77
You can send and manage batch transactions in MetaMask, using the methods specified by
88
[EIP-5792](https://eips.ethereum.org/EIPS/eip-5792):
99

10-
- `wallet_getCapabilities` - Query whether support for atomic batch transactions is available.
11-
- `wallet_sendCalls` - Submit multiple transactions to be processed atomically by MetaMask.
12-
- `wallet_getCallsStatus` - Track the status of your transaction batch.
10+
- [`wallet_getCapabilities`](/wallet/reference/json-rpc-methods/wallet_getcapabilities) - Query whether support for atomic batch transactions is available.
11+
- [`wallet_sendCalls`](/wallet/reference/json-rpc-methods/wallet_sendcalls) - Submit multiple transactions to be processed atomically by MetaMask.
12+
- [`wallet_getCallsStatus`](/wallet/reference/json-rpc-methods/wallet_getcallsstatus) - Track the status of your transaction batch.
1313

1414
## About atomic batch transactions
1515

@@ -45,7 +45,8 @@ You can send batch transactions using the following third-party libraries that s
4545

4646
### 1. Query whether atomic batch is supported
4747

48-
Use `wallet_getCapabilities` to query whether MetaMask supports atomic batch transactions for a specific address and specific chain IDs.
48+
Use [`wallet_getCapabilities`](/wallet/reference/json-rpc-methods/wallet_getcapabilities) to query
49+
whether MetaMask supports atomic batch transactions for a specific address and specific chain IDs.
4950
For example:
5051

5152
```js title="index.js"
@@ -100,14 +101,15 @@ MetaMask will support this feature on more networks as they adopt EIP-7702.
100101

101102
:::note Atomic batch unsupported
102103
- If the user has already upgraded their account to a third-party smart contract account, MetaMask does not currently support atomic batch transactions for that account.
103-
- If atomic batch is not supported, fall back to [`eth_sendTransaction`](index.md) instead of `wallet_sendCalls`,
104-
and [`eth_getTransactionReceipt`](/wallet/reference/json-rpc-methods/eth_gettransactionreceipt)
105-
instead of `wallet_getCallsStatus`.
104+
- If atomic batch is not supported, fall back to [`eth_sendTransaction`](index.md) instead of
105+
[`wallet_sendCalls`](/wallet/reference/json-rpc-methods/wallet_sendcalls),
106+
and [`eth_getTransactionReceipt`](/wallet/reference/json-rpc-methods/eth_gettransactionreceipt)
107+
instead of [`wallet_getCallsStatus`](/wallet/reference/json-rpc-methods/wallet_getcallsstatus).
106108
:::
107109

108110
### 2. Submit a batch of transactions
109111

110-
Use `wallet_sendCalls` to submit a batch of transactions.
112+
Use [`wallet_sendCalls`](/wallet/reference/json-rpc-methods/wallet_sendcalls) to submit a batch of transactions.
111113
For example:
112114

113115
```js title="index.js"
@@ -152,8 +154,8 @@ For example:
152154

153155
### 3. Track the status of the batch of transactions
154156

155-
Use `wallet_getCallsStatus` to track the status of the submitted batch of transactions,
156-
using the batch ID returned by `wallet_sendCalls`.
157+
Use [`wallet_getCallsStatus`](/wallet/reference/json-rpc-methods/wallet_getcallsstatus) to track
158+
the status of the submitted batch of transactions, using the batch ID returned by `wallet_sendCalls`.
157159
For example:
158160

159161
```js title="index.js"

0 commit comments

Comments
 (0)