You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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))
99
99
- Updated [Snaps resources](/snaps/learn/resources) and added a new section "Snaps for developers." ([#1329](https://github.com/MetaMask/metamask-docs/pull/1329))
100
100
- Documented [how to allow automatic connections to a Snap](/snaps/how-to/allow-automatic-connections).
## **Observe logs of mined transactions** <ahref="#mined-transactions"id="mined-transactions"></a>
87
+
## Observe logs of mined transactions
88
88
89
89
When a transaction is mined, event logs are published for public viewing.
90
90
@@ -145,7 +145,7 @@ This request tells the blockchain to retrieve event logs related to address `0x6
145
145
146
146
The response returned for this request is an array of events. In this example, only one event for one address matches the specified topics.
147
147
148
-
### **Topics**
148
+
### Topics
149
149
150
150
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:
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`.
Copy file name to clipboardExpand all lines: services/reference/_partials/error-codes.mdx
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,12 +124,11 @@ The RPC methods below take a default block identifier as a parameter.
124
124
125
125
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:
|`[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`. |
|`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`. |
0 commit comments