Skip to content

Commit 33b57e9

Browse files
Fix Vercel broken links and warnings (#1845)
1 parent 5e5bcbb commit 33b57e9

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
@@ -42,7 +42,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
4242
([#1509](https://github.com/MetaMask/metamask-docs/pull/1509))
4343
- Documented [Scroll](/services/reference/scroll) support.
4444
([#1641](https://github.com/MetaMask/metamask-docs/pull/1641))
45-
- Updated [Wallet landing page](/wallet) and added [Connect to MetaMask](/wallet/connect) section
45+
- Updated [Wallet landing page](/wallet) and added [Connect to MetaMask](/wallet/how-to/connect) section
4646
with SDK, third-party libraries, and Wallet API connection options.
4747
([#1494](https://github.com/MetaMask/metamask-docs/pull/1494))
4848
- Documented [`snap_getPreferences`](/snaps/reference/snaps-api/#snap_getpreferences).
@@ -65,7 +65,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
6565
([#1540](https://github.com/MetaMask/metamask-docs/pull/1540))
6666
- Documented [Snaps user-defined components](/snaps/features/custom-ui/user-defined-components).
6767
([#1557](https://github.com/MetaMask/metamask-docs/pull/1557))
68-
- Updated [Android SDK documentation](/wallet/connect/metamask-sdk/mobile/android) with convenience
68+
- Updated [Android SDK documentation](/sdk) with convenience
6969
methods and examples using coroutines.
7070
([#1546](https://github.com/MetaMask/metamask-docs/pull/1546))
7171
- Documented [Infura's credit pricing model](/services/get-started/pricing).
@@ -90,12 +90,12 @@ of the [MetaMask developer page](https://metamask.io/developer/).
9090

9191
## June 2024
9292

93-
- Documented [Snaps custom UI with JSX](/snaps/features/custom-ui/with-jsx).
93+
- Documented [Snaps custom UI with JSX](/snaps/features/custom-ui).
9494
([#1348](https://github.com/MetaMask/metamask-docs/pull/1348))
9595
- Updated [React dapp with global state tutorial](/wallet/tutorials/react-dapp-global-state) with
9696
instructions for EIP-6963.
9797
([#1330](https://github.com/MetaMask/metamask-docs/pull/1330))
98-
- 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))
98+
- 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))
9999
- Updated [Snaps resources](/snaps/learn/resources) and added a new section "Snaps for developers." ([#1329](https://github.com/MetaMask/metamask-docs/pull/1329))
100100
- Documented [how to allow automatic connections to a Snap](/snaps/how-to/allow-automatic-connections).
101101
([#1322](https://github.com/MetaMask/metamask-docs/pull/1322))
@@ -129,7 +129,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
129129
- Documented [Snaps notifications](/snaps/features/notifications).
130130
([#1292](https://github.com/MetaMask/metamask-docs/pull/1292))
131131
- Moved Snaps-specific Wallet API methods from the
132-
[Wallet JSON-RPC API reference](/wallet/reference/json-rpc-api) to the
132+
[Wallet JSON-RPC API reference](/wallet/reference/json-rpc-methods) to the
133133
[Snaps reference](/snaps/reference/wallet-api-for-snaps).
134134
([#1286](https://github.com/MetaMask/metamask-docs/pull/1286))
135135
- Documented [Snaps `onKeyringRequest` entry point](/snaps/reference/entry-points/#onkeyringrequest).
@@ -142,7 +142,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
142142
([#1274](https://github.com/MetaMask/metamask-docs/pull/1274))
143143
- Documented [Snaps cron jobs](/snaps/features/cron-jobs).
144144
([#1271](https://github.com/MetaMask/metamask-docs/pull/1271))
145-
- Updated [how to connect to MetaMask](/wallet/connect/wallet-api) with vanilla TypeScript and React
145+
- Updated [how to connect to MetaMask](/wallet/how-to/connect) with vanilla TypeScript and React
146146
TypeScript instructions.
147147
([#1247](https://github.com/MetaMask/metamask-docs/pull/1247))
148148

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

196196
## February 2024
@@ -212,7 +212,7 @@ of the [MetaMask developer page](https://metamask.io/developer/).
212212
- Restructured and improved [Wallet documentation](/wallet) and introduced "Wallet API" terminology.
213213
([#1114](https://github.com/MetaMask/metamask-docs/pull/1114) and
214214
[#1125](https://github.com/MetaMask/metamask-docs/pull/1125))
215-
- Documented [how to detect multiple wallets using EIP-6963](/wallet/connect/wallet-api).
215+
- Documented [how to detect multiple wallets using EIP-6963](/wallet/how-to/connect).
216216
([#1094](https://github.com/MetaMask/metamask-docs/pull/1094))
217217
- Documented [how to communicate errors in Snaps](/snaps/how-to/communicate-errors).
218218
([#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)