Skip to content

Commit fc79de9

Browse files
authored
Merge branch 'main' into simulatev1
2 parents 3a1a011 + 33b57e9 commit fc79de9

File tree

73 files changed

+165
-2081
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+165
-2081
lines changed

docs/whats-new.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
4343
([#1509](https://github.com/MetaMask/metamask-docs/pull/1509))
4444
- Documented [Scroll](/services/reference/scroll) support.
4545
([#1641](https://github.com/MetaMask/metamask-docs/pull/1641))
46-
- Updated [Wallet landing page](/wallet) and added [Connect to MetaMask](/wallet/connect) section
46+
- Updated [Wallet landing page](/wallet) and added [Connect to MetaMask](/wallet/how-to/connect) section
4747
with SDK, third-party libraries, and Wallet API connection options.
4848
([#1494](https://github.com/MetaMask/metamask-docs/pull/1494))
4949
- Documented [`snap_getPreferences`](/snaps/reference/snaps-api/#snap_getpreferences).
@@ -66,7 +66,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
6666
([#1540](https://github.com/MetaMask/metamask-docs/pull/1540))
6767
- Documented [Snaps user-defined components](/snaps/features/custom-ui/user-defined-components).
6868
([#1557](https://github.com/MetaMask/metamask-docs/pull/1557))
69-
- Updated [Android SDK documentation](/wallet/connect/metamask-sdk/mobile/android) with convenience
69+
- Updated [Android SDK documentation](/sdk) with convenience
7070
methods and examples using coroutines.
7171
([#1546](https://github.com/MetaMask/metamask-docs/pull/1546))
7272
- Documented [Infura's credit pricing model](/services/get-started/pricing).
@@ -91,12 +91,12 @@ of the [MetaMask developer page](https://metamask.io/developer/).
9191

9292
## June 2024
9393

94-
- Documented [Snaps custom UI with JSX](/snaps/features/custom-ui/with-jsx).
94+
- Documented [Snaps custom UI with JSX](/snaps/features/custom-ui).
9595
([#1348](https://github.com/MetaMask/metamask-docs/pull/1348))
9696
- Updated [React dapp with global state tutorial](/wallet/tutorials/react-dapp-global-state) with
9797
instructions for EIP-6963.
9898
([#1330](https://github.com/MetaMask/metamask-docs/pull/1330))
99-
- Documented that the Gas API can be [called without an API key secret](/services/gas-api/api-reference). ([#1346](https://github.com/MetaMask/metamask-docs/pull/1346))
99+
- Documented that the Gas API can be [called without an API key secret](/services/reference/gas-api). ([#1346](https://github.com/MetaMask/metamask-docs/pull/1346))
100100
- Updated [Snaps resources](/snaps/learn/resources) and added a new section "Snaps for developers." ([#1329](https://github.com/MetaMask/metamask-docs/pull/1329))
101101
- Documented [how to allow automatic connections to a Snap](/snaps/how-to/allow-automatic-connections).
102102
([#1322](https://github.com/MetaMask/metamask-docs/pull/1322))
@@ -130,7 +130,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
130130
- Documented [Snaps notifications](/snaps/features/notifications).
131131
([#1292](https://github.com/MetaMask/metamask-docs/pull/1292))
132132
- Moved Snaps-specific Wallet API methods from the
133-
[Wallet JSON-RPC API reference](/wallet/reference/json-rpc-api) to the
133+
[Wallet JSON-RPC API reference](/wallet/reference/json-rpc-methods) to the
134134
[Snaps reference](/snaps/reference/wallet-api-for-snaps).
135135
([#1286](https://github.com/MetaMask/metamask-docs/pull/1286))
136136
- Documented [Snaps `onKeyringRequest` entry point](/snaps/reference/entry-points/#onkeyringrequest).
@@ -143,7 +143,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
143143
([#1274](https://github.com/MetaMask/metamask-docs/pull/1274))
144144
- Documented [Snaps cron jobs](/snaps/features/cron-jobs).
145145
([#1271](https://github.com/MetaMask/metamask-docs/pull/1271))
146-
- Updated [how to connect to MetaMask](/wallet/connect/wallet-api) with vanilla TypeScript and React
146+
- Updated [how to connect to MetaMask](/wallet/how-to/connect) with vanilla TypeScript and React
147147
TypeScript instructions.
148148
([#1247](https://github.com/MetaMask/metamask-docs/pull/1247))
149149

@@ -162,7 +162,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
162162
- Documented [Snap-defined timeouts](/snaps/reference/permissions/#snap-defined-timeouts).
163163
([#1224](https://github.com/MetaMask/metamask-docs/pull/1224) and
164164
[#1227](https://github.com/MetaMask/metamask-docs/pull/1227))
165-
- Restructured Wallet documentation to emphasize [connecting using EIP-6963](/wallet/connect/wallet-api).
165+
- Restructured Wallet documentation to emphasize [connecting using EIP-6963](/wallet/how-to/connect).
166166
([#1214](https://github.com/MetaMask/metamask-docs/pull/1214))
167167
- Documented [Snaps custom name resolution](/snaps/features/custom-name-resolution).
168168
([#924](https://github.com/MetaMask/metamask-docs/pull/924))
@@ -174,9 +174,9 @@ of the [MetaMask developer page](https://metamask.io/developer/).
174174
([#1209](https://github.com/MetaMask/metamask-docs/pull/1209) and
175175
[#1225](https://github.com/MetaMask/metamask-docs/pull/1225))
176176
- Removed "Flask" label from [Snaps home pages](/snaps/reference/entry-points/#onhomepage) and
177-
[`snap_getLocale`](/snaps/reference/snaps-api/#snap_getlocale).
177+
[`snap_getLocale`](/snaps/reference/snaps-api/#snap_getlocale-deprecated).
178178
([#1204](https://github.com/MetaMask/metamask-docs/pull/1204))
179-
- Restructured [SDK documentation](/wallet/how-to/use-sdk) to de-emphasize it as a recommended method.
179+
- Restructured [SDK documentation](/sdk) to de-emphasize it as a recommended method.
180180
([#1200](https://github.com/MetaMask/metamask-docs/pull/1200) and
181181
[#1230](https://github.com/MetaMask/metamask-docs/pull/1230))
182182
- Deprecated the following [provider API](/wallet/reference/provider-api) elements:
@@ -191,7 +191,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
191191
([#1178](https://github.com/MetaMask/metamask-docs/pull/1178))
192192
- Improved and restructured the [Snaps Keyring API reference](/snaps/reference/keyring-api).
193193
([#1170](https://github.com/MetaMask/metamask-docs/pull/1170))
194-
- Documented [how to connect and sign using the Unity SDK](/wallet/how-to/use-sdk/gaming/unity/connect-and-sign).
194+
- Documented [how to connect and sign using the Unity SDK](/sdk).
195195
([#1023](https://github.com/MetaMask/metamask-docs/pull/1023))
196196

197197
## February 2024
@@ -213,7 +213,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
213213
- Restructured and improved [Wallet documentation](/wallet) and introduced "Wallet API" terminology.
214214
([#1114](https://github.com/MetaMask/metamask-docs/pull/1114) and
215215
[#1125](https://github.com/MetaMask/metamask-docs/pull/1125))
216-
- Documented [how to detect multiple wallets using EIP-6963](/wallet/connect/wallet-api).
216+
- Documented [how to detect multiple wallets using EIP-6963](/wallet/how-to/connect).
217217
([#1094](https://github.com/MetaMask/metamask-docs/pull/1094))
218218
- Documented [how to communicate errors in Snaps](/snaps/how-to/communicate-errors).
219219
([#1117](https://github.com/MetaMask/metamask-docs/pull/1117))

docusaurus.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@ const config = {
259259
{
260260
title: "Documentation",
261261
items: [
262-
{
263-
label: "Wallet",
264-
to: "/wallet",
265-
},
266262
{
267263
label: "SDK",
268264
to: "/sdk",
269265
},
266+
{
267+
label: "Wallet",
268+
to: "/wallet",
269+
},
270270
{
271271
label: "Snaps",
272272
to: "/snaps",

services/how-to/interact-with-erc-20-tokens.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import TabItem from "@theme/TabItem"
1212

1313
You can:
1414

15-
- [Send ERC-20 transactions](interact-with-erc-20-tokens.md#sending-transactions) using `eth_sendRawTransaction`.
16-
- [Observe event logs of mined ERC-20 transactions](interact-with-erc-20-tokens.md#mined-transactions) using `eth_getLogs`.
15+
- [Send ERC-20 transactions](#send-transactions) using `eth_sendRawTransaction`.
16+
- [Observe event logs of mined ERC-20 transactions](#observe-logs-of-mined-transactions) using `eth_getLogs`.
1717
- Follow [this tutorial](../tutorials/ethereum/retrieve-the-balance-of-an-erc-20-token.md) to retrieve the balance of ERC-20 tokens.
1818
- Follow [this tutorial](../tutorials/ethereum/track-erc-20-token-transfers.md) to track ERC-20 token transfers.
1919

@@ -35,7 +35,7 @@ At certain times, an ERC-20 token also must emit the following events:
3535

3636
View [EIP-20](https://eips.ethereum.org/EIPS/eip-20) for more details about how these functions work and when to emit these events.
3737

38-
## **Send transactions** <a href="#sending-transactions" id="sending-transactions"></a>
38+
## Send transactions
3939

4040
Use [`eth_sendRawTransaction`](../reference/ethereum/json-rpc-methods/eth_sendrawtransaction.mdx) to send ERC-20 token transactions.
4141

@@ -84,7 +84,7 @@ curl https://mainnet.infura.io/v3/<YOUR-API-KEY> \
8484
</TabItem>
8585
</Tabs>
8686

87-
## **Observe logs of mined transactions** <a href="#mined-transactions" id="mined-transactions"></a>
87+
## Observe logs of mined transactions
8888

8989
When a transaction is mined, event logs are published for public viewing.
9090

@@ -145,7 +145,7 @@ This request tells the blockchain to retrieve event logs related to address `0x6
145145

146146
The response returned for this request is an array of events. In this example, only one event for one address matches the specified topics.
147147

148-
### **Topics**
148+
### Topics
149149

150150
Topics are events emitted by smart contracts. Looking at the source code of the original contract [`0x6B175474E89094C44Da98b954EedeAC495271d0F`](https://etherscan.io/address/0x6b175474e89094c44da98b954eedeac495271d0f#code) used in this example, there are two event signatures that could be associated with it on lines 94 and 95:
151151

@@ -194,6 +194,6 @@ web3.sha3("Transfer(address,address,uint256)")
194194

195195
The resulting hash matches the hash provided in the initial request response. Now you know that `0xddf25` is the transfer event in this example.
196196

197-
### **Data** <a href="#more-event-logs" id="more-event-logs"></a>
197+
### Data
198198

199199
The `data` field in the request response refers to all the "non-indexed stuff" captured in the events. In this example, for the transfer topic, `data` represents the number of tokens that were transferred. That is, `0x41f900d25d6693623a6` or 19471.6949921 DAI tokens were transferred from `ee25e1ba53c225d250861c8e5a9a3e0fe19c790e` to `dfbaf3e4c7496dad574a1b842bc85b402bdc298d`.

services/reference/_partials/error-codes.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,11 @@ The RPC methods below take a default block identifier as a parameter.
124124

125125
Since there is no way to clearly distinguish between a `Data` parameter and a `Quantity` parameter, [EIP-1898](https://eips.ethereum.org/EIPS/eip-1898) provides a format to specify a block either using the block hash or block number. The block identifier is a JSON `object` with the following fields:
126126

127-
| Property | Type | Description |
128-
|--------------------|---------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
129-
| `[blockNumber]` | \{[`Quantity`](eth_blocknumber.mdx)\} | The block in the canonical chain with this number |
130-
| OR `[blockHash]` | \{[`Data`](eth_getblockbyhash.mdx)\} | The block uniquely identified by this hash. The `blockNumber` and `blockHash` properties are mutually exclusive; exactly one of them must be set. |
131-
| `requireCanonical` | \{`boolean`}\ | (optional) Whether or not to throw an error if the block is not in the canonical chain as described below. Only allowed in conjunction with the `blockHash` tag. Defaults to `false`. |
132-
127+
| Property | Type | Description |
128+
|--------------------|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
129+
| `blockNumber` | `Quantity` | The block in the canonical chain with this number. |
130+
| OR `blockHash` | `Data` | The block uniquely identified by this hash. The `blockNumber` and `blockHash` properties are mutually exclusive; exactly one of them must be set. |
131+
| `requireCanonical` | `boolean` | (Optional) Whether or not to throw an error if the block is not in the canonical chain. Only allowed in conjunction with the `blockHash` tag. The default is `false`. |
133132

134133
### Data
135134

services/reference/bnb-smart-chain/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Don't have an Infura account? Sign up for our free plan and start using the BNB
1515

1616
## Prerequisites
1717

18-
- Ensure you have an [API key](../../../developer-tools/dashboard/get-started/create-api) with the BNB Smart Chain networked enabled.
18+
- Ensure you have an [API key](../../../developer-tools/dashboard/get-started/create-api.md) with the BNB Smart Chain networked enabled.
1919

2020
## Make calls
2121

services/reference/ipfs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Infura restricts its IPFS service to a select set of qualified customers. Please
1616

1717
Content is accessible from peer nodes located anywhere in the world. These nodes relay information, store it, or both.
1818

19-
To integrate your IPFS project with Infura, create an [Infura API key](../../get-started/infura.md#2-create-an-api-key).
19+
To integrate your IPFS project with Infura, create an [Infura API key](../../get-started/infura.md#2-view-your-api-key).
2020

2121
:::info See also
2222

services/reference/linea/json-rpc-methods/_eth_estimategas-parameters.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
- `gasPrice`: _\[optional]_ Hexadecimal value of the gas price used for each paid gas.
77
- `maxPriorityFeePerGas`: _\[optional]_ Maximum fee, in wei, the sender is willing to pay per gas
88
above the base fee.
9-
See [EIP-1559 transactions](../../ethereum/concepts/transaction-types.md#eip-1559-transactions).
9+
See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions).
1010
- `maxFeePerGas`: _\[optional]_ Maximum total fee (base fee + priority fee), in wei, the sender is
1111
willing to pay per gas.
12-
See [EIP-1559 transactions](../../ethereum/concepts/transaction-types.md#eip-1559-transactions).
12+
See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions).
1313
- `value`: _\[optional]_ Hexadecimal value of the value sent with this transaction.
1414
- `data`: _\[optional]_ Hash of the method signature and encoded parameters. See the
1515
[Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html).

services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Returns tracing results by executing all transactions in the block specified by
2121

2222
## Returns
2323

24-
Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md##calltracer) object or
24+
Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or
2525
[`prestateTracer`](../debug/index.md#prestatetracer) object.
2626

2727
## Example

services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ Returns tracing results by executing all transactions in the specified block num
1919

2020
- Optional tracing options object with the following fields:
2121
- `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or
22-
[`prestateTracer`](../debug/index.md##prestatetracer).
22+
[`prestateTracer`](../debug/index.md#prestatetracer).
2323
- `tracerConfig`: (object) _[optional]_ tracer configuration options:
2424
- `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any
2525
sub-calls. It eliminates the additional processing for each call frame.
2626

2727
## Returns
2828

29-
Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md##calltracer) object or
29+
Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or
3030
[`prestateTracer`](../debug/index.md#prestatetracer) object.
3131

3232
## Example

services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Returns tracing results for the specified transaction.
1313

1414
- `transactionHash`: (string) _[required]_ hash of the block to trace.
1515
- Optional tracing options object with the following fields:
16-
- `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](index.md#calltracer) or
17-
[`prestateTracer`](index.md##prestatetracer).
16+
- `tracer`: (string) _[optional]_ type of tracer. Supports [`callTracer`](../debug/index.md#calltracer) or
17+
[`prestateTracer`](../debug/index.md#prestatetracer).
1818
- `tracerConfig`: (object) _[optional]_ tracer configuration options:
1919
- `onlyTopCall`: (boolean) _[optional]_ when `true`, will only trace the primary (top-level) call and not any
2020
sub-calls. It eliminates the additional processing for each call frame.
@@ -23,8 +23,8 @@ Returns tracing results for the specified transaction.
2323

2424
# Returns
2525

26-
Depending on the specified tracer type, returns a [`callTracer`](index.md##calltracer) object or
27-
[`prestateTracer`](index.md#prestatetracer) object.
26+
Depending on the specified tracer type, returns a [`callTracer`](../debug/index.md#calltracer) object or
27+
[`prestateTracer`](../debug/index.md#prestatetracer) object.
2828

2929
## Example
3030

0 commit comments

Comments
 (0)