@@ -48,7 +48,7 @@ Use `wallet_getCapabilities` to query whether MetaMask supports atomic batch tra
4848For example:
4949
5050``` js title="index.js"
51- const result = await provider // Or window.ethereum if you don't support EIP-6963.
51+ const capabilities = await provider // Or window.ethereum if you don't support EIP-6963.
5252 .request ({
5353 " method" : " wallet_getCapabilities" ,
5454 " params" : [
@@ -98,12 +98,12 @@ Set `atomicRequired` to `true` to require MetaMask to execute the calls atomical
9898For example:
9999
100100``` js title="index.js"
101- const result = await provider.
101+ const result = await provider. // Or window.ethereum if you don't support EIP-6963.
102102 request ({
103- " method" : " wallet_sendCalls" , // Or window.ethereum if you don't support EIP-6963.
103+ " method" : " wallet_sendCalls" ,
104104 " params" : [
105105 {
106- version: " 1 .0" ,
106+ version: " 2.0 .0" ,
107107 from: " 0xd46e8dd67c5d32be8058bb8eb970870f07244567" , // The sender's address.
108108 chainId: " 0x2105" , // The chain ID, which must match the currently selected network.
109109 atomicRequired: true , // Whether or not atomicity is required.
@@ -139,7 +139,7 @@ using the batch ID returned by `wallet_sendCalls`.
139139For example:
140140
141141``` js title="index.js"
142- const result = await provider // Or window.ethereum if you don't support EIP-6963.
142+ const status = await provider // Or window.ethereum if you don't support EIP-6963.
143143 .request ({
144144 " method" : " wallet_getCallsStatus" ,
145145 " params" : [
@@ -156,7 +156,7 @@ This method returns status information about the batch of transactions, includin
156156
157157``` json
158158{
159- "version" : " 1 .0" ,
159+ "version" : " 2.0 .0" ,
160160 "chainId" : " 0x2105" ,
161161 "id" : " 0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331" ,
162162 "status" : 200 , // Status code. 200 means confirmed.
0 commit comments