diff --git a/.cursor/rules/content-types.mdc b/.cursor/rules/content-types.mdc index 6c572e69aaf..be6900848cb 100644 --- a/.cursor/rules/content-types.mdc +++ b/.cursor/rules/content-types.mdc @@ -68,7 +68,7 @@ Examples: - Describe and only describe. Be austere, neutral, and factual. - Match the parameter format used in surrounding reference pages. Some areas use tables (name, type, required/optional, description); others use nested bulleted lists (for example, JSON-RPC - method docs in Services). Be consistent with the existing convention in the same product section. + method docs in Snaps). Be consistent with the existing convention in the same product section. - Adopt standard patterns. Consistent structure lets readers find information quickly. - Mirror the structure of the API or code itself (for example, one section per method or endpoint). - Include short usage examples to illustrate parameters and return values. @@ -76,7 +76,7 @@ Examples: - Do not include tutorials or extended how-to steps. - Examples: `snaps/reference/config-options.md`, `smart-accounts-kit/reference/delegation/delegation-scopes.md`, - `services/reference/solana/json-rpc-methods` + `snaps/reference/snaps-api/wallet_snap` ### `tutorials/` - Tutorial diff --git a/.cursor/rules/contributor-workflow.mdc b/.cursor/rules/contributor-workflow.mdc index efc76c21620..5fd0598e27d 100644 --- a/.cursor/rules/contributor-workflow.mdc +++ b/.cursor/rules/contributor-workflow.mdc @@ -12,15 +12,16 @@ the requirements that are most often missed. Every new documentation page must be added to the appropriate sidebar file: -| Product | Sidebar file | -| ------------------- | ------------------------- | -| MetaMask Connect | `mm-connect-sidebar.js` | -| Embedded Wallets | `ew-sidebar.js` | -| Smart Accounts Kit | `gator-sidebar.js` | -| Agent Wallet | `agent-wallet-sidebar.js` | -| Services | `services-sidebar.js` | -| Developer dashboard | `dashboard-sidebar.js` | -| Snaps | `snaps-sidebar.js` | +| Product | Sidebar file | +| ------------------ | ------------------------- | +| MetaMask Connect | `mm-connect-sidebar.js` | +| Embedded Wallets | `ew-sidebar.js` | +| Smart Accounts Kit | `gator-sidebar.js` | +| Agent Wallet | `agent-wallet-sidebar.js` | +| Agent Wallet | `agent-wallet-sidebar.js` | +| Snaps | `snaps-sidebar.js` | + +Infura API and dashboard documentation is maintained in [docs.infura](https://github.com/INFURA/docs.infura), not in this repository. Link to `https://docs.infura.io/` from MetaMask docs when referencing Infura APIs or the Infura dashboard. ## Redirects @@ -43,7 +44,6 @@ Place images in the product's designated asset folder: - `metamask-connect/*/_assets/` - `static/img/embedded-wallets/` (Embedded Wallets product images) - `smart-accounts-kit/assets/` -- `services/images/` - `snaps/assets/` - `static/img/` (for site-wide assets) diff --git a/.cursor/rules/product-infura.mdc b/.cursor/rules/product-infura.mdc new file mode 100644 index 00000000000..60ed0254f35 --- /dev/null +++ b/.cursor/rules/product-infura.mdc @@ -0,0 +1,19 @@ +--- +description: Infura documentation has moved to docs.infura.io. Do not add Infura API or dashboard content to metamask-docs. +alwaysApply: true +--- + +# Infura documentation + +Infura API reference, guides, and dashboard documentation are published at [docs.infura.io](https://docs.infura.io/). + +- **Repository:** [INFURA/docs.infura](https://github.com/INFURA/docs.infura) +- **Dashboard:** [app.infura.io](https://app.infura.io/) + +When MetaMask product docs need to reference Infura: + +- Use absolute links to `https://docs.infura.io/` (for example, `https://docs.infura.io/dashboard/get-started/create-api/`). +- Do not recreate Infura content under `services/` or `developer-tools/dashboard/` in this repository. +- The faucet remains on MetaMask docs at `/developer-tools/faucet/`. + +Cross-domain redirects in `vercel.json` send legacy `/services/*` and `/developer-tools/dashboard/*` URLs to docs.infura.io. diff --git a/.cursor/rules/product-services.mdc b/.cursor/rules/product-services.mdc deleted file mode 100644 index 10bc77d604f..00000000000 --- a/.cursor/rules/product-services.mdc +++ /dev/null @@ -1,61 +0,0 @@ ---- -description: Product-specific guidance for Services (Infura) documentation, including naming, reference conventions, and partial reuse. -globs: services/**/*.md,services/**/*.mdx -alwaysApply: false ---- - -# Services (Infura) - -## Product naming - -- The documentation area is called **Services**. -- **Infura** is the named API and infrastructure product. Use "Infura" when referring to the - service, endpoints, dashboard, or pricing. -- Positioning: Lead with Infura as the product (for example, "Infura offers...") rather than - subordinating it to another brand in introductory copy. -- Do not use "MetaMask Services" as a standalone product name in headings or prose. - -## Content organization - -| Folder | Content type | -|----------------|-------------------------------------------------| -| `concepts/` | Explanation (gas, transaction types, WebSockets, archive data, bundler) | -| `get-started/` | Onboarding, endpoints, Infura signup, pricing | -| `how-to/` | Task-oriented guides (rate limiting, IPFS, batch requests, JWT) | -| `tutorials/` | End-to-end walkthroughs by network (Ethereum, Layer 2) | -| `reference/` | Per-network JSON-RPC and REST API reference | - -## Reference conventions - -### JSON-RPC methods - -- Each method page follows the pattern: **Description**, **Parameters**, **Returns**, **Example** - (with **Request** and **Response** subsections). -- **Parameters use nested bulleted lists**, not tables. This is the established convention across - all network reference pages. Do not switch to tables. -- Top-level list items describe JSON-RPC `params` positions. Objects (such as a transaction call - object) use sub-bullets with backtick field names. - -### Gas API and IPFS - -- The Gas API documents REST endpoints. Parameters are also documented with bulleted lists. -- IPFS documentation follows HTTP API conventions. - -## Shared partials - -Services reference pages make heavy use of shared MDX partials in `services/reference/_partials/`. -There are hundreds of partial files organized by method family (for example, `filter-methods/`, -`trace-methods/`, `bundler/`). - -- **Shared partials** cover description, parameters, returns, and example content that is identical - across networks. -- **Per-network request partials** (co-located with the method page as `_-request.mdx`) - customize endpoint URLs for each network. -- When updating a method's parameters or description, edit the shared partial in `_partials/`, not - the individual network pages. - -## Sidebar - -The sidebar configuration is in [services-sidebar.js](services-sidebar.js). It uses Docusaurus -autogenerated sidebars for all categories. Deep structure comes from the filesystem and -`_category_.json` files. diff --git a/.cursor/skills/author-page/SKILL.md b/.cursor/skills/author-page/SKILL.md index 44ca58a993c..3a6279909c2 100644 --- a/.cursor/skills/author-page/SKILL.md +++ b/.cursor/skills/author-page/SKILL.md @@ -19,7 +19,8 @@ Help create a new documentation page that follows MetaMask editorial standards f Ask the user for any information they have not already provided: 1. **Product area** - which product is this for? (MetaMask Connect, Embedded Wallets, - Smart Accounts Kit, Services, Snaps, Developer Tools) + Smart Accounts Kit, Agent Wallet, Snaps). Infura API and dashboard docs live at + [Infura documentation](https://docs.infura.io/) and are not authored in this repository. 2. **Content type** - what kind of page? (concept/explanation, how-to guide, quickstart, reference, tutorial, troubleshooting) 3. **Topic** - what is the page about? @@ -43,9 +44,9 @@ front-matter fields, intro style, and parameter formats. Create the file with the correct structure for its content type. -### Frontmatter +### Page metadata -Follow **Frontmatter** in `.cursor/rules/markdown-formatting.mdc` (required `description`, +Follow page metadata rules in `.cursor/rules/markdown-formatting.mdc` (required `description`, recommended `keywords`, optional `sidebar_label` only when the nav label would otherwise be too long or wordy, and the `title` vs duplicate H1 rule). Do not repeat or contradict that rule here. @@ -217,11 +218,11 @@ description: Fill in the scaffold with content based on what the user provides. Follow these rules: -- **Voice**: active, present tense, second person ("you"). Use contractions naturally. +- **Voice**: active, present tense, second person ("you"). Use contractions where appropriate. - **First sentence**: get to the point. Answer "what" or "why" immediately. - **No em/en dashes**: use commas, parentheses, or semicolons. - **Sentence case** for all headings. -- **One sentence per line**, wrapped at roughly 100 columns. +- **One sentence per line**, wrapped at about 100 columns. - **Code blocks**: always include a language tag. Use `bash npm2yarn` for install commands. - **Terminology**: use the required forms from `terminology.mdc`. - **No marketing language**: no "powerful," "seamless," "best-in-class." @@ -232,7 +233,7 @@ Fill in the scaffold with content based on what the user provides. Follow these Before finishing, check: -- [ ] Frontmatter has `description`; add `sidebar_label` only when the default nav label would be +- [ ] Page metadata includes `description`; add `sidebar_label` only when the default nav label would be too long or wordy (see `markdown-formatting.mdc`). - [ ] Opening paragraph answers "what" and "why" in the first 1-2 sentences. - [ ] Structure matches the content type. diff --git a/.cursor/skills/style-review/SKILL.md b/.cursor/skills/style-review/SKILL.md index c2b00698103..d2151046af0 100644 --- a/.cursor/skills/style-review/SKILL.md +++ b/.cursor/skills/style-review/SKILL.md @@ -21,8 +21,9 @@ The user provides a file path or directory to review. If not provided, ask what Read the file path to determine: 1. **Product area** - which product folder the file lives in (for example, `metamask-connect/`, - `services/`, `snaps/`). Load the corresponding product rule from `.cursor/rules/product-*.mdc`. -2. **Content type** - which subfolder determines the expected structure (for example, `concepts/`, + `snaps/`, `agent-wallet/`). Load the corresponding product rule from `.cursor/rules/product-*.mdc`. + For Infura content, use `.cursor/rules/product-infura.mdc` and link to Infura documentation. +2. **Content type** - which folder determines the expected structure (for example, `concepts/`, `how-to/`, `reference/`). Use `.cursor/rules/content-types.mdc` for the mapping. ## Step 2: Run Vale (if available) @@ -44,7 +45,7 @@ source of truth for full criteria, examples, and edge cases. - Active voice and present tense used throughout. - Second person ("you"), not "the developer" or "users." -- Contractions used naturally. +- Contractions used where appropriate. - No marketing language, superlatives, or promotional tone. - No em dashes or en dashes; use commas, parentheses, or semicolons. - First sentence of each section gets to the point. @@ -57,16 +58,16 @@ source of truth for full criteria, examples, and edge cases. "Chain Agnostic Improvement Proposal 25 (CAIP-25)"), short form on subsequent references. - Product-specific terminology matches the corresponding `product-*.mdc` rule file. -### Markdown formatting (markdown-formatting.mdc) +### Markdown formatting (`markdown-formatting.mdc`) -- Lines wrapped at roughly 100 columns. +- Lines wrapped at about 100 columns. - Each sentence on its own line. - Code blocks have a language tag. - Links use relative paths within the product, absolute paths across products. - Descriptive link text; no "click here" or bare URLs. - Admonitions use Docusaurus syntax and are not nested. - Tables are aligned in source Markdown. -- No duplicate H1 if frontmatter contains a `title` field. +- No duplicate H1 if page metadata contains a `title` field. ### Content type compliance (content-types.mdc) @@ -77,11 +78,11 @@ source of truth for full criteria, examples, and edge cases. - Quickstart pages: complete, copy-paste-and-run code. - Troubleshooting pages: symptom/error first, then fix. -### Frontmatter +### Page metadata - `description` field present (one sentence for SEO). - `sidebar_label` only when needed (default nav label would be too long or wordy); otherwise omit. -- No duplicate H1 if `title` is set in frontmatter. +- No duplicate H1 if `title` is set in page metadata. ### Contributor workflow (contributor-workflow.mdc) @@ -94,7 +95,7 @@ source of truth for full criteria, examples, and edge cases. Present findings as a structured report grouped by category. For each issue: 1. **Line number** - approximate location in the file. -2. **Category** - Voice/Tone, Terminology, Formatting, Content Type, Frontmatter, or Workflow. +2. **Category** - Voice/Tone, Terminology, Formatting, Content Type, Page metadata, or Workflow. 3. **Issue** - what is wrong. 4. **Suggestion** - how to fix it. @@ -123,7 +124,7 @@ Present findings as a structured report grouped by category. For each issue: - Page is in `concepts/` but contains numbered step-by-step instructions. Move steps to a how-to page and link to it. -### Frontmatter +### Page metadata - Missing `description` field. ``` diff --git a/.linkspector.yml b/.linkspector.yml index 94940489fce..fae32ad5e59 100644 --- a/.linkspector.yml +++ b/.linkspector.yml @@ -1,9 +1,7 @@ dirs: - ./smart-accounts-kit - - ./developer-tools - ./embedded-wallets - ./metamask-connect - - ./services - ./snaps excludedDirs: - ./build @@ -29,7 +27,6 @@ ignorePatterns: - pattern: '^/developer-tools/' - pattern: '^/embedded-wallets/' - pattern: '^/metamask-connect/' - - pattern: '^/services/' - pattern: '^/snaps/' - pattern: '^/wallet/' - pattern: '^/tutorials/' diff --git a/AGENTS.md b/AGENTS.md index 9ecef7296eb..5a3e35d12d6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,15 +10,16 @@ dapp developers and wallet extension builders. ## Products -| Product | Path | Sidebar file | Description | -| ------------------- | --------------------------- | ------------------------- | ----------------------------------------------------------------------------------- | -| MetaMask Connect | `metamask-connect/` | `mm-connect-sidebar.js` | Connect dapps to MetaMask extension and mobile, across EVM, Solana, and multichain. | -| Embedded Wallets | `embedded-wallets/` | `ew-sidebar.js` | Embed wallet functionality directly into applications. | -| Smart Accounts Kit | `smart-accounts-kit/` | `gator-sidebar.js` | Create smart accounts with delegated permissions, and request advanced permissions. | -| Agent Wallet | `agent-wallet/` | `agent-wallet-sidebar.js` | Give AI agents programmatic wallet access via the `mm` CLI with mandatory security. | -| Services | `services/` | `services-sidebar.js` | Ease dapp development using Infura and related infrastructure APIs. | -| Snaps | `snaps/` | `snaps-sidebar.js` | Extend MetaMask by creating custom mini-apps. | -| Developer dashboard | `developer-tools/dashboard` | `dashboard-sidebar.js` | Manage Infura API keys, monitor usage, and access account info. | +| Product | Path | Sidebar file | Description | +| ------------------ | --------------------- | ------------------------- | ----------------------------------------------------------------------------------- | +| MetaMask Connect | `metamask-connect/` | `mm-connect-sidebar.js` | Connect dapps to MetaMask extension and mobile, across EVM, Solana, and multichain. | +| Embedded Wallets | `embedded-wallets/` | `ew-sidebar.js` | Embed wallet functionality directly into applications. | +| Smart Accounts Kit | `smart-accounts-kit/` | `gator-sidebar.js` | Create smart accounts with delegated permissions, and request advanced permissions. | +| Agent Wallet | `agent-wallet/` | `agent-wallet-sidebar.js` | Give AI agents programmatic wallet access via the `mm` CLI with mandatory security. | +| Agent Wallet | `agent-wallet/` | `agent-wallet-sidebar.js` | Give AI agents programmatic wallet access via the `mm` CLI with mandatory security. | +| Snaps | `snaps/` | `snaps-sidebar.js` | Extend MetaMask by creating custom mini-apps. | + +Infura API and dashboard documentation lives at [Infura documentation](https://docs.infura.io/) in the [Infura docs repository](https://github.com/INFURA/docs.infura). ## Editorial standards diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cd4c51ba7e8..dda7a828a25 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,7 @@ # Contribute to the documentation Thank you for your interest in contributing to the MetaMask developer documentation! -These docs generally follow the [Consensys docs guide](https://docs-template.consensys.net/). +These docs follow the [Consensys docs guide](https://docs-template.consensys.net/). This page describes contribution guidelines specific to MetaMask, and refers to the Consensys docs guide in some places. @@ -69,10 +69,11 @@ To contribute changes: > **Notes:** > - > - All documentation content is located in the `sdk`, `wallet`, `embedded-wallets`, `smart-accounts-kit`, `services`, - > `developer-tools`, `snaps`, and `src/pages` directories. + > - All documentation content is located in the `metamask-connect`, `embedded-wallets`, `smart-accounts-kit`, + > `agent-wallet`, `snaps`, and `src/pages` directories. + > - Infura API and dashboard documentation is maintained at [Infura documentation](https://docs.infura.io/), not in this repository. > - If you add a new documentation page, edit `mm-connect-sidebar.js`, `ew-sidebar.js`, `gator-sidebar.js`, - > `services-sidebar.js`, `dashboard-sidebar.js`, or `snaps-sidebar.js` to add the page to the + > `agent-wallet-sidebar.js`, `snaps-sidebar.js`, or other product sidebar files to add the page to the > [sidebar](https://docs-template.consensys.io/create/configure-docusaurus#sidebar). > - If you delete, rename, or move a documentation file, add a > [redirect](https://vercel.com/docs/edge-network/redirects#configuration-redirects). @@ -81,7 +82,7 @@ To contribute changes: 5. [Preview your changes locally](https://docs-template.consensys.net/contribute/preview) to check that the changes render correctly. -6. Add and commit your changes, briefly describing your changes in the commit message. +6. Add and commit your changes, describing your changes in the commit message. Push your changes to the remote origin. ```bash @@ -144,8 +145,8 @@ description: 'See a high-level, technical overview of the Snaps system.', ## Add images -All images are located in the `sdk/_assets`, `wallet/assets`, `smart-accounts-kit/assets`, `services/images`, -`developer-tools/images`, `snaps/assets`, and `static/img` directories. +All images are located in the `metamask-connect/*/_assets`, `smart-accounts-kit/assets`, +`snaps/assets`, `static/img/embedded-wallets`, and `static/img` directories. When adding a new image, such as a screenshot or diagram, make sure the image has a white or `#1b1b1d` color background in order for it to be compatible with the site's light and dark modes. diff --git a/crowdin.yml b/crowdin.yml index 6d4480dcc20..11e2db226be 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -10,7 +10,5 @@ files: translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name% - source: /snaps/**/* translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name% - - source: /services/**/* - translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name% - source: /docs/**/* translation: /i18n/%two_letters_code%/docusaurus-plugin-content-docs/**/%original_file_name% diff --git a/dashboard-sidebar.js b/dashboard-sidebar.js deleted file mode 100644 index 9d628f57b9a..00000000000 --- a/dashboard-sidebar.js +++ /dev/null @@ -1,19 +0,0 @@ -const sidebar = { - dashboardSidebar: [ - 'index', - { - type: 'category', - label: 'Get started', - collapsed: false, - items: [{ type: 'autogenerated', dirName: 'get-started' }], - }, - { - type: 'category', - label: 'How to', - collapsed: false, - items: [{ type: 'autogenerated', dirName: 'how-to' }], - }, - ], -} - -module.exports = sidebar diff --git a/developer-tools/dashboard/get-started/create-api.md b/developer-tools/dashboard/get-started/create-api.md deleted file mode 100644 index e68fa6764c5..00000000000 --- a/developer-tools/dashboard/get-started/create-api.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Create a Web3 or IPFS API -sidebar_position: 2 ---- - -# Create an API key - -:::important API key restrictions - -Based on your plan, Infura allows for the following number of API keys: - -- Free plan - Allows one API key. -- Developer plan - Allows up to five API keys. -- Team plans and higher - No limit on the number of API keys. - -For more information, see the [Infura pricing page](https://www.infura.io/pricing). - -::: - -Infura allows you to enable multiple network endpoints and expansion APIs for your API key. If calls are -made to a disabled network or service, then all requests to that network or service will fail. - -To keep your account secure and cost-effective, add only the necessary endpoints, as some have usage -limits or charges based on request volume. - -To create an API key: - -1. Open the [MetaMask Developer dashboard](https://infura.io/dashboard). Enter your login details, if required. -1. In the top right corner, select **Create new API key**. -1. From the pop-up window, provide a name, then click **Create**. -1. Select the networks that you want your API key to access, and select **Save Changes**. - -You can [configure additional security](../how-to/secure-an-api/api-key-secret.md) for your API key by -requiring an API key secret or JWTs with each API request. - -## Best practices for configuring API key endpoints - -We recommend the following best practices when creating your API keys: - -- Group API key endpoints by environment. For example, create separate API keys for production or development environments. -- Limit the number of networks or services per API key only to the necessary endpoints. -- Group the API key endpoints based on shared security considerations such as - [allowlists](../how-to/secure-an-api/use-an-allowlist.md) or - [key request volume limits](../how-to/secure-an-api/set-rate-limits.md). diff --git a/developer-tools/dashboard/how-to/credit-usage.md b/developer-tools/dashboard/how-to/credit-usage.md deleted file mode 100644 index 465d3ba9f6a..00000000000 --- a/developer-tools/dashboard/how-to/credit-usage.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -description: View your Infura credit usage stats. ---- - -# View credit usage - -You can view your daily credit usage in relation to your daily credit quota limit. Daily credit usage -counts are reset every day at 00:00 UTC for all customers. - -Select **View Usage** from the **Daily Credit Usage** section on the dashboard, or select -the **Usage** tab from the **Settings** > **Billing** dropdown. - -View your usage for the previous 24 hours, 7 days, or 30 days by methods used, networks, or API key. - -
-
- -
-
diff --git a/developer-tools/dashboard/how-to/dashboard-stats.md b/developer-tools/dashboard/how-to/dashboard-stats.md deleted file mode 100644 index c80f46de28d..00000000000 --- a/developer-tools/dashboard/how-to/dashboard-stats.md +++ /dev/null @@ -1,98 +0,0 @@ ---- -description: View your Infura usage stats. ---- - -# View API request stats - -The dashboard provides detailed analytics and real-time statistics about your API usage. -You can monitor the number of requests, track the most used methods, and identify any potential -issues or bottlenecks. -This data is crucial for optimizing your applications and ensuring they run smoothly. - -## Specify stats to view - -1. In the left menu of the [Infura dashboard](https://app.infura.io/), select **Stats**. - The stats page displays the total volume of requests sent to Infura over the specified time period. - By default, data is shown from the last 24 hours from all Web3 API keys. - -2. To change the API key, make a selection from the API keys dropdown. - -3. To change the stats time range, make a selection from the time dropdown. - Time values are given in Coordinated Universal Time (UTC). - For Web3 API usage, you can choose from the following options: - - **Last 15 Minutes** - The last completed 15 minutes. - This updates once a minute. - - **Last 1 Hour** - The last fully completed hour, from 0 to 59 minutes and 59 seconds. - - **Last 24 Hours** - The last fully completed 24 consecutive hours. - This is the default. - - **Last 7 Days** - The last fully completed seven consecutive days. - A day appears once it has been completed. - - **Last 30 Days** - The last fully completed 30 days. - A day appears once it has completed. - -4. To view your IPFS usage, select **IPFS Usage** in the toggle in the top-right corner. - You can choose to show data from the **Last 24 Hours** (default) or the **Last 7 Days**. - -## Web3 stats charts - -You can view your Web3 API usage stats in the following charts and tables. - -### Requests Volume chart - -This chart displays the total volume of requests sent to Infura using the selected API keys over -the selected time period. - -### Product Request Volumes - -This chart displays the aggregate request volumes for the top five API methods called using the -selected API keys over the selected time period. -To view stats for a particular product (network) instead of the default of all products, make a -selection from the products dropdown. -This change will impact what API methods are displayed in the -[Method Request Volumes](#method-request-volumes) chart. - -### Method Request Volumes - -This chart displays the aggregate request volumes for requests made on the top five networks using -the selected API keys over the selected time period. -To view stats for a particular method instead of the default of all methods, make a selection from -the methods dropdown. - -### Requests Activity - -This table displays the total request volumes and successful and failed requests, based on each -product (network) and method called using the selected API keys over the selected time period. - -For more details about the failure status codes, select the two diagonal arrows to the right of the -**FAILED REQUESTS (%)** values. -This opens the Failed Requests Breakdown table, which displays an aggregated count of failed API -requests, grouped by the returned status codes. - -### Eth_call activity - -This table displays the activities made on the `eth_call` method, including contract addresses that -interacted with the selected API keys. -This table only shows the `eth_call` activity for the last 30 minutes, and is not impacted by any -time period selection. - -To view smart contract details on Etherscan, select any contract address. -A new tab opens with the details. - -## IPFS stats charts - -You can view your IPFS usage stats in the following charts. - -### Data Transfer Up - -This chart displays the amount of data sent to the IPFS service using the selected API keys over -the selected time period. - -### Data Transfer Down - -This chart displays the amount of data retrieved from the IPFS service using the selected API keys -over the selected time period. - -### Total Storage - -This chart displays the total amount of data stored by the selected API keys over the selected -time period. diff --git a/developer-tools/dashboard/how-to/network-status.md b/developer-tools/dashboard/how-to/network-status.md deleted file mode 100644 index 94e3ff95b70..00000000000 --- a/developer-tools/dashboard/how-to/network-status.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -description: View the network status -sidebar_position: 8 ---- - -# View the network status - -View the [Infura status page](https://status.infura.io/) to check for service outages, incidents, and -scheduled maintenance notices. You can also subscribe to status updates via email, SMS, webhook, Slack, and Atom/RSS. - -You can also select the **Status** link on the left of the MetaMask Developer dashboard to view the status page. - -

- -

diff --git a/developer-tools/dashboard/how-to/secure-an-api/_category_.json b/developer-tools/dashboard/how-to/secure-an-api/_category_.json deleted file mode 100644 index 31275b347a0..00000000000 --- a/developer-tools/dashboard/how-to/secure-an-api/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Secure an API", - "position": 1 -} diff --git a/developer-tools/dashboard/how-to/secure-an-api/api-key-secret.md b/developer-tools/dashboard/how-to/secure-an-api/api-key-secret.md deleted file mode 100644 index 9451848347b..00000000000 --- a/developer-tools/dashboard/how-to/secure-an-api/api-key-secret.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -description: Authenticate all requests to Infura with an API key secret. ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# API key secret - -For enhanced security, you can require an API key secret for all requests to Infura. The API key -secret serves as a password accompanying the API key (which serves as a username). This two-factor -approach strengthens the authentication process, ensuring that only requests from authorized sources -are accepted. - -## When to use an API key secret - -Use an API key secret if your dapp includes server-side components. Storing and using the API key -secret only on the server side prevents exposure to client-side risks, such as malicious actors -gaining access through browser inspection tools or network monitoring. - -If your dapp operates solely on the client side without a server, use only the API key. -The API key is exposed in client-side code, so you should secure it using [allowlists](use-an-allowlist.md). - -:::tip -For customers on the Developer tier or higher, Infura supports [overriding your allowlist](use-an-allowlist.md#override-your-allowlist-settings) -when you specify an API key secret. This allows you to apply the principle of least privilege on the -client side while allowing unrestricted access on the server side. -::: - -## Enable the API key secret for requests - -In the API key's **Settings** tab, select **Require API Key secret for all requests**. - -
-
- -
-
- -## Call APIs using an API key secret - - - - -```bash -curl --user : \ - https://mainnet.infura.io/v3/ \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mainnet.infura.io/ws/v3/ --auth ":" -> {"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1} -``` - - - diff --git a/developer-tools/dashboard/how-to/secure-an-api/api-key.md b/developer-tools/dashboard/how-to/secure-an-api/api-key.md deleted file mode 100644 index 4a1840fd0ea..00000000000 --- a/developer-tools/dashboard/how-to/secure-an-api/api-key.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Secure your API key. ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# API key - -:::important - -A request will fail if it does not have a valid API key appended to the request URL. - -::: - -Select the API key in the dashboard to view the key's details. The API key to include in your requests can be -copied at the top of the page. - -Apply the principle of least privilege. Add only the endpoints that you plan to use, and then use the other -security features such as [JSON Web Tokens (JWTs)](use-jwts.md) and [allowlists](use-an-allowlist.md). - -
-
- -
-
- -Securing your Infura API key is crucial to protect your project resources and data. Here are some best practices to -secure your Infura API key: - -- **Do not share publicly.** Never share your API key publicly, such as in public repositories, client-side code, or public - forums. This is equivalent to giving away your password. - -- **Use environment variables.** When developing locally or deploying your application, store your - [API key in environment variables](/services/how-to/javascript-dotenv) instead of hardcoding it into - your application. This prevents the API key from being exposed in your codebase. - -- **Limit usage.** Infura allows you to [set daily request limits on your API key](set-rate-limits.md). Setting a limit can - prevent excessive usage if your API key is exposed accidentally. - -- **Monitor usage.** Observe the [usage statistics of your API key](../dashboard-stats.md). If you notice an unexpected - increase in usage, it might indicate that your API key has been compromised. diff --git a/developer-tools/dashboard/how-to/secure-an-api/set-rate-limits.md b/developer-tools/dashboard/how-to/secure-an-api/set-rate-limits.md deleted file mode 100644 index edda0622dee..00000000000 --- a/developer-tools/dashboard/how-to/secure-an-api/set-rate-limits.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Set rate limits to control access to the API key. ---- - -# Rate limits - -Set credit rate limits to control access to the API key and to limit costs in case of a leaked API key. -Set rate limiting in the API key's **Settings** tab **Key Credit Limits** section. - -
-
- -
-
- -- **Per second credit rate-limiting** restricts credits per second (throughput) for the API key. Set - the maximum number of credits per second in whole numbers. When credits per second rate exceeds - this value, requests are rejected. When the credit rate drops below the limit, requests - are accepted again. - - The value `0` means default limits are applied. - -- **Per day total credits** restricts total daily credit usage for the API key. Set a limit on the number of - credits per day in integers, for example, 20000. The value `0` means default limits are applied. - - When the number of used credits reaches this limit, all requests will be rejected until the next day (00:00 UTC). - -If you exceed the specified limits, you'll receive a JSON response with an -[HTTP error status code `429`](/services/reference/ethereum/json-rpc-methods/#http-errors). For example: - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "error": { - "code": 429, - "event": -33300, - "message": "Too Many Requests", - "details": "You have surpassed your user-defined key throughput limit setting. To make more requests with this key, review key setting configurations." - } -} -``` diff --git a/developer-tools/dashboard/how-to/secure-an-api/use-an-allowlist.md b/developer-tools/dashboard/how-to/secure-an-api/use-an-allowlist.md deleted file mode 100644 index 06a345a61c7..00000000000 --- a/developer-tools/dashboard/how-to/secure-an-api/use-an-allowlist.md +++ /dev/null @@ -1,218 +0,0 @@ ---- -description: Use an allowlist to restrict access to your API key. ---- - -# Allowlists - -Allowlists protect your API key from undesirable activity by restricting access to specific -addresses, HTTP headers `User-Agent` and `Origin`, and API request methods. - -For example, if your dapp operates solely on the client side, your API key could be exposed to client-side -risks, where malicious actors could access it through browser inspection tools or network monitoring. - -:::tip -Infura supports [overriding your allowlist](#override-your-allowlist-settings) settings -when you include an [API key secret](api-key-secret.md) in requests. This allows you to apply the principle of -least privilege on the client side while allowing unrestricted access on the server side. -::: - -Add the restriction details in the **ALLOWLISTS** section of your API key's **Settings** tab. - -
-
- -
-
- -#### Allowlist behavior - -- If an API key has no allowlists, all requests are accepted. -- When an API key has an allowlist definition, all requests must pass the definition. -- Each API key has a maximum of 30 allowlist entries per type. -- Each allowlist type is "AND"ed together. -- Multiple entries of the same type are "OR"ed. - -## Contract addresses - -If your application only queries data from specific Ethereum smart contracts or addresses, add those -addresses to the **Contract Addresses** allowlist. - -Any requests which query addresses that aren't in the allowlist are rejected. - -The following RPC methods take an Ethereum address parameter and are compatible with this type of allowlisting. - -- `eth_call` -- `eth_estimateGas` -- `eth_getLogs` -- `eth_getBalance` -- `eth_getCode` -- `eth_getStorageAt` -- `eth_getTransactionCount` - -#### Example request - -To allow a specific Ethereum address, input it into the **Contract Addresses** field and select **Add**. -In the following example we'll use `0xfe05a3e72235c9f92fd9f2282f41a8154d6d342b`. - -
-
- -
-
- -You can test using a method that supports this type of allowlisting. - -```bash -curl https://mainnet.infura.io/v3/ \ - -H 'Content-Type: application/json' \ - -X POST \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xfe05a3e72235c9f92fd9f2282f41a8154d6d342b", "latest"], "id": 1}' -``` - -Result: - -```bash -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x0" -} -``` - -## User agents - -To limit access to your application to specific user agents, add them to the **User agents** allowlist. - -:::info - -Find out more about the HTTP Header [User-Agent](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent). - -::: - -When you add a User-Agent to an allowlist, any API requests originating from other platforms are rejected. - -:::info - -The **User agents** allowlist uses partial string matching, meaning if the string is present in the -request's full User-Agent, it's registered as a match. - -::: - -#### Example request - -For example, to allow requests from Android phones alone, input `Android` into -the **User agent** field, and select **Add**. - -
-
- -
-
- -Test with a call from a desktop terminal. - -```bash -curl https://mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - -Result: - -```bash -{ - "jsonrpc": "2.0", - "error": { - "code": -32002, - "message": "rejected due to project ID settings" - } -} -``` - -## Origins - -To limit access to your application to specific URLs, add them to the **Origins** allowlist. - -:::info - -Find out more about the HTTP Header [Origin](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin). - -::: - -When you add an origin to an allowlist, any API requests originating from other origins are rejected. - -Origin allowlists support wildcard subdomain patterns. - -For example, allowlist entry `https://*.example.com` matches `https://your-app.example.com`, -`https://our-app.example.com`, and `https://their-app.example.com`, etc. - -The origin scheme (HTTPS in the example above) is optional. However, if you include it, it must match. - -:::info - -An entry with _only_ a scheme allows requests coming from that scheme alone. - -::: - -#### Example request - -To limit requests to your hosted Web3 application, input `mydapp.example.com` into the **Origins** -field, and select **Add**. Any requests that don't include `Origin: mydapp.example.com` are rejected. - -## API request method - -To limit the methods allowed, select them from the **API request method** drop down. - -If the list isn't empty, any method calls not specified in the list are rejected. - -## Override your allowlist settings - -:::note For customers on the Developer tier or higher only -This functionality is only available to customers on the Developer tier or higher. You'll need to -[upgrade your plan](../upgrade-your-plan.md) if you're currently on the free Core tier. -::: - -The **OVERRIDE ALLOWLIST** switch lets you override your allowlist settings when a request includes an -[API key secret](api-key-secret.md). This means requests will be accepted even if an IP address or -URL isn't on your allowlist, provided they include both the API key and the API key secret. - -
-
- -
-
- -This feature provides the following benefits: - -- **Principle of least privilege on the client side** - On the client side of your dapp, you may wish - to limit the actions possible with your API key to only those necessary for the application's - functionality. Allowlists ensure the API key is used solely for authorized locations, smart contract - addresses, or methods. - -- **No restrictions server side** - On the server side, where the API key secret can be stored - securely, you might need to carry out a broader range of actions without the constraints of - allowlists. Using the API key secret allows you to circumvent these restrictions, giving your - server-side application unrestricted use of the API key. - -## Best practices - -- Ensure the API key secret is not exposed publicly, and include it in your requests. -- Use all allowlist options wherever possible. -- Create a new API key for each application. This allows you to allowlist the contract addresses relevant to that application. -- Avoid committing your project keys to a repo by using a package like [dotenv](https://www.npmjs.com/package/dotenv). - -:::info - -If your dapp runs on the client side only, your API key will be exposed within client-side code. Consider -[creating a server component to secure your keys](https://thegraph.com/docs/en/cookbook/how-to-secure-api-keys-using-nextjs-server-components/). - -::: diff --git a/developer-tools/dashboard/how-to/secure-an-api/use-jwts.md b/developer-tools/dashboard/how-to/secure-an-api/use-jwts.md deleted file mode 100644 index 60ddb7b43e4..00000000000 --- a/developer-tools/dashboard/how-to/secure-an-api/use-jwts.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -description: Use JSON Web Tokens to authorize users and external parties. ---- - -# JWTs - -Enable JSON Web Tokens (JWTs) for all requests in the API key's **Settings** tab. - -Input the **JWT Public key name** and the key and select **Add**. - -
-
- -
-
- -For detailed instructions on how to secure Infura requests with JWTs, see the [JWT learning page](/services/how-to/json-web-token-jwt). diff --git a/developer-tools/dashboard/how-to/submit-a-help-ticket.md b/developer-tools/dashboard/how-to/submit-a-help-ticket.md deleted file mode 100644 index 1a08c3a639e..00000000000 --- a/developer-tools/dashboard/how-to/submit-a-help-ticket.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -description: Submit a help ticket ---- - -# Submit a help ticket - -To request help from the Infura customer support team, submit a help ticket using the following steps: - -1. In the left menu of the [Infura dashboard](https://app.infura.io/), select **Help**. - This opens the [Help Center](https://support.infura.io/), which contains a - knowledge base of answers to common questions about using Infura. - Search for your question in the Help Center. - -2. If you can't find what you're looking for, in the bottom right corner, select **Support** to - submit a ticket. diff --git a/developer-tools/dashboard/how-to/troubleshoot.md b/developer-tools/dashboard/how-to/troubleshoot.md deleted file mode 100644 index 095bac6b724..00000000000 --- a/developer-tools/dashboard/how-to/troubleshoot.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -description: Troubleshoot account issues -sidebar_position: 9 ---- - -# Troubleshoot account issues - -### Suspicious activity detected during registration - -If you receive a "Suspicious activity detected" message during registration, it might be for one of the following -reasons: - -- You have another account: Infura does not allow users to create multiple accounts, so if - you have already registered, you will not be able to create another account with the same information. -- You have an ad blocker running: Our system requires users to turn off their ad blockers during registration - to allow us to perform the necessary checks required for registration. Disable your ad blocker and try again. -- You're using a VPN: Try turning it off temporarily during registration. - -### Over API key allotment error - -This error means that you have reached the maximum number of allowed API Keys in your Infura account. - -The Infura Core tier allows you to create up to three API Keys. If you'd like to create more API Keys, consider upgrading to -a paid tier, which allows you to create ten API keys. - -### Lost access to your 2FA device - -If you've lost access to your two-factor authentication (2FA) device, you can recover access to your account using the backup -code provided back when you initially set up 2FA on your Infura account. - -For more information, see the [2FA documentation](two-factor-authentication.md#enable-2fa-on-your-account). diff --git a/developer-tools/dashboard/how-to/two-factor-authentication.md b/developer-tools/dashboard/how-to/two-factor-authentication.md deleted file mode 100644 index 90bd2f02e6b..00000000000 --- a/developer-tools/dashboard/how-to/two-factor-authentication.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -description: Set up two-factor authentication -sidebar_position: 4 ---- - -# Set up two-factor authentication - -Two-factor authentication (2FA) is a security measure that adds an extra layer of protection to -your online accounts. It requires you to provide two types of identification factors to verify your -identity before you can access your accounts. - -## Enable 2FA on your account - -To enable 2FA authentication on your account, on the dashboard go to **Settings** -> **Account**, and -select **Enable**. - - - -Scan the QR code with your authenticator, and enter the initial six-digit token. Select **Verify** to proceed. - -

- -

- -:::warning Important - -**Save your backup code to a secure location.** -If you ever lose access to your device, you can use this code to verify your identity. - -::: - -Select **Continue** to finish the process. - -

- -

- -:::info - -Most password managers allow you to add secure notes to an entry; you can add the backup code to the -Infura login entry. Alternatively, write it down and store it somewhere safe. - -::: - -Next time you log in to Infura, you'll be asked for your 2FA token in addition to your username and password. - -## Disable 2FA on your account - -To disable 2FA on your account, on the dashboard go to **Settings** -> **Account**, and select **Disable 2FA**. - - - -## Lost your 2FA device? - -If you lose your 2FA device, you can still log in using your backup code. Alternatively, you can recover your account by raising a support request with Infura. - -:::warning Important - -**Keep your backup code safe!** -If you raise a support request to recover your account, Infura support must confirm that you're the owner of the account. - -::: - -To log in without a 2FA device, log in to Infura with your username and password, and when confronted with the 2FA screen, select **Backup Code.** If you can't find it, your only option is to select **Recover your Account** and open a support case. - -

- -

- -:::info - -If you lose your 2FA device and must recover your account or log in using the backup code, then 2FA authentication is automatically disabled, and you must enable it again. - -::: diff --git a/developer-tools/dashboard/how-to/upgrade-your-plan.md b/developer-tools/dashboard/how-to/upgrade-your-plan.md deleted file mode 100644 index 1ea9bc51647..00000000000 --- a/developer-tools/dashboard/how-to/upgrade-your-plan.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -description: Upgrade your Infura plan. -sidebar_position: 7 ---- - -# Upgrade your plan - -:::important API key restrictions - -Infura implements the following restrictions on the number of API keys you can have, depending on your plan: - -- Free plan - Allows one API key. -- Developer plan - Allows up to five API keys. -- Team plans and higher - No limit on the number of API keys. - -For more information, see the [Infura pricing page](https://www.infura.io/pricing). - -::: - -To upgrade your plan select **Settings** -> **Billing**. In the **Manage Plan** tab, select the -appropriate plan, and select **Update plan**. - -
-
- -
-
- -:::note -If upgrading from the Core (free) plan, you'll need to add your payment details. -::: diff --git a/developer-tools/dashboard/index.mdx b/developer-tools/dashboard/index.mdx deleted file mode 100644 index 3f5315dd7a6..00000000000 --- a/developer-tools/dashboard/index.mdx +++ /dev/null @@ -1,39 +0,0 @@ ---- -sidebar_label: Introduction -title: Infura dashboard introduction -description: Documentation for using the Infura dashboard -sidebar_position: 1 ---- - -import CardList from '@site/src/components/CardList' -import Banner from '@site/src/components/Banner' - -# Introduction - -The [Infura dashboard](https://app.infura.io/) is the central hub for managing your Infura service. -Use it to create and manage API keys, monitor usage, and access account and billing information. - -Don't have an API key? Sign up for a free plan and start using the Infura service! - -Select one of the cards below to learn more about using the dashboard. - - diff --git a/developer-tools/images/address-allowlist.png b/developer-tools/images/address-allowlist.png deleted file mode 100644 index 5363bb177bb..00000000000 Binary files a/developer-tools/images/address-allowlist.png and /dev/null differ diff --git a/developer-tools/images/allowlist-toggle.png b/developer-tools/images/allowlist-toggle.png deleted file mode 100644 index 9c485864876..00000000000 Binary files a/developer-tools/images/allowlist-toggle.png and /dev/null differ diff --git a/developer-tools/images/allowlist.png b/developer-tools/images/allowlist.png deleted file mode 100644 index 522c11e3959..00000000000 Binary files a/developer-tools/images/allowlist.png and /dev/null differ diff --git a/developer-tools/images/api-request-method.png b/developer-tools/images/api-request-method.png deleted file mode 100644 index e349b0753a7..00000000000 Binary files a/developer-tools/images/api-request-method.png and /dev/null differ diff --git a/developer-tools/images/backup_code.png b/developer-tools/images/backup_code.png deleted file mode 100644 index 0f39f4c12c3..00000000000 Binary files a/developer-tools/images/backup_code.png and /dev/null differ diff --git a/developer-tools/images/create_key.png b/developer-tools/images/create_key.png deleted file mode 100644 index dc3bc4e0d4d..00000000000 Binary files a/developer-tools/images/create_key.png and /dev/null differ diff --git a/developer-tools/images/credit-usage.png b/developer-tools/images/credit-usage.png deleted file mode 100644 index c925511faf7..00000000000 Binary files a/developer-tools/images/credit-usage.png and /dev/null differ diff --git a/developer-tools/images/disable2fa.png b/developer-tools/images/disable2fa.png deleted file mode 100644 index 5d52050b21b..00000000000 Binary files a/developer-tools/images/disable2fa.png and /dev/null differ diff --git a/developer-tools/images/enable2fa.png b/developer-tools/images/enable2fa.png deleted file mode 100644 index 9a9a80e22eb..00000000000 Binary files a/developer-tools/images/enable2fa.png and /dev/null differ diff --git a/developer-tools/images/enter_token.png b/developer-tools/images/enter_token.png deleted file mode 100644 index 651a3ec356d..00000000000 Binary files a/developer-tools/images/enter_token.png and /dev/null differ diff --git a/developer-tools/images/invite-member-button.png b/developer-tools/images/invite-member-button.png deleted file mode 100644 index 542ced8ff27..00000000000 Binary files a/developer-tools/images/invite-member-button.png and /dev/null differ diff --git a/developer-tools/images/jwt-token-settings.png b/developer-tools/images/jwt-token-settings.png deleted file mode 100644 index 28f167daf2f..00000000000 Binary files a/developer-tools/images/jwt-token-settings.png and /dev/null differ diff --git a/developer-tools/images/login2FA.png b/developer-tools/images/login2FA.png deleted file mode 100644 index 601b35e6242..00000000000 Binary files a/developer-tools/images/login2FA.png and /dev/null differ diff --git a/developer-tools/images/project_page.png b/developer-tools/images/project_page.png deleted file mode 100644 index e509a34dea7..00000000000 Binary files a/developer-tools/images/project_page.png and /dev/null differ diff --git a/developer-tools/images/rate-limiting-settings.png b/developer-tools/images/rate-limiting-settings.png deleted file mode 100644 index 30d0bc2494e..00000000000 Binary files a/developer-tools/images/rate-limiting-settings.png and /dev/null differ diff --git a/developer-tools/images/settings-tab.png b/developer-tools/images/settings-tab.png deleted file mode 100644 index ec397f79db8..00000000000 Binary files a/developer-tools/images/settings-tab.png and /dev/null differ diff --git a/developer-tools/images/status-page.png b/developer-tools/images/status-page.png deleted file mode 100644 index 5b2b5e05f95..00000000000 Binary files a/developer-tools/images/status-page.png and /dev/null differ diff --git a/developer-tools/images/update-plan.png b/developer-tools/images/update-plan.png deleted file mode 100644 index 97a2c28ede1..00000000000 Binary files a/developer-tools/images/update-plan.png and /dev/null differ diff --git a/developer-tools/images/update-role.png b/developer-tools/images/update-role.png deleted file mode 100644 index 8d8143239fb..00000000000 Binary files a/developer-tools/images/update-role.png and /dev/null differ diff --git a/developer-tools/images/user-agents.png b/developer-tools/images/user-agents.png deleted file mode 100644 index 870f3ec9b39..00000000000 Binary files a/developer-tools/images/user-agents.png and /dev/null differ diff --git a/docusaurus.config.js b/docusaurus.config.js index e1771b2cc1d..3e6086a4d62 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -292,32 +292,6 @@ const config = { }, }, ], - [ - '@docusaurus/plugin-content-docs', - { - id: 'services', - path: 'services', - routeBasePath: 'services', - editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/', - sidebarPath: require.resolve('./services-sidebar.js'), - breadcrumbs: false, - remarkPlugins, - rehypePlugins, - }, - ], - [ - '@docusaurus/plugin-content-docs', - { - id: 'dashboard', - path: 'developer-tools/dashboard', - routeBasePath: 'developer-tools/dashboard', - editUrl: 'https://github.com/MetaMask/metamask-docs/edit/main/', - sidebarPath: require.resolve('./dashboard-sidebar.js'), - breadcrumbs: false, - remarkPlugins, - rehypePlugins, - }, - ], [ '@docusaurus/plugin-content-docs', { @@ -402,7 +376,7 @@ const config = { { name: 'keywords', content: - 'MetaMask, Embedded Wallets, Quickstart, Web3 Development, SDK, MetaMask Connect, Wallet Integration, API, Dapp Development, Blockchain Development, Ethereum Development, Smart Contract, Account Abstraction, Snaps, Crypto Wallet, DeFi, NFT, Infura, Services, Dashboard', + 'MetaMask, Embedded Wallets, Quickstart, Web3 Development, SDK, MetaMask Connect, Wallet Integration, API, Dapp Development, Blockchain Development, Ethereum Development, Smart Contract, Account Abstraction, Snaps, Crypto Wallet, DeFi, NFT, Infura', }, // Twitter-specific meta tags { @@ -541,12 +515,8 @@ const config = { to: '/snaps', }, { - label: 'Services', - to: '/services', - }, - { - label: 'Developer dashboard', - to: '/developer-tools/dashboard', + label: 'Infura', + href: 'https://docs.infura.io/', }, ], }, diff --git a/gator_versioned_docs/version-1.0.0/guides/configure-toolkit.md b/gator_versioned_docs/version-1.0.0/guides/configure-toolkit.md index 659c67ba21c..1f37d479e7d 100644 --- a/gator_versioned_docs/version-1.0.0/guides/configure-toolkit.md +++ b/gator_versioned_docs/version-1.0.0/guides/configure-toolkit.md @@ -46,7 +46,7 @@ const bundlerClient = createBundlerClient({ ``` Replace the bundler and paymaster URLs with your bundler and paymaster endpoints. -For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](/services), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). +For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](https://docs.infura.io/), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). :::note Providing a paymaster is optional when configuring your bundler client. However, if you choose not to use a paymaster, the smart contract account must have enough funds to pay gas fees. diff --git a/gator_versioned_docs/version-1.1.0/guides/configure-toolkit.md b/gator_versioned_docs/version-1.1.0/guides/configure-toolkit.md index 659c67ba21c..1f37d479e7d 100644 --- a/gator_versioned_docs/version-1.1.0/guides/configure-toolkit.md +++ b/gator_versioned_docs/version-1.1.0/guides/configure-toolkit.md @@ -46,7 +46,7 @@ const bundlerClient = createBundlerClient({ ``` Replace the bundler and paymaster URLs with your bundler and paymaster endpoints. -For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](/services), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). +For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](https://docs.infura.io/), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). :::note Providing a paymaster is optional when configuring your bundler client. However, if you choose not to use a paymaster, the smart contract account must have enough funds to pay gas fees. diff --git a/gator_versioned_docs/version-1.2.0/guides/configure-toolkit.md b/gator_versioned_docs/version-1.2.0/guides/configure-toolkit.md index f7e0b6dbc5a..0a5302bf176 100644 --- a/gator_versioned_docs/version-1.2.0/guides/configure-toolkit.md +++ b/gator_versioned_docs/version-1.2.0/guides/configure-toolkit.md @@ -48,7 +48,7 @@ const bundlerClient = createBundlerClient({ ``` Replace the bundler and paymaster URLs with your bundler and paymaster endpoints. -For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](/services), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). +For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](https://docs.infura.io/), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). :::note Providing a paymaster is optional when configuring your bundler client. However, if you choose not to use a paymaster, the smart account must have enough funds to pay gas fees. diff --git a/gator_versioned_docs/version-1.5.0/guides/configure-toolkit.md b/gator_versioned_docs/version-1.5.0/guides/configure-toolkit.md index f7e0b6dbc5a..0a5302bf176 100644 --- a/gator_versioned_docs/version-1.5.0/guides/configure-toolkit.md +++ b/gator_versioned_docs/version-1.5.0/guides/configure-toolkit.md @@ -48,7 +48,7 @@ const bundlerClient = createBundlerClient({ ``` Replace the bundler and paymaster URLs with your bundler and paymaster endpoints. -For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](/services), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). +For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](https://docs.infura.io/), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). :::note Providing a paymaster is optional when configuring your bundler client. However, if you choose not to use a paymaster, the smart account must have enough funds to pay gas fees. diff --git a/gator_versioned_docs/version-1.6.0/guides/configure-toolkit.md b/gator_versioned_docs/version-1.6.0/guides/configure-toolkit.md index f7e0b6dbc5a..0a5302bf176 100644 --- a/gator_versioned_docs/version-1.6.0/guides/configure-toolkit.md +++ b/gator_versioned_docs/version-1.6.0/guides/configure-toolkit.md @@ -48,7 +48,7 @@ const bundlerClient = createBundlerClient({ ``` Replace the bundler and paymaster URLs with your bundler and paymaster endpoints. -For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](/services), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). +For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](https://docs.infura.io/), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). :::note Providing a paymaster is optional when configuring your bundler client. However, if you choose not to use a paymaster, the smart account must have enough funds to pay gas fees. diff --git a/metamask-connect/evm/guides/best-practices/run-devnet.md b/metamask-connect/evm/guides/best-practices/run-devnet.md index 4eaa611f759..2e03b55447c 100644 --- a/metamask-connect/evm/guides/best-practices/run-devnet.md +++ b/metamask-connect/evm/guides/best-practices/run-devnet.md @@ -52,7 +52,7 @@ Follow these steps to connect MetaMask to Hardhat Network. :::tip Alternatively, to prevent committing your seed phrase, we recommend adding your seed phrase to a - [`.env` file](/services/how-to/javascript-dotenv) and using the + [`.env` file](https://docs.infura.io/how-to/javascript-dotenv) and using the `process.env` global variable in `hardhat.config.js`. ::: @@ -76,7 +76,7 @@ Follow these steps to connect MetaMask to Hardhat Network. Hardhat automatically gives each of your first 20 accounts 10000 test ether (you can modify these numbers in the [`accounts`](https://hardhat.org/hardhat-network/docs/reference#accounts) - configuration), to quickly start development. + configuration), to start development faster. 4. Run `npx hardhat node` to run Hardhat Network and expose a JSON-RPC interface. @@ -99,7 +99,7 @@ Follow these steps to connect MetaMask to Hardhat Network. ## Reset your local nonce calculation -If you restart your development network, you can accidentally confuse MetaMask +If you restart your development network, you can confuse MetaMask because it calculates the next nonce based on both the network state _and_ the known sent transactions. diff --git a/metamask-connect/evm/quickstart/javascript.md b/metamask-connect/evm/quickstart/javascript.md index 69fe4872b41..6843f10ad6e 100644 --- a/metamask-connect/evm/quickstart/javascript.md +++ b/metamask-connect/evm/quickstart/javascript.md @@ -40,7 +40,7 @@ Install `@metamask/connect-evm`, initialize an EVM client, and connect to the Me - [Node.js](https://nodejs.org/) version 19 or later installed. - A package manager installed, such as [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), [Yarn](https://yarnpkg.com/), [pnpm](https://pnpm.io/installation), or [bun](https://bun.sh/). - [MetaMask](https://metamask.io/) installed in your browser or on mobile. -- An [Infura API key](/developer-tools/dashboard/get-started/create-api) from the Infura dashboard. +- An [Infura API key](https://docs.infura.io/dashboard/get-started/create-api) from the [Infura dashboard](https://app.infura.io). - -- Chainstack ([Terms of Service](https://chainstack.com/tos/), [Privacy Policy](https://chainstack.com/privacy/)) -- Infstones ([Privacy Policy](https://infstones.com/terms/privacy-notice)) -- Liquify ([Privacy Policy](https://www.liquify.com/Liquify_RPC_PP.pdf)) -- Validation Cloud ([Terms of Use](https://www.validationcloud.io/terms), [Privacy Policy](https://www.validationcloud.io/privacy)) - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index 3181b6172f2..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 19553e5f9ec..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_call-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 5b9b8da08fe..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 4f229192acd..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 1e13797a546..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 5292c0fb83d..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_gasPrice", "params": [], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index b8aeff4ee2c..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 6557a6faa1c..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 90a78207ef7..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index c1720ae28eb..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index ef3856e1c46..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index e11eb8f317c..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 52e0f6a1427..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index ec1849a02a8..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index 367d19b6366..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index d7a06c24f7a..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 51422f745df..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 7d79203295a..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index c7fd7f2ab88..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 83b6b4b5ebf..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index 4edf544a2cd..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index dddaa347f10..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx deleted file mode 100644 index 401de063cad..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx deleted file mode 100644 index 6662693801b..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index 07f1b2dec92..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index b20cf6def37..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_protocolversion-request.mdx deleted file mode 100644 index 649730b3769..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_protocolversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 54e7d5312b5..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_submitwork-request.mdx deleted file mode 100644 index d6b272a5ce4..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_submitwork-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index b2733d04ac5..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_net_listening-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index a05891485b4..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "net_listening", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0","method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_net_peercount-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 90bfd75b1c4..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_net_version-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 27e4d93fd7d..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index ffe65a884a0..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index 7ed5a152cd0..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/bnb-smart-chain/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index f7be5c374e2..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/bnb-smart-chain/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 0e3d44acb06..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/bnb-smart-chain/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index 0e53f832e57..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/bnb-smart-chain/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index cb674e9e2be..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/bnb-smart-chain/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/index.md b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/index.md deleted file mode 100644 index 616c248d1d6..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: BNB Smart Chain bundler methods -sidebar_label: Bundler methods -sidebar_key: bnb-smart-chain-bundler-methods -description: BNB Smart Chain bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on BNB Smart Chain mainnet -and testnet: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index 1107ae66105..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/bnb-smart-chain/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index 9b2eccac784..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/bnb-smart-chain/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index 91ab1fc3ef4..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/bnb-smart-chain/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_accounts.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index 7a3926ba840..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_accounts -sidebar_label: eth_accounts -description: Returns a list of BNB Smart Chain accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_blocknumber.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index de379588abd..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest BNB Smart Chain block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_call.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_call.mdx deleted file mode 100644 index d55be57d2fe..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_call -sidebar_label: eth_call -description: Executes a BNB Smart Chain call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_chainid.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index efb40406cec..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_chainId -sidebar_label: eth_chainId -description: Returns the BNB Smart Chain chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_estimategas.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 9d7012c631e..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a BNB Smart Chain transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gasprice.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 9068ad2404c..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current BNB Smart Chain gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getbalance.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index b1c0e528f62..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a BNB Smart Chain address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index f0e03a8e1b4..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns BNB Smart Chain block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 336d1771de7..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns BNB Smart Chain block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index d12e2f96c2e..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a block on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index fad9e57acb4..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index e9f1c0ca256..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getcode.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 4ee4c442104..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getlogs.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 3648204f3b6..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getproof.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 2fd34e745e5..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getstorageat.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 46e4ef019c4..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: BNB Smart Chain eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -:::info Binance Smart Chain archive support - -- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. -- **Testnet:** Only near head requests are supported; archive requests are not available. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 0e77ef81a35..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 181333dea2a..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 0c0cf3ce0de..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: BNB Smart Chain eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# eth_getTransactionByHash - - - -:::info Binance Smart Chain archive support - -- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. -- **Testnet:** Only near head requests are supported; archive requests are not available. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 59d06fa4850..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index ebf5570acb3..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: BNB Smart Chain eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -:::info Binance Smart Chain archive support - -- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. -- **Testnet:** Only near head requests are supported; archive requests are not available. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index 858f4c9abcc..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index 04754df453c..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex -description: Gets uncle by block number on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 4613ccb1d0f..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash -description: Gets uncle count by block hash on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index 0dd25d6261a..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index 25498ce88d7..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_protocolversion.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index 34c02aa827c..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_protocolVersion -sidebar_label: eth_protocolVersion -description: Returns protocol version on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from './_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 70dde687844..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_submitwork.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_submitwork.mdx deleted file mode 100644 index 6cbf9ac4892..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_submitwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_submitWork -sidebar_label: eth_submitWork -description: Submits PoW solution on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_submitwork-description.mdx' - -# `eth_submitWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_submitwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_submitwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_submitwork-example.mdx' - - - -### Request - -import Request from './_eth_submitwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_submitwork-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/eth_syncing.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 744d0f229e7..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx deleted file mode 100644 index 24c60f99285..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_getFilterChanges", "params":["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_getFilterChanges", "params":["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx deleted file mode 100644 index e079a2eca8e..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params":["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params":["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx deleted file mode 100644 index 4fac84d95c4..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params":[], "id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params":[], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx deleted file mode 100644 index 1afb83f4f81..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc" : "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc" :"2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-description.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-description.mdx deleted file mode 100644 index 07b49ee828d..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-description.mdx +++ /dev/null @@ -1,2 +0,0 @@ -Creates a filter to retrieve new pending transaction hashes. To poll for new pending transactions, use -[`eth_getFilterChanges`](./eth_getfilterchanges.mdx). diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-example.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-example.mdx deleted file mode 100644 index 5300ca6f76e..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-example.mdx +++ /dev/null @@ -1 +0,0 @@ -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-parameters.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-parameters.mdx deleted file mode 100644 index b0047fa49f0..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-parameters.mdx +++ /dev/null @@ -1 +0,0 @@ -None diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-request.mdx deleted file mode 100644 index f8128ad6388..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "newPendingTransactionFilter", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"newPendingTransactionFilter", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-response.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-response.mdx deleted file mode 100644 index ef039b98467..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-response.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x443d6a77c4964707a8554c92f7e4debd" -} -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-returns.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-returns.mdx deleted file mode 100644 index 4e14882e19e..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_newpendingtransactionfilter-returns.mdx +++ /dev/null @@ -1 +0,0 @@ -A filter ID that can be used to call [`eth_getFilterChanges`](./eth_getfilterchanges.mdx). diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx deleted file mode 100644 index d600371bcd6..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"],"id":1}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"],"id":1}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx deleted file mode 100644 index 8c329b2c94b..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getFilterChanges -sidebar_label: eth_getFilterChanges -description: Returns BNB Smart Chain logs since last poll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx' - -# `eth_getFilterChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-example.mdx' - - - -### Request - -import Request from './_eth_getfilterchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx deleted file mode 100644 index 80ac5236fc6..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_getFilterLogs -sidebar_label: eth_getFilterLogs -description: Returns logs by filter ID on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx' - -# `eth_getFilterLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-example.mdx' - - - -### Request - -import Request from './_eth_getfilterlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newblockfilter.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newblockfilter.mdx deleted file mode 100644 index ea409846a61..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newblockfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_newBlockFilter -sidebar_label: eth_newBlockFilter -description: Creates filter to notify of new blocks on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx' - -# `eth_newBlockFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newblockfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newblockfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newblockfilter-example.mdx' - - - -### Request - -import Request from './_eth_newblockfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newblockfilter-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newfilter.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newfilter.mdx deleted file mode 100644 index 8cb2cba9a4f..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_newFilter -sidebar_label: eth_newFilter -description: Creates filter to notify of state changes on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx' - -# `eth_newFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newfilter-example.mdx' - - - -### Request - -import Request from './_eth_newfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newfilter-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newpendingtransactionfilter.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newpendingtransactionfilter.mdx deleted file mode 100644 index 4ca7744beb2..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_newpendingtransactionfilter.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: BNB Smart Chain eth_newPendingTransactionFilter -sidebar_label: eth_newPendingTransactionFilter ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from './_eth_newpendingtransactionfilter-description.mdx' - -# `eth_newPendingTransactionFilter` - - - -## Parameters - -import Params from './_eth_newpendingtransactionfilter-parameters.mdx' - - - -## Returns - -import Returns from './_eth_newpendingtransactionfilter-returns.mdx' - - - -## Example - -import Example from './_eth_newpendingtransactionfilter-example.mdx' - - - -### Request - -import Request from './_eth_newpendingtransactionfilter-request.mdx' - - - -### Response - -import Response from './_eth_newpendingtransactionfilter-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx deleted file mode 100644 index 521278ceb6e..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_uninstallFilter -sidebar_label: eth_uninstallFilter -description: Uninstalls filter on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx' - -# `eth_uninstallFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-example.mdx' - - - -### Request - -import Request from './_eth_uninstallfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/index.md b/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/index.md deleted file mode 100644 index 5ac5762cb5a..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/filter-methods/index.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: BNB Smart Chain filter methods -sidebar_label: Filter methods -sidebar_key: bnb-smart-chain-filter-methods -description: BNB Smart Chain filter methods ---- - -# BNB Smart Chain filter methods - -Infura supports the following filter methods over both HTTP and WebSocket. In both cases, the filter IDs can be shared by any connection using the same API key. - -Filters that are not polled using [`eth_getFilterChanges`](./eth_getfilterchanges.mdx) will be automatically expired after fifteen minutes of inactivity. diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/index.md b/services/reference/bnb-smart-chain/json-rpc-methods/index.md deleted file mode 100644 index 8726aaa7548..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/index.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -sidebar_label: JSON-RPC API -sidebar_key: bnb-smart-chain-json-rpc-api ---- - -# BNB Smart Chain JSON-RPC API - -The standard Ethereum methods documented here are supported by Infura on the BNB Smart Chain (BSC) network. - -WebSockets are also supported on the BSC network and can be used to set up bidirectional stateful [subscriptions](subscription-methods/index.md). - -:::info Binance Smart Chain archive support - -- **Mainnet:** Near head requests (latest 128 blocks) and archive requests are supported. -- **Testnet:** Only near head requests are supported; archive requests are not available. - -::: diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/net_listening.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/net_listening.mdx deleted file mode 100644 index 87d52172e17..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/net_listening.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain net_listening -sidebar_label: net_listening -description: Indicates whether client listening for network connections on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_listening-description.mdx' - -# `net_listening` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_listening-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_listening-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_listening-example.mdx' - - - -### Request - -import Request from './_net_listening-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_listening-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/net_peercount.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 7e1eb545bec..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/net_version.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/net_version.mdx deleted file mode 100644 index 0f14b8a731e..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain net_version -sidebar_label: net_version -description: Returns network ID on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index 9a7478d652f..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,19 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics":["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index 762641afa83..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,13 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://bsc-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index a11113324f9..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_subscribe -sidebar_label: eth_subscribe -description: Creates new subscription on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters-no-pending.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response-no-pending.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index b7680adceea..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/index.md b/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index 919e4498589..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: BNB Smart Chain subscription methods -sidebar_label: Subscription methods -sidebar_key: bnb-smart-chain-subscription-methods -description: BNB Smart Chain subscription methods ---- - -# BNB Smart Chain subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](./eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](./eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/bnb-smart-chain/json-rpc-methods/web3_clientversion.mdx b/services/reference/bnb-smart-chain/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index d40b8e3038a..00000000000 --- a/services/reference/bnb-smart-chain/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: BNB Smart Chain web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on BNB Smart Chain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/bnb-smart-chain/quickstart.md b/services/reference/bnb-smart-chain/quickstart.md deleted file mode 100644 index 38d28dc710d..00000000000 --- a/services/reference/bnb-smart-chain/quickstart.md +++ /dev/null @@ -1,201 +0,0 @@ ---- -description: BNB Smart Chain quickstart guide -sidebar_label: Quickstart -sidebar_position: 2 ---- - -import Banner from "@site/src/components/Banner" - -# BNB Smart Chain quickstart - -This quickstart guide will help you set up and make calls on the BNB Smart Chain network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the BNB Smart Chain network! - - -## Prerequisites - -- Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api/) with the BNB Smart Chain network enabled. - -## Make calls - -### curl - -Run the following command in your terminal. Replace `` with your actual Infura API key. - -```bash -curl https://bsc-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the Node Fetch package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://bsc-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the Axios package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://bsc-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the ethers package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://bsc-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://bsc-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the BNB Smart Chain network, you can explore more functionalities and APIs. Here are some suggestions: - -- **Explore other BNB Smart Chain APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/celo/index.md b/services/reference/celo/index.md deleted file mode 100644 index 946b548f6f5..00000000000 --- a/services/reference/celo/index.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -description: Celo network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Celo - -:::note Decentralized Infrastructure Network (DIN) - -Celo is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -::: - -Celo is an Ethereum layer-2 network designed for fast, low-cost payments. It offers low fees and fast finality while letting you reuse familiar Ethereum tools and contracts with little or no change. - -:::info See also - -- The [official Celo documentation](https://docs.celo.org/) for more information. - -::: - -Select an option below to get started with the Celo network. - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API -request. This means that Infura's partner service provider can service your request, but not store the -content of your request. - -The following partners provide access to the Celo network: - - - -- BlockPI ([Terms of Use](https://blockpi.io/terms-of-use), [Privacy Policy](https://blockpi.io/privacy-policy)) -- 0xFury ([Privacy policy](https://0xfury.com/privacy)) - diff --git a/services/reference/celo/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/celo/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index de2e85c8617..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/celo/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index b943e439c57..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_call-request.mdx b/services/reference/celo/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index d4c53d88a3b..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/celo/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 87556af039a..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/celo/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 465509eb575..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/celo/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index fb227c0f1a9..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index fb9be66a35d..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 42488599595..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 590ee63042f..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index c383a98a723..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 5e883bd1280..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index cd51ad2f1b5..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id":1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id":1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 9433375b2d8..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index b39c3c115a3..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics": ["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics": ["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index aef34fd7d44..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/celo/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index d15c50fcb57..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/celo/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 5e0357bc337..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/celo/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index cee8ab90510..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id":1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id":1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/celo/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index 9baa76de4b0..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/celo/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 0310e16d666..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/celo/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index a1a1e57412d..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/celo/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index ef9e494f85f..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/celo/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 525de0d33a8..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/celo/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index 174b6044c09..00000000000 --- a/services/reference/celo/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_net_listening-request.mdx b/services/reference/celo/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index e732c5cb3f9..00000000000 --- a/services/reference/celo/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_net_peercount-request.mdx b/services/reference/celo/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 164d299b4b5..00000000000 --- a/services/reference/celo/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_net_version-request.mdx b/services/reference/celo/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 33ea1801dbf..00000000000 --- a/services/reference/celo/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/celo/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 7fca2e7151c..00000000000 --- a/services/reference/celo/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/celo/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index 54818d656ce..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/celo/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/celo/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index a0fc06e96ae..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/celo/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/celo/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 07e8d796735..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/celo/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/celo/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index e8039371dd5..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/celo/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/celo/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index c66c45ac689..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/celo/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/bundler/index.md b/services/reference/celo/json-rpc-methods/bundler/index.md deleted file mode 100644 index eafa4348a22..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Celo bundler methods -sidebar_label: Bundler methods -sidebar_key: celo-bundler-methods -description: Celo bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Celo mainnet -and Alfajores: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/celo/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/celo/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index 350ae4f0ee4..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/celo/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/celo/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index 18385bd00ad..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/celo/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/celo/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index fd76c0a9d60..00000000000 --- a/services/reference/celo/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/celo/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_accounts.mdx b/services/reference/celo/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index 7d032984d37..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Celo accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_blocknumber.mdx b/services/reference/celo/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index b31f80d50b5..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Celo block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_call.mdx b/services/reference/celo/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 76a1a06b8a1..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_call -sidebar_label: eth_call -description: Executes a Celo call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_chainid.mdx b/services/reference/celo/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index ca113d38439..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_chainId -sidebar_label: eth_chainId -description: Returns the Celo chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_estimategas.mdx b/services/reference/celo/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index fa05fed4f93..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Celo transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_gasprice.mdx b/services/reference/celo/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index d073895c965..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Celo gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getbalance.mdx b/services/reference/celo/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 8081a7744f9..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Celo address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/celo/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index ca9b269c5e6..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Celo block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/celo/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 55ac1288396..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Celo block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/celo/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index f2b5f02509d..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a block on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/celo/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index a747e121818..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/celo/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 71276588911..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getcode.mdx b/services/reference/celo/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index dd5eb065201..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getlogs.mdx b/services/reference/celo/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index c248900f946..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getproof.mdx b/services/reference/celo/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 4f9a31d4f3d..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_getstorageat.mdx b/services/reference/celo/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 186900764eb..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/celo/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index c3e62514c9f..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/celo/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index b8e9dab7ade..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/celo/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 8e1752415d5..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/celo/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 458a69e7c27..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/celo/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index affb212071a..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/celo/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index 5066c2169e5..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/celo/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 07789cf1b1c..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/eth_syncing.mdx b/services/reference/celo/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 0673a18f963..00000000000 --- a/services/reference/celo/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx b/services/reference/celo/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx deleted file mode 100644 index 5d537246608..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx b/services/reference/celo/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx deleted file mode 100644 index 5abc09f8c00..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx b/services/reference/celo/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx deleted file mode 100644 index e36cb69e262..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx b/services/reference/celo/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx deleted file mode 100644 index 9ed85ca2530..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx b/services/reference/celo/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx deleted file mode 100644 index 6308d1939be..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx b/services/reference/celo/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx deleted file mode 100644 index 3c9bad7a50b..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getFilterChanges -sidebar_label: eth_getFilterChanges -description: Returns Celo logs since last poll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx' - -# `eth_getFilterChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-example.mdx' - - - -### Request - -import Request from './_eth_getfilterchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx b/services/reference/celo/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx deleted file mode 100644 index a76af5a6ba9..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_getFilterLogs -sidebar_label: eth_getFilterLogs -description: Returns logs by filter ID on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx' - -# `eth_getFilterLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-example.mdx' - - - -### Request - -import Request from './_eth_getfilterlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/eth_newblockfilter.mdx b/services/reference/celo/json-rpc-methods/filter-methods/eth_newblockfilter.mdx deleted file mode 100644 index d6c69cca62a..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/eth_newblockfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_newBlockFilter -sidebar_label: eth_newBlockFilter -description: Creates filter to notify of new blocks on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx' - -# `eth_newBlockFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newblockfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newblockfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newblockfilter-example.mdx' - - - -### Request - -import Request from './_eth_newblockfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newblockfilter-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/eth_newfilter.mdx b/services/reference/celo/json-rpc-methods/filter-methods/eth_newfilter.mdx deleted file mode 100644 index 4eee137387d..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/eth_newfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_newFilter -sidebar_label: eth_newFilter -description: Creates filter to notify of state changes on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx' - -# `eth_newFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newfilter-example.mdx' - - - -### Request - -import Request from './_eth_newfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newfilter-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx b/services/reference/celo/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx deleted file mode 100644 index a636611f49e..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_uninstallFilter -sidebar_label: eth_uninstallFilter -description: Uninstalls filter on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx' - -# `eth_uninstallFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-example.mdx' - - - -### Request - -import Request from './_eth_uninstallfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/filter-methods/index.md b/services/reference/celo/json-rpc-methods/filter-methods/index.md deleted file mode 100644 index 771610c9419..00000000000 --- a/services/reference/celo/json-rpc-methods/filter-methods/index.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Celo filter methods -sidebar_label: Filter methods -sidebar_key: celo-filter-methods -description: Celo filter methods ---- - -# Celo filter methods - -Infura supports the following filter methods over both HTTP and WebSocket. In both cases, the filter IDs -can be shared by any connection using the same API key. - -- [`eth_getFilterChanges`](eth_getfilterchanges.mdx) -- [`eth_getFilterLogs`](eth_getfilterlogs.mdx) -- [`eth_newBlockFilter`](eth_newblockfilter.mdx) -- [`eth_newFilter`](eth_newfilter.mdx) -- [`eth_uninstallFilter`](eth_uninstallfilter.mdx) - -Filters that are not polled using [`eth_getFilterChanges`](eth_getfilterchanges.mdx) automatically -expires after fifteen minutes of inactivity. diff --git a/services/reference/celo/json-rpc-methods/index.md b/services/reference/celo/json-rpc-methods/index.md deleted file mode 100644 index 9d1f041ab23..00000000000 --- a/services/reference/celo/json-rpc-methods/index.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -sidebar_label: JSON-RPC API -sidebar_key: celo-json-rpc-api ---- - -# Celo JSON-RPC API - -Celo supports a subset [Ethereum JSON-RPC methods](../../ethereum/json-rpc-methods/index.md). WebSocket calls are not supported when using the Celo endpoints. - -The following methods are not supported with Celo: - -- `eth_feeHistory` -- `eth_getUncleCountByBlockHash` -- `eth_getUncleCountByBlockNumber` -- `eth_getUncleByBlockHashAndIndex` -- `eth_getUncleByBlockNumberAndIndex` - -The following methods are supported by Celo, but not supported by Infura using a Celo endpoint: - -- `eth_getFilterChanges` -- `eth_getFilterLogs` -- `eth_newFilter` -- `eth_newBlockFilter` -- `eth_uninstallFilter` diff --git a/services/reference/celo/json-rpc-methods/net_peercount.mdx b/services/reference/celo/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 2110d3bcf16..00000000000 --- a/services/reference/celo/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/net_version.mdx b/services/reference/celo/json-rpc-methods/net_version.mdx deleted file mode 100644 index b7f5bf119c8..00000000000 --- a/services/reference/celo/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo net_version -sidebar_label: net_version -description: Returns network ID on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/celo/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index 83f3de347a0..00000000000 --- a/services/reference/celo/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,27 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics": ["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/celo/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index debe1209228..00000000000 --- a/services/reference/celo/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,12 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://celo-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - diff --git a/services/reference/celo/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/celo/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index cba466b657c..00000000000 --- a/services/reference/celo/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_subscribe -sidebar_label: eth_subscribe -description: Creates new subscription on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters-no-pending.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response-no-pending.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/celo/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index 708982d60c1..00000000000 --- a/services/reference/celo/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/celo/json-rpc-methods/subscription-methods/index.md b/services/reference/celo/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index ccacc1e9ac4..00000000000 --- a/services/reference/celo/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: Celo subscription methods -sidebar_label: Subscription methods -sidebar_key: celo-subscription-methods -description: Celo subscription methods ---- - -# Celo subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](./eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](./eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/celo/json-rpc-methods/web3_clientversion.mdx b/services/reference/celo/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index d90b550d466..00000000000 --- a/services/reference/celo/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Celo web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Celo. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/celo/quickstart.md b/services/reference/celo/quickstart.md deleted file mode 100644 index 8bceabc0321..00000000000 --- a/services/reference/celo/quickstart.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -description: Celo quickstart guide. -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Celo quickstart - -This quickstart guide will help you set up and make calls on the Celo network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Celo network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Celo network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://celo-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://celo-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://celo-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://celo-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://celo-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Celo network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Celo APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/ethereum/index.md b/services/reference/ethereum/index.md deleted file mode 100644 index 917c8ad742e..00000000000 --- a/services/reference/ethereum/index.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -description: Ethereum network information. ---- - -import CardList from '@site/src/components/CardList' - -# Ethereum - -Ethereum is a decentralized, open-source blockchain network with [Turing-complete](https://en.wikipedia.org/wiki/Turing_completeness) -smart contract functionality. Ether (ETH) is the native cryptocurrency. - -Use Ethereum to build apps and organizations, hold assets, transact, and communicate without being controlled by a -central authority. Ethereum uses the [Proof of Stake (PoS)](https://en.wikipedia.org/wiki/Proof_of_stake) consensus mechanism. - -Infura provides access to the [Ethereum JSON-RPC API](json-rpc-methods/index.md) method library that interacts with the -Ethereum blockchain. Methods include functionality for reading and writing data to the network, and executing smart contracts. - -:::info See also - -The [official Ethereum documentation](https://ethereum.org/en/) for more information. - -::: - - diff --git a/services/reference/ethereum/json-rpc-methods/_eth_feehistory-response.mdx b/services/reference/ethereum/json-rpc-methods/_eth_feehistory-response.mdx deleted file mode 100644 index 4c618b5e91c..00000000000 --- a/services/reference/ethereum/json-rpc-methods/_eth_feehistory-response.mdx +++ /dev/null @@ -1,70 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```js -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "baseFeePerBlobGas": [ - "0xe3f5193b", - "0xf6942037", - "0xdb2e5553", - "0xc2d3d9e8", - "0xdb2e5553", - "0xed15d41e" - ], - "baseFeePerGas": [ - "0x279c70a9b", - "0x2a63ee068", - "0x2a01a5449", - "0x299fc09af", - "0x29aa0b0c5", - "0x28b21aaec" - ], - "blobGasUsedRatio": [ - 0.8333333333333334, - 0, - 0, - 1, - 0.8333333333333334 - ], - "gasUsedRatio": [ - 0.7806543666666667, - 0.46377263333333335, - 0.46358696666666666, - 0.503863, - 0.40701746666666666 - ], - "oldestBlock": "0x14535f8", - "reward": [ - [ - "0x5f5e100", - "0x34142698" - ], - [ - "0x5f5e100", - "0x1f619e76" - ], - [ - "0x5f5e100", - "0x39d10680" - ], - [ - "0x6824280", - "0x214c9a15" - ], - [ - "0x4b571c0", - "0x1ac123d6" - ] - ] - } -} -``` - - - diff --git a/services/reference/ethereum/json-rpc-methods/_eth_feehistory-returns.mdx b/services/reference/ethereum/json-rpc-methods/_eth_feehistory-returns.mdx deleted file mode 100644 index 99d6f4435de..00000000000 --- a/services/reference/ethereum/json-rpc-methods/_eth_feehistory-returns.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `oldestBlock`: Lowest number block of the returned range expressed as a hexadecimal number. -- `baseFeePerBlobGas`: Array of base fees per blob gas. Returns zeroes for blocks created before [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844). -- `blobGasUsedRatio`: Array of blob gas used ratios. These are calculated as the ratio of `blobGasUsed` and the max blob gas per block. -- `baseFeePerGas`: An array of block base fees per gas, including an extra block value. The extra value is the next block after the newest block in the returned range. Returns zeroes for blocks created before [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559). -- `gasUsedRatio`: An array of block gas used ratios. These are calculated as the ratio of `gasUsed` and `gasLimit`. -- `reward`: An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty. diff --git a/services/reference/ethereum/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/ethereum/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index a47c29860ae..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/ethereum/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index dfeac287035..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/ethereum/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index eca06f85075..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/ethereum/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index e77237cad4e..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/ethereum/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index d2d3843b33c..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/bundler/index.md b/services/reference/ethereum/json-rpc-methods/bundler/index.md deleted file mode 100644 index 4c2b56e631a..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Ethereum bundler methods -sidebar_label: Bundler methods -sidebar_key: ethereum-bundler-methods -description: Ethereum bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Ethereum Mainnet -and Sepolia: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/ethereum/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/ethereum/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index afa6b653e29..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/ethereum/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index 43bf16ee5e1..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/ethereum/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index 6ac799240b6..00000000000 --- a/services/reference/ethereum/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_accounts.mdx b/services/reference/ethereum/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index 74f25d0d0b2..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Ethereum eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Ethereum accounts. ---- - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_blobbasefee.mdx b/services/reference/ethereum/json-rpc-methods/eth_blobbasefee.mdx deleted file mode 100644 index 0ecca619a05..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_blobbasefee.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_blobBaseFee -sidebar_label: eth_blobBaseFee -description: Returns the expected blob base fee for the next Ethereum block. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blobbasefee-description.mdx' - -# `eth_blobBaseFee` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blobbasefee-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blobbasefee-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blobbasefee-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_blobbasefee-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blobbasefee-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_blocknumber.mdx b/services/reference/ethereum/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index d6588ab3d9c..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Ethereum block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_call.mdx b/services/reference/ethereum/json-rpc-methods/eth_call.mdx deleted file mode 100644 index df8b26ebb97..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_call -sidebar_label: eth_call -description: Executes a Ethereum call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_chainid.mdx b/services/reference/ethereum/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 4acb0e70a55..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_chainId -sidebar_label: eth_chainId -description: Returns the Ethereum chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_createaccesslist.mdx b/services/reference/ethereum/json-rpc-methods/eth_createaccesslist.mdx deleted file mode 100644 index f44abbe991d..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_createaccesslist.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_createAccessList -sidebar_label: eth_createAccessList -description: Creates an access list to include in a Ethereum transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_createaccesslist-description.mdx' - -# `eth_createAccessList` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_createaccesslist-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_createaccesslist-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_createaccesslist-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_createaccesslist-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_createaccesslist-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_estimategas.mdx b/services/reference/ethereum/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 8a809b3c820..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Ethereum transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_feehistory.mdx b/services/reference/ethereum/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index 2a25fd47f36..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical Ethereum gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from './_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_feehistory-request.mdx' - - - -### Response - -import Response from './_eth_feehistory-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_gasprice.mdx b/services/reference/ethereum/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 9032d8d7434..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Ethereum gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getbalance.mdx b/services/reference/ethereum/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 891dfd96c8f..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Ethereum address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/ethereum/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index a1473eeece6..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Ethereum block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/ethereum/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index d88f5586726..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Ethereum block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/ethereum/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index 98fa6764c23..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a block on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/ethereum/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 45ea18e040a..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/ethereum/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index eddce55e792..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getcode.mdx b/services/reference/ethereum/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 9264309b80b..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getlogs.mdx b/services/reference/ethereum/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index a2dfc09606c..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getproof.mdx b/services/reference/ethereum/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index e9c65cafbfb..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getstorageat.mdx b/services/reference/ethereum/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 51ca8888f21..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index b44c2931890..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response-yparity.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 0bba806ee0e..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response-yparity.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index dde06d0e2e5..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: Ethereum eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -:::tip MEV protection -Maximal Extractable Value (MEV) protection is available for all Infura customers on Mainnet. -This means `r`, `s`, and `v` signature fields might return empty hex values (`0x0`) -while the transaction is pending on Mainnet. -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response-yparity.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/ethereum/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 55097178871..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/ethereum/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 6b7865b115a..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/ethereum/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index f87316b0430..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/ethereum/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index f5adcdec191..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex -description: Gets uncle by block number on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/ethereum/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 29f5fa2d7eb..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash -description: Gets uncle count by block hash on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/ethereum/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index 65f3dcdb7c3..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_getwork.mdx b/services/reference/ethereum/json-rpc-methods/eth_getwork.mdx deleted file mode 100644 index 990ec5665c3..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_getwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getWork -sidebar_label: eth_getWork -description: Return current block and seed hash on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getwork-description.mdx' - -# `eth_getWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getwork-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_getwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getwork-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_hashrate.mdx b/services/reference/ethereum/json-rpc-methods/eth_hashrate.mdx deleted file mode 100644 index d1f9ad538b4..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_hashrate.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_hashrate -sidebar_label: eth_hashrate -description: Return hashes per second on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_hashrate-description.mdx' - -# `eth_hashrate` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_hashrate-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_hashrate-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_hashrate-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_hashrate-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_hashrate-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/ethereum/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index e97cdce605d..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_mining.mdx b/services/reference/ethereum/json-rpc-methods/eth_mining.mdx deleted file mode 100644 index c9bd305e56e..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_mining.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_mining -sidebar_label: eth_mining -description: Indicates whether client is mining on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_mining-description.mdx' - -# `eth_mining` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_mining-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_mining-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_mining-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_mining-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_mining-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_protocolversion.mdx b/services/reference/ethereum/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index 973d232a1d3..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_protocolVersion -sidebar_label: eth_protocolVersion -description: Returns protocol version on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/ethereum/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index fcffe210b9c..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: Ethereum eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -:::tip MEV protection -Maximal Extractable Value (MEV) protection is available for all Infura customers on Mainnet. -This means `r`, `s`, and `v` signature fields might return empty hex values (`0x0`) -while the transaction is pending on Mainnet. -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_simulatev1.mdx b/services/reference/ethereum/json-rpc-methods/eth_simulatev1.mdx deleted file mode 100644 index 36880eabc47..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_simulatev1.mdx +++ /dev/null @@ -1,265 +0,0 @@ ---- -title: Ethereum eth_simulateV1 -sidebar_label: eth_simulateV1 -description: Simulate transactions across multiple blocks on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `eth_simulateV1` - -Simulates transactions across multiple blocks. Allows you to test transactions with custom state and -block parameters without submitting them to the network. - -:::info important -This method is only supported on Mainnet and Sepolia. - -A maximum of 16 block state calls can be simulated in a single request. This is determined by -assessing the `blockStateCalls` array of objects. -::: - -## Parameters - -- `BLOCK STATE CALL OBJECT`: - - `blockStateCalls`: _\[required]_ Array of block, state, and call objects: - - `blockOverrides`: _\[optional]_ Object to override block parameters: - - `baseFeePerGas`: (string) Hexadecimal value for the base fee per gas for the block. - - `blobBaseFee`: (string) Hexadecimal value for the base fee per unit of blob gas. - - `feeRecipient`: (string) Address of the fee recipient for the block proposal. - - `gasLimit`: (string) Hexadecimal value that represents the maximum amount of gas that transactions - are allowed to consume. - - `number`: (string) Hexadecimal block number. - - `prevRandao`: (string) The previous value of randomness, which is - used as a source of randomness for various protocol operations. - - `time`: (string) Hexadecimal value representing the Unix epoch time in seconds. - - `stateOverrides`: _\[optional]_ Object to override account states: - - `balance`: (string) Hexadecimal value representing the account balance. - - `nonce`: (string) Hexadecimal temporary nonce value for the call execution. - - `code`: (string) Bytecode to inject into the account. - - `state`: Object of key-value mappings to override all slots in the account storage - before executing the call. - - `stateDiff`: Object of key-value mappings to override individual slots in the account - storage before executing the call. - - `movePrecompileToAddress`: (string) Moves the precompile to the supplied address. - - `calls`: _\[required]_ Array of transaction call objects: - - `from`: _\[optional]_ 20 bytes - The address the transaction is sent from. - - `to`: _\[optional]_ 20 bytes - The address the transaction is directed to. - - `gas`: _\[optional]_ Hexadecimal value of the gas provided for the transaction execution. - - `gasPrice`: _\[optional]_ Hexadecimal value of the gas price used for each paid gas. - - `maxPriorityFeePerGas`: _\[optional]_ Maximum fee, in wei, the sender is willing to pay per gas above the base fee. - - `maxFeePerGas`: _\[optional]_ Maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. - - `value`: _\[optional]_ Hexadecimal value of the value sent with this transaction. - - `data`: _\[optional]_ Hash of the method signature and encoded parameters. See the - [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). - - `returnFullTransactionObjects`: _\[optional]_ Boolean value which when `true`, returns full transaction - objects, otherwise, just hashes are returned. The default is `false`. - - `traceTransfers`: _\[optional]_ Boolean value which when `true`, adds ETH transfers as ERC20 transfer - events to the logs, allowing you to trace value transfers. The default is `false`. - - `validation`: _\[optional]_ Boolean value which when `true`, does all the validation that a - normal EVM would do, except contract sender and signature checks. When `false`, `eth_simulateV1` behaves like `eth_call`. - The default is `false`. - - `blockParameter`: (string) [_optional_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - -## Returns - -An array of simulation result objects: - -- `baseFeePerGas`: Hexadecimal value for the base fee per gas for the block. -- `blobGasUsed`: Hexadecimal value for the amount of blob gas used. -- `calls`: Array of call results: - - `returnData`: Data returned for the call. - - `logs`: Array of logs generated during the call. - - `address`: Address of the contract that generated the log. - - `blockHash`: Hash of the block. - - `blockNumber`: Hexadecimal block number. - - `data`: Non-indexed log parameters. - - `logIndex`: Index of the log in the block. - - `removed`: Whether the log was removed due to chain reorganization. - - `topics`: Array of indexed log parameters. - - `transactionHash`: Hash of the transaction. - - `transactionIndex`: Index of the transaction in the block. - - `error`: Object containing error information: - - `message`: The error message. - - `code`: The error status code. - - `data`: Error-related information. - - `gasUsed`: Hexadecimal value representing the amount of gas used. - - `status`: Status indicating whether the transaction succeeded (`0x1`). `0x0` indicates that a transaction has failed. -- `difficulty`: A hexadecimal of the difficulty for this block. -- `excessBlobGas`: A hexadecimal of the excess blob gas. -- `extraData`: The "extra data" field of this block. -- `gasLimit`: Maximum gas allowed in this block. -- `gasUsed`: Total used gas by all transactions in this block. -- `hash`: Hash of the block. `Null` when the returned block is the pending block. -- `logsBloom`: The bloom filter for the logs of the block. `Null` when the returned block is the pending block. -- `miner`: Address of the beneficiary to whom the mining rewards were given. -- `mixHash`: Hexadecimal mix hash. -- `nonce`: Hash of the generated proof-of-work. `Null` when the returned block is the pending block. -- `number`: Block number. `Null` when the returned block is the pending block. -- `parentBeaconBlockRoot`: Parent beacon block root. -- `parentHash`: Hash of the parent block. -- `receiptsRoot`: The root of the receipts trie of the block. Also see [Tries in Ethereum](https://ethereum.org/en/developers/docs/data-structures-and-encoding/patricia-merkle-trie/#tries-in-ethereum). -- `sha3Uncles`: The SHA3 of the uncles data in the block. -- `size`: A hexadecimal of the size of this block in bytes. -- `stateRoot`: The root of the final state trie of the block. -- `timestamp`: The unix timestamp for when the block was collated. -- `totalDifficulty`: A hexadecimal of the total difficulty of the chain until this block. -- `transactions`: (Array) An array of transaction objects, or 32 bytes transaction hashes depending on the last given parameter. -- `transactionsRoot`: The root of the transaction trie of the block. -- `uncles`: (Array) An array of uncle hashes. -- `withdrawals`: (Array) Withdrawal objects. -- `withdrawalsRoot`: Withdrawals trie root. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "id": 1, - "method": "eth_simulateV1", - "params": [ - { - "blockStateCalls": [ - { - "blockOverrides": { - "baseFeePerGas": "0x9" - }, - "stateOverrides": { - "0xc000000000000000000000000000000000000000": { - "balance": "0x4a817c800" - } - }, - "calls": [ - { - "from": "0xc000000000000000000000000000000000000000", - "to": "0xc000000000000000000000000000000000000001", - "maxFeePerGas": "0xf", - "value": "0x1" - }, - { - "from": "0xc000000000000000000000000000000000000000", - "to": "0xc000000000000000000000000000000000000002", - "maxFeePerGas": "0xf", - "value": "0x1" - } - ] - } - ], - "validation": true, - "traceTransfers": true - }, - "latest" - ] - }' -``` - - - - -```bash -wscat -c wss://mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","id":1,"method":"eth_simulateV1","params":[{"blockStateCalls":[{"blockOverrides":{"baseFeePerGas":"0x9"},"stateOverrides":{"0xc000000000000000000000000000000000000000":{"balance":"0x4a817c800"}},"calls":[{"from":"0xc000000000000000000000000000000000000000","to":"0xc000000000000000000000000000000000000001","maxFeePerGas":"0xf","value":"0x1"},{"from":"0xc000000000000000000000000000000000000000","to":"0xc000000000000000000000000000000000000002","maxFeePerGas":"0xf","value":"0x1"}]}],"validation":true,"traceTransfers":true},"latest"]}' -``` - - - - -### Response - - - - -```JSON -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "baseFeePerGas": "0x9", - "blobGasUsed": "0x0", - "calls": [ - { - "gasUsed": "0x5208", - "logs": [ - { - "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", - "blockHash": "0xc98388385b0dbfc15ad5c6a0f4b19f7abd94efb4618ced05e3eb320ee30b1e7f", - "blockNumber": "0x1496e50", - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": "0x0", - "removed": false, - "topics": [ - "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", - "0x000000000000000000000000c000000000000000000000000000000000000000", - "0x000000000000000000000000c000000000000000000000000000000000000001" - ], - "transactionHash": "0xe7217784e0c3f7b35d39303b1165046e9b7e8af9b9cf80d5d5f96c3163de8f51", - "transactionIndex": "0x0" - } - ], - "returnData": "0x", - "status": "0x1" - }, - { - "gasUsed": "0x5208", - "logs": [ - { - "address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", - "blockHash": "0xc98388385b0dbfc15ad5c6a0f4b19f7abd94efb4618ced05e3eb320ee30b1e7f", - "blockNumber": "0x1496e50", - "data": "0x0000000000000000000000000000000000000000000000000000000000000001", - "logIndex": "0x1", - "removed": false, - "topics": [ - "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", - "0x000000000000000000000000c000000000000000000000000000000000000000", - "0x000000000000000000000000c000000000000000000000000000000000000002" - ], - "transactionHash": "0xf0182201606ec03701ba3a07d965fabdb4b7d06b424f226ea7ec3581802fc6fa", - "transactionIndex": "0x1" - } - ], - "returnData": "0x", - "status": "0x1" - } - ], - "difficulty": "0x0", - "excessBlobGas": "0x4920000", - "extraData": "0x", - "gasLimit": "0x1c9c380", - "gasUsed": "0xa410", - "hash": "0xc98388385b0dbfc15ad5c6a0f4b19f7abd94efb4618ced05e3eb320ee30b1e7f", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "miner": "0x7e2a2fa2a064f693f0a55c5639476d913ff12d05", - "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x0000000000000000", - "number": "0x1496e50", - "parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000", - "parentHash": "0xddd47e7383c8ced495e85e053f898d7a333feb0432fa9098306f6f563cde4984", - "receiptsRoot": "0x75308898d571eafb5cd8cde8278bf5b3d13c5f6ec074926de3bb895b519264e1", - "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - "size": "0x29c", - "stateRoot": "0xd6da11fae4ab94ddba2c4c71206962f7c6eaec6e5fabf00f3f7540c4ed7ad8f1", - "timestamp": "0x67803e64", - "transactions": [ - "0xe7217784e0c3f7b35d39303b1165046e9b7e8af9b9cf80d5d5f96c3163de8f51", - "0xf0182201606ec03701ba3a07d965fabdb4b7d06b424f226ea7ec3581802fc6fa" - ], - "transactionsRoot": "0x9bdb74f3ce41f5893a02a631e904ae0d21ae8c4e416786d8dbd9cb5c54f1dc0f", - "uncles": [], - "withdrawals": [], - "withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421" - } -``` - - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_submitwork.mdx b/services/reference/ethereum/json-rpc-methods/eth_submitwork.mdx deleted file mode 100644 index 7a1342f7de5..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_submitwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_submitWork -sidebar_label: eth_submitWork -description: Submits PoW solution on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_submitwork-description.mdx' - -# `eth_submitWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_submitwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_submitwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_submitwork-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_submitwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_submitwork-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/eth_syncing.mdx b/services/reference/ethereum/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 86929df6659..00000000000 --- a/services/reference/ethereum/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx b/services/reference/ethereum/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx deleted file mode 100644 index 2705dd54840..00000000000 --- a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getFilterChanges -sidebar_label: eth_getFilterChanges -description: Returns Ethereum logs since last poll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx' - -# `eth_getFilterChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx b/services/reference/ethereum/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx deleted file mode 100644 index 7f79e87e703..00000000000 --- a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_getFilterLogs -sidebar_label: eth_getFilterLogs -description: Returns logs by filter ID on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx' - -# `eth_getFilterLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_newblockfilter.mdx b/services/reference/ethereum/json-rpc-methods/filter-methods/eth_newblockfilter.mdx deleted file mode 100644 index 981e1d9c0ae..00000000000 --- a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_newblockfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_newBlockFilter -sidebar_label: eth_newBlockFilter -description: Creates filter to notify of new blocks on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx' - -# `eth_newBlockFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newblockfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newblockfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newblockfilter-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/filter-methods/_eth_newblockfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newblockfilter-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_newfilter.mdx b/services/reference/ethereum/json-rpc-methods/filter-methods/eth_newfilter.mdx deleted file mode 100644 index a5119354778..00000000000 --- a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_newfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_newFilter -sidebar_label: eth_newFilter -description: Creates filter to notify of state changes on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx' - -# `eth_newFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newfilter-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/filter-methods/_eth_newfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newfilter-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx b/services/reference/ethereum/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx deleted file mode 100644 index 8f7a1b1556c..00000000000 --- a/services/reference/ethereum/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_uninstallFilter -sidebar_label: eth_uninstallFilter -description: Uninstalls filter on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx' - -# `eth_uninstallFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/filter-methods/index.md b/services/reference/ethereum/json-rpc-methods/filter-methods/index.md deleted file mode 100644 index 4c54ef764bc..00000000000 --- a/services/reference/ethereum/json-rpc-methods/filter-methods/index.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Ethereum filter methods -sidebar_label: Filter methods -sidebar_key: ethereum-filter-methods -description: Ethereum filter methods ---- - -# Ethereum filter methods - -Infura supports the following filter methods over both HTTP and WebSocket. In both cases, the filter IDs can be shared by any connection using the same API key. - -Filters that are not polled using [`eth_getFilterChanges`](eth_getfilterchanges.mdx) will be automatically expired after fifteen minutes of inactivity. diff --git a/services/reference/ethereum/json-rpc-methods/index.md b/services/reference/ethereum/json-rpc-methods/index.md deleted file mode 100644 index 8389f760ede..00000000000 --- a/services/reference/ethereum/json-rpc-methods/index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Ethereum JSON-RPC API -sidebar_label: JSON-RPC API -sidebar_key: ethereum-json-rpc-api ---- - -import ErrorCodes from "../../\_partials/error-codes.mdx"; - - diff --git a/services/reference/ethereum/json-rpc-methods/net_listening.mdx b/services/reference/ethereum/json-rpc-methods/net_listening.mdx deleted file mode 100644 index 63813d7d297..00000000000 --- a/services/reference/ethereum/json-rpc-methods/net_listening.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum net_listening -sidebar_label: net_listening -description: Indicates whether client listening for network connections on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_listening-description.mdx' - -# `net_listening` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_listening-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_listening-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_listening-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_net_listening-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_listening-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/net_peercount.mdx b/services/reference/ethereum/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 4efc9dd09a0..00000000000 --- a/services/reference/ethereum/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/net_version.mdx b/services/reference/ethereum/json-rpc-methods/net_version.mdx deleted file mode 100644 index abbe24abc8b..00000000000 --- a/services/reference/ethereum/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum net_version -sidebar_label: net_version -description: Returns network ID on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/ethereum/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index 3f103576925..00000000000 --- a/services/reference/ethereum/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_subscribe -sidebar_label: eth_subscribe -description: Creates new subscription on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/subscription-methods/_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/ethereum/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index dabcd1689c7..00000000000 --- a/services/reference/ethereum/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/subscription-methods/index.md b/services/reference/ethereum/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index a6d8061e5ac..00000000000 --- a/services/reference/ethereum/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: Ethereum subscription methods -sidebar_label: Subscription methods -sidebar_key: ethereum-subscription-methods -description: Ethereum subscription methods ---- - -# Ethereum subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/ethereum/json-rpc-methods/trace-methods/index.md b/services/reference/ethereum/json-rpc-methods/trace-methods/index.md deleted file mode 100644 index c9334a9b500..00000000000 --- a/services/reference/ethereum/json-rpc-methods/trace-methods/index.md +++ /dev/null @@ -1,126 +0,0 @@ ---- -title: Ethereum trace methods -sidebar_label: Trace methods -sidebar_key: ethereum-trace-methods -description: Ethereum trace methods ---- - -# Ethereum trace methods - -:::info - -Trace API is an open beta feature, available to paying Infura customers. -::: - -Infura provides access to the following trace API methods that provide insights into the execution of smart contracts and transactions. - -- [`trace_block`](trace_block.mdx) -- [`trace_call`](trace_call.mdx) -- [`trace_callMany`](trace_callmany.mdx) -- [`trace_transaction`](trace_transaction.mdx) -- [`trace_filter`](trace_filter.mdx) - -`trace_block`, `trace_filter`, and `trace_transaction` return [`trace`](#trace) information, while -`trace_call` and `trace_callMany` -allow you to use the [`trace`](#trace) or [`stateDiff`](#statediff) diagnostic options when tracing calls or transactions. - -:::caution -Trace responses are handled generically to enable support of additional fields beyond -those documented here. This requires graceful handling. -::: - -## `trace` - -Provides an ordered trace of the instructions executed by the Ethereum Virtual Machine (EVM) during the execution of a -smart contract transaction. Excludes precompiled contracts. - -```json title="Trace example" -"trace":[ - { - "action":{ - "callType":"call", - "from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73", - "gas":"0xffadea", - "input":"0x", - "to":"0x0100000000000000000000000000000000000000", - "value":"0x0" - }, - "result":{ - "gasUsed":"0x1e", - "output":"0x" - }, - "subtraces":0, - "traceAddress":[ - ], - "type":"call" - } -] -``` - -| Key | Value | -| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `action` | Transaction details. | -|   - `creationMethod` | Opcode used during contract creation: `create` or `create2`. Returned for `create` operations. | -|   - `callType` | Whether the transaction is `call`, `staticcall`, or `delegatecall`. Returned for `call` operations. | -|   - `from` | Address of the transaction sender. | -|   - `gas` | Gas provided by sender. | -|   - `input` | Transaction data. Returned for `call` operations. | -|   - `init` | Contract initialization code. Returned for `create` operations. | -|   - `to` | Target of the transaction. Returned for `call` operations. | -|   - `value` | Value transferred in the transaction. | -| `blockHash` | Hash of the block containing this trace. | -| `blockNumber` | Block number containing this trace. | -| `result` | Transaction result. | -|   - `address` | Address of the newly created contract. Returned for `create` operations. | -|   - `code` | Bytecode of the newly created contract. Returned for `create` operations. | -|   - `gasUsed` | Gas used by the transaction. Includes any refunds of unused gas. | -|   - `output` | Return value of the contract call. Contains only the actual value sent by a `RETURN` operation. If a `RETURN` was not executed, the output is empty bytes. Returned for `call` operations. | -| `subtraces` | Number of sub-traces (nested contract calls) made by the transaction. | -| `traceAddress` | Tree list address of where the call occurred, address of the parents, and order of the current sub call. | -| `transactionHash` | Hash of the transaction. | -| `transactionPosition` | Transaction position within the block. | -| `type` | Whether the transaction is a `call` or `create` operation. | - -## `stateDiff` - -Displays state changes in the requested block for each transaction, represented as a map of accounts to an object. Lists -the balance, code, nonce, and storage changes from immediately before the transaction to after the transaction. For the `key:value` pairs: - -- `+` indicates the field didn't exist before and now has the specified value. -- `-` indicates a deleted value. -- `*` has a `from` and a `to` value. - -An absent value is distinct from zero when creating accounts or clearing storage. For example, when clearing storage, an absent value means that a particular storage slot has not yet been assigned a value, while a zero value means that the storage slot has been assigned and set to zero. - -```json title="stateDiff example" -"stateDiff":{ - "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73":{ - "balance":{ - "*":{ - "from":"0xffffffffffffffffffffffffffffffffc3e12a20b", - "to":"0xffffffffffffffffffffffffffffffffc3dc5f091" - } - }, - "code":"=", - "nonce":{ - "*":{ - "from":"0x14", - "to":"0x15" - } - }, - "storage":{ - } - } -} -``` - -| Key | Value | -| -------------- | ----------------------------------------- | -| `balance` | Change of balance event. | -| `balance.from` | Balance before the transaction. | -| `balance.to` | Balance after the transaction. | -| `code` | Changes to code. None in this example. | -| `nonce` | Change of nonce. | -| `nonce.from` | Nonce before the transaction. | -| `nonce.to` | Nonce after the transaction. | -| `storage` | Changes to storage. None in this example. | diff --git a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_block.mdx b/services/reference/ethereum/json-rpc-methods/trace-methods/trace_block.mdx deleted file mode 100644 index 1feb81bb78f..00000000000 --- a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_block.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum trace_block -sidebar_label: trace_block -description: Gets trace information for transactions in a block on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/trace-methods/_trace_block-description.mdx' - -# `trace_block` - - - -## Parameters - -import Params from '/services/reference/_partials/trace-methods/_trace_block-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/trace-methods/_trace_block-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/trace-methods/_trace_block-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/trace-methods/_trace_block-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/trace-methods/_trace_block-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_call.mdx b/services/reference/ethereum/json-rpc-methods/trace-methods/trace_call.mdx deleted file mode 100644 index 2a382be60a4..00000000000 --- a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum trace_call -sidebar_label: trace_call -description: Executes a call on Ethereum and returns possible traces. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/trace-methods/_trace_call-description.mdx' - -# `trace_call` - - - -## Parameters - -import Params from '/services/reference/_partials/trace-methods/_trace_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/trace-methods/_trace_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/trace-methods/_trace_call-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/trace-methods/_trace_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/trace-methods/_trace_call-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_callmany.mdx b/services/reference/ethereum/json-rpc-methods/trace-methods/trace_callmany.mdx deleted file mode 100644 index c979bc69acf..00000000000 --- a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_callmany.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum trace_callMany -sidebar_label: trace_callMany -description: Executes multiple calls on Ethereum and returns possible traces. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/trace-methods/_trace_callmany-description.mdx' - -# `trace_callMany` - - - -## Parameters - -import Params from '/services/reference/_partials/trace-methods/_trace_callmany-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/trace-methods/_trace_callmany-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/trace-methods/_trace_callmany-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/trace-methods/_trace_callmany-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/trace-methods/_trace_callmany-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_filter.mdx b/services/reference/ethereum/json-rpc-methods/trace-methods/trace_filter.mdx deleted file mode 100644 index 23cbe894bdc..00000000000 --- a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_filter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum trace_filter -sidebar_label: trace_filter -description: Returns filtered traces on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/trace-methods/_trace_filter-description.mdx' - -# `trace_filter` - - - -## Parameters - -import Params from '/services/reference/_partials/trace-methods/_trace_filter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/trace-methods/_trace_filter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/trace-methods/_trace_filter-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/trace-methods/_trace_filter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/trace-methods/_trace_filter-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_transaction.mdx b/services/reference/ethereum/json-rpc-methods/trace-methods/trace_transaction.mdx deleted file mode 100644 index c5a14c4c1c3..00000000000 --- a/services/reference/ethereum/json-rpc-methods/trace-methods/trace_transaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum trace_transaction -sidebar_label: trace_transaction -description: Returns traces for a transaction on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/trace-methods/_trace_transaction-description.mdx' - -# `trace_transaction` - - - -## Parameters - -import Params from '/services/reference/_partials/trace-methods/_trace_transaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/trace-methods/_trace_transaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/trace-methods/_trace_transaction-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/trace-methods/_trace_transaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/trace-methods/_trace_transaction-response.mdx' - - diff --git a/services/reference/ethereum/json-rpc-methods/web3_clientversion.mdx b/services/reference/ethereum/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 72ac5b1e906..00000000000 --- a/services/reference/ethereum/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Ethereum web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Ethereum. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/ethereum/quickstart.md b/services/reference/ethereum/quickstart.md deleted file mode 100644 index f657c32b521..00000000000 --- a/services/reference/ethereum/quickstart.md +++ /dev/null @@ -1,247 +0,0 @@ ---- -description: Ethereum quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Ethereum quickstart - -This quickstart guide will help you set up and make calls on the Ethereum network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Ethereum network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Ethereum network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -:::note - -In Windows Powershell, quotations in `curl` commands can behave differently than expected. We recommend using Postman on Windows systems. - -::: - -### Postman - -Call the JSON-RPC methods using [Postman](https://learning.postman.com/docs/getting-started/introduction/). - -Click **Run in Postman** to fork the collection and make requests. - -[![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/8171681-49bfbc10-85ae-466c-8cf0-91eba9298b12?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D8171681-49bfbc10-85ae-466c-8cf0-91eba9298b12%26entityType%3Dcollection%26workspaceId%3Db8156083-f4da-481f-84fa-72dcc26cb146) - -:::info - -Set the correct [variables](https://learning.postman.com/docs/sending-requests/variables/#understanding-variables) for your API key and network before running requests. - -::: - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Web3.js - -1. In your project folder, [install the latest version of the web3.js library](https://www.npmjs.com/package/web3?activeTab=versions) - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - var { Web3 } = require('web3') - var provider = 'https://mainnet.infura.io/v3/' - var web3Provider = new Web3.providers.HttpProvider(provider) - var web3 = new Web3(web3Provider) - - web3.eth.getBlockNumber().then(result => { - console.log('Latest Ethereum Block is ', result) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {'content-type': 'application/json'} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Ethereum network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Ethereum APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Arbitrum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/gas-api/api-reference/basefeehistory.md b/services/reference/gas-api/api-reference/basefeehistory.md deleted file mode 100644 index fccf11466a0..00000000000 --- a/services/reference/gas-api/api-reference/basefeehistory.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -description: Get the base fee history. ---- - -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Get the base fee history - -Returns the base fee history of the specified blockchain network for the previous 500 blocks. - -The base fee is a part of the EIP-1559 upgrade to the Ethereum network, and it represents the -minimum price a user must pay for their transaction to be included in a block. - -This method can be useful for applications that need to display or analyze the historical base fee -data for a specific blockchain network. - -**GET** `https://gas.api.infura.io/networks/${chainId}/baseFeeHistory` - -## Parameters - -**Path**: - -- `chainId`: `string` - ID of the chain to query. - See the [list of supported chain IDs](../../../get-started/endpoints.md#gas-api). - -## Returns - -Array of historical base fees. - -## Example - -### Request - -Include your [API key](/developer-tools/dashboard/get-started/create-api) -and optional [API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret) -to authorize your account to use the APIs. - -:::tip -You can call the API with only an API key, and [include it as a path parameter](../api-reference/index.md#supported-api-request-formats) -instead of using the curl authentication option (`-u`). -::: - - - - -```bash -curl -X "GET" \ - -u : \ - "https://gas.api.infura.io/networks/1/baseFeeHistory" -``` - - - - -```javascript -const axios = require('axios') - -const apiKey = '' // Replace with your API key. -const apiKeySecret = '' // Replace with your API key secret. - -const Auth = Buffer.from(apiKey + ':' + apiKeySecret).toString('base64') - -// The chain ID of the supported network. -const chainId = 1 - -;(async () => { - try { - const { data } = await axios.get( - `https://gas.api.infura.io/networks/${chainId}/baseFeeHistory`, - { - headers: { - Authorization: `Basic ${Auth}`, - }, - } - ) - console.log('Base fee history:', data) - } catch (error) { - console.log('Server responded with:', error) - } -})() -``` - - - - -### Response - -```json -[ - "14.585610312", - "16.407222984", - "16.687763116", - "16.357094117", - "15.82929799", - "15.21546789", - "17.113938208", - "16.92324819", - ... -] -``` diff --git a/services/reference/gas-api/api-reference/basefeepercentile.md b/services/reference/gas-api/api-reference/basefeepercentile.md deleted file mode 100644 index 325dd61798d..00000000000 --- a/services/reference/gas-api/api-reference/basefeepercentile.md +++ /dev/null @@ -1,95 +0,0 @@ ---- -description: Get the base fee percentile for a chain. ---- - -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Get the base fee percentile - -Returns the base fee percentile (50th percentile) of the specified blockchain network. - -For example, if the API returns a value of `20` Gwei, it means that 50% of the historical base fees -are less than or equal to `20` Gwei. - -This can be useful for users or applications to estimate the optimal gas price for transactions -based on historical data. - -**GET** `https://gas.api.infura.io/networks/${chainId}/baseFeePercentile` - -## Parameters - -**Path**: - -- `chainId`: `string` - ID of the chain to query. - See the [list of supported chain IDs](../../../get-started/endpoints.md#gas-api). - -## Returns - -`baseFeePercentile`: `string` - The base fee in Gwei at the 50th percentile, meaning that 50% of the base fees are -less than or equal to the provided amount. - -## Example - -### Request - -Include your [API key](/developer-tools/dashboard/get-started/create-api) -and optional [API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret) -to authorize your account to use the APIs. - -:::tip -You can call the API with only an API key, and [include it as a path parameter](../api-reference/index.md#supported-api-request-formats) -instead of using the curl authentication option (`-u`). -::: - - - - -```bash -curl -X "GET" \ - -u : \ - "https://gas.api.infura.io/networks/1/baseFeePercentile" -``` - - - - -```javascript -const axios = require('axios') - -const apiKey = '' // Replace with your API key. -const apiKeySecret = '' // Replace with your API key secret. - -const Auth = Buffer.from(apiKey + ':' + apiKeySecret).toString('base64') - -// The chain ID of the supported network. -const chainId = 1 - -;(async () => { - try { - const { data } = await axios.get( - `https://gas.api.infura.io/networks/${chainId}/baseFeePercentile`, - { - headers: { - Authorization: `Basic ${Auth}`, - }, - } - ) - console.log('Base fee percentile:', data) - } catch (error) { - console.log('Server responded with:', error) - } -})() -``` - - - - -### Response - -```json -{ - "baseFeePercentile": "23.227829059" -} -``` diff --git a/services/reference/gas-api/api-reference/busythreshold.md b/services/reference/gas-api/api-reference/busythreshold.md deleted file mode 100644 index 8dc61387844..00000000000 --- a/services/reference/gas-api/api-reference/busythreshold.md +++ /dev/null @@ -1,94 +0,0 @@ ---- -description: Get the busy threshold. ---- - -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Get the busy threshold - -Returns the busy threshold for the specified blockchain network. - -For example, a `busyThreshold` value of `30` Gwei indicates that 90% of the historical base fees on -the network have been below `30` Gwei. -If the current base fee exceeds this value, it suggests that the network is busier than usual, -likely due to a high volume of transactions. - -**GET** `https://gas.api.infura.io/networks/${chainId}/busyThreshold` - -## Parameters - -**Path**: - -- `chainId`: `string` - ID of the chain to query. - See the [list of supported chain IDs](../../../get-started/endpoints.md#gas-api). - -## Returns - -`busyThreshold`: `string` - Indicates that 90% of the historical base fees on the network -have been below this threshold, serving as a marker of network congestion when current base fees exceed it. - -## Example - -### Request - -Include your [API key](/developer-tools/dashboard/get-started/create-api) -and optional [API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret) -to authorize your account to use the APIs. - -:::tip -You can call the API with only an API key, and [include it as a path parameter](../api-reference/index.md#supported-api-request-formats) -instead of using the curl authentication option (`-u`). -::: - - - - -```bash -curl -X "GET" \ - -u : \ - "https://gas.api.infura.io/networks/1/busyThreshold" -``` - - - - -```javascript -const axios = require('axios') - -const apiKey = '' // Replace with your API key. -const apiKeySecret = '' // Replace with your API key secret. - -const Auth = Buffer.from(apiKey + ':' + apiKeySecret).toString('base64') - -// The chain ID of the supported network. -const chainId = 1 - -;(async () => { - try { - const { data } = await axios.get( - `https://gas.api.infura.io/networks/${chainId}/busyThreshold`, - { - headers: { - Authorization: `Basic ${Auth}`, - }, - } - ) - console.log('Busy threshold:', data) - } catch (error) { - console.log('Server responded with:', error) - } -})() -``` - - - - -### Response - -```json -{ - "busyThreshold": "37.378956101" -} -``` diff --git a/services/reference/gas-api/api-reference/gasprices-type2.md b/services/reference/gas-api/api-reference/gasprices-type2.md deleted file mode 100644 index bd20621ca33..00000000000 --- a/services/reference/gas-api/api-reference/gasprices-type2.md +++ /dev/null @@ -1,127 +0,0 @@ ---- -description: Get the estimated gas prices for a chain. ---- - -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js'; -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Get EIP-1559 gas prices - -Returns the estimated [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) gas fees for the specified -blockchain network. - -**GET** `https://gas.api.infura.io/networks/${chainId}/suggestedGasFees` - -## Parameters - -**Path**: - -- `chainId`: `string` - ID of the chain to query. - See the [list of supported chain IDs](../../../get-started/endpoints.md#gas-api). - -## Returns - -Recommended gas price details based of the level of urgency: - -- `low`, `medium`, `high` - Object containing recommended values for transactions by level of urgency: - - `suggestedMaxPriorityFeePerGas`: `string` - The maximum suggested priority fee per gas (in gwei) to pay to have transactions included in a block. - - `suggestedMaxFeePerGas`: `string` - The maximum suggested total fee per gas (in gwei) to pay, including both the base fee and the priority fee. - - `minWaitTimeEstimate`: `number` - The minimum estimated wait time (in milliseconds) for a transaction to be included in a block at the suggested gas price. - - `maxWaitTimeEstimate`: `number` - The maximum estimated wait time (in milliseconds) for a transaction to be included in a block at the suggested gas price. -- `estimatedBaseFee`: `string` - The current estimated base fee per gas on the network. -- `networkCongestion`: `number` - The current congestion on the network, represented as a number between `0` and `1`. - A lower network congestion score (for example `0.1`), indicates that fewer transactions are being submitted, so it's cheaper to validate transactions. -- `latestPriorityFeeRange`: `array` - The range of priority fees per gas for recent transactions on the network. -- `historicalPriorityFeeRange`: `array` - The range of priority fees per gas for transactions on the network over a historical period. -- `historicalBaseFeeRange`: `array` - The range of base fees per gas on the network over a historical period. -- `priorityFeeTrend`: `string` - The current trend in priority fees on the network, either `up` or `down` (whether it's getting more expensive or cheaper). -- `baseFeeTrend`: `string` - The current trend in base fees on the network, either `up` or `down` (whether it's getting more expensive or cheaper). - -## Example - -### Request - -Include your [API key](/developer-tools/dashboard/get-started/create-api) -and optional [API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret) -to authorize your account to use the APIs. - -:::tip -You can call the API with only an API key, and [include it as a path parameter](../api-reference/index.md#supported-api-request-formats) -instead of using the curl authentication option (`-u`). -::: - - - - -```bash -curl -X "GET" \ - -u : \ - "https://gas.api.infura.io/networks/1/suggestedGasFees" -``` - - - - -```javascript -const axios = require('axios') - -const apiKey = '' // Replace with your API key. -const apiKeySecret = '' // Replace with your API key secret. - -const Auth = Buffer.from(apiKey + ':' + apiKeySecret).toString('base64') - -// The chain ID of the supported network. -const chainId = 1 - -;(async () => { - try { - const { data } = await axios.get( - `https://gas.api.infura.io/networks/${chainId}/suggestedGasFees`, - { - headers: { - Authorization: `Basic ${Auth}`, - }, - } - ) - console.log('Suggested gas fees:', data) - } catch (error) { - console.log('Server responded with:', error) - } -})() -``` - - - - -### Response - -```json -{ - "low": { - "suggestedMaxPriorityFeePerGas": "0.05", - "suggestedMaxFeePerGas": "16.334026964", - "minWaitTimeEstimate": 15000, - "maxWaitTimeEstimate": 30000 - }, - "medium": { - "suggestedMaxPriorityFeePerGas": "0.1", - "suggestedMaxFeePerGas": "22.083436402", - "minWaitTimeEstimate": 15000, - "maxWaitTimeEstimate": 45000 - }, - "high": { - "suggestedMaxPriorityFeePerGas": "0.3", - "suggestedMaxFeePerGas": "27.982845839", - "minWaitTimeEstimate": 15000, - "maxWaitTimeEstimate": 60000 - }, - "estimatedBaseFee": "16.284026964", - "networkCongestion": 0.5125, - "latestPriorityFeeRange": ["0", "3"], - "historicalPriorityFeeRange": ["0.000000001", "89"], - "historicalBaseFeeRange": ["13.773088584", "29.912845463"], - "priorityFeeTrend": "down", - "baseFeeTrend": "up" -} -``` diff --git a/services/reference/gas-api/api-reference/index.md b/services/reference/gas-api/api-reference/index.md deleted file mode 100644 index 5f134ef58ca..00000000000 --- a/services/reference/gas-api/api-reference/index.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -description: Reference content for the Gas API. -sidebar_label: API reference ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Gas API reference - -This section provides reference information for the Gas REST APIs. -Use the APIs to: - -- [Get EIP-1559 gas prices.](./gasprices-type2.md) -- [Get the base fee history (in Gwei).](./basefeehistory.md) -- [Get the base fee percentile (in Gwei).](./basefeepercentile.md) -- [Get the busy threshold for a network.](./busythreshold.md) - -:::info -See the [list of supported Gas API networks](../../../get-started/endpoints.md#gas-api). -::: - -## Supported API request formats - -You can call the Gas APIs in two ways: - -- **Using the API key only** - Add your [API key](/developer-tools/dashboard/get-started/create-api) - as a path option. -- **Using the API key and API key secret** - Use basic authentication and specify the API key - and [API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret). - - - - -```bash -curl -X "GET" "https://gas.api.infura.io/v3//networks/1/suggestedGasFees" -``` - - - - -```bash -curl -X "GET" -u : "https://gas.api.infura.io/networks/1/suggestedGasFees" -``` - - - diff --git a/services/reference/gas-api/index.md b/services/reference/gas-api/index.md deleted file mode 100644 index feba3ee10e8..00000000000 --- a/services/reference/gas-api/index.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -description: Gas API documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Gas API - -The Gas API is a tool that delivers real-time [gas prices](../../concepts/gas.md) for supported networks, enabling users to identify the best times to execute transactions based on current rates and intricacies introduced by [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559). - -:::info -See the [list of supported Gas API networks](../../get-started/endpoints.md#gas-api). -::: - - diff --git a/services/reference/gas-api/quickstart.md b/services/reference/gas-api/quickstart.md deleted file mode 100644 index cd206f1ced3..00000000000 --- a/services/reference/gas-api/quickstart.md +++ /dev/null @@ -1,180 +0,0 @@ ---- -description: Get started with the Gas APIs. -sidebar_label: Quickstart -sidebar_position: 1 ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Gas API quickstart - -This quickstart shows you how to call the Gas API using JavaScript. -You can also use a tool such as [curl](https://curl.se/) or [Postman](https://www.postman.com/) to -call the REST APIs. - -:::tip -View the [API reference content](api-reference/index.md) to view the `curl` command for each API. -::: - -## Prerequisites - -- A valid [Web3 API key](/developer-tools/dashboard/get-started/create-api) - and optional [API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret). -- [Node.js and npm installed](https://nodejs.org/en/download). - -## Initialize a new project directory - -```bash -mkdir new_project -cd new_project -npm init -y -``` - -## Install required packages - -Install the `axios` package: - -```bash -npm install axios -``` - -Install the [`dotenv`](../../how-to/javascript-dotenv.md) package: - -```bash -npm install dotenv -``` - -## Create your `.env` file - -Create a `.env` file at the project root and add the following data: - -:::caution warning -Do not commit the `.env` file to your repository if it contains sensitive data. -You can [create a `.gitignore` file](../../how-to/javascript-dotenv.md#create-a-gitignore-file) -to prevent accidentally committing the file. -::: - -```bash title=".env" -INFURA_API_KEY= -INFURA_API_KEY_SECRET= -``` - -Replace the Infura project credential placeholders with your own. - -:::note -The `INFURA_API_KEY_SECRET` is optional and only necessary if you are using an -[API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret) to authenticate requests. -::: - -## Create your script - -The Gas API supports [multiple request formats](./api-reference/index.md#supported-api-request-formats), and -you can call the methods with or without specifying an API key secret. - -Create a file (in this example `index.js`): - -```bash -touch index.js -``` - -Copy the following code into your script: - -:::info note -If using a network other than Ethereum Mainnet, update the `chainId` value (`1`) in the code to an -alternate [supported network](../../get-started/endpoints.md#gas-api). -::: - - - - -```javascript title="index.js" -const axios = require('axios') -require('dotenv').config() - -// The chain ID of the supported network -const chainId = 1 - -;(async () => { - try { - const { data } = await axios.get( - `https://gas.api.infura.io/v3/${process.env.INFURA_API_KEY}/networks/${chainId}/suggestedGasFees` - ) - console.log('Suggested gas fees:', data) - } catch (error) { - console.log('Server responded with:', error) - } -})() -``` - - - - -```javascript title="index.js" -const axios = require('axios') -require('dotenv').config() - -const Auth = Buffer.from( - process.env.INFURA_API_KEY + ':' + process.env.INFURA_API_KEY_SECRET -).toString('base64') - -// The chain ID of the supported network -const chainId = 1 - -;(async () => { - try { - const { data } = await axios.get( - `https://gas.api.infura.io/networks/${chainId}/suggestedGasFees`, - { - headers: { - Authorization: `Basic ${Auth}`, - }, - } - ) - console.log('Suggested gas fees:', data) - } catch (error) { - console.log('Server responded with:', error) - } -})() -``` - - - - -## Run the script - -```bash -node index.js -``` - -The result should look similar to: - -```json -Suggested gas fees: { - low: { - suggestedMaxPriorityFeePerGas: "0.05", // The gas price in gwei - suggestedMaxFeePerGas: "24.086058416", // The gas price in gwei - minWaitTimeEstimate: 15000, - maxWaitTimeEstimate: 30000 - }, - medium: { - suggestedMaxPriorityFeePerGas: "0.1", // The gas price in gwei - suggestedMaxFeePerGas: "32.548678862", // The gas price in gwei - minWaitTimeEstimate: 15000, - maxWaitTimeEstimate: 45000 - }, - high: { - suggestedMaxPriorityFeePerGas: "0.3", // The gas price in gwei - suggestedMaxFeePerGas: "41.161299308", // The gas price in gwei - minWaitTimeEstimate: 15000, - maxWaitTimeEstimate: 60000 - }, - estimatedBaseFee: "24.036058416", - networkCongestion: 0.7143, - latestPriorityFeeRange: [ "0.1", "20" ], - historicalPriorityFeeRange: [ "0.007150439", "113" ], - historicalBaseFeeRange: [ "19.531410688", "36.299069766" ], - priorityFeeTrend: "down", - baseFeeTrend: "down" -} -``` diff --git a/services/reference/hemi/index.md b/services/reference/hemi/index.md deleted file mode 100644 index 6b39c1edd78..00000000000 --- a/services/reference/hemi/index.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -description: Hemi network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Hemi - -:::note Decentralized Infrastructure Network (DIN) - -Hemi is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -::: - -Hemi network brings together the security of Bitcoin and the programmability of Ethereum. Built using Bitcoin as a security layer, Hemi enables developers to build decentralized applications that benefit from Bitcoin's security while leveraging Ethereum's rich ecosystem and tooling. - -Smart contracts can directly access Bitcoin state and verify Bitcoin transactions, all while using standard Ethereum development frameworks. - -:::info See also - -- The [official Hemi documentation](https://docs.hemi.xyz/) for more information. -- Build Bitcoin-aware dapps on the EVM using the - [Hemi Bitcoin Kit (hBK)](https://docs.hemi.xyz/building-bitcoin-apps/hemi-bitcoin-kit-hbk). - -::: - -Select an option below to get started with the Hemi network. - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partners provide access to the Hemi network: - - - -- Infstones ([Privacy Policy](https://infstones.com/terms/privacy-notice)) -- Simply Staking ([Privacy Policy](https://simplystaking.com/privacy-policy)) - diff --git a/services/reference/hemi/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index fe87f663a88..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index ca8ec9168c2..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_call-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 83d4f740164..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 53994ac775d..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 0dfe737c582..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index d4e15a222a3..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]]}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 6ddd9da3a33..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index 09ef1f9848d..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0","method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 9cb10791b4d..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 060a9c069c2..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index d35049583ff..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 2306d77b793..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index dc0475880a8..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 0b42fcb40ce..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 811221a57cb..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index 895dcaeb00d..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index fef9a2f96a9..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 52423d89304..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 3a6808e861b..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index 040dcb2dc8c..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 5e690d38298..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index 54a68aba84f..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index c9b1d69d0de..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx deleted file mode 100644 index f86ffbefa16..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx deleted file mode 100644 index 049d02ba110..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index ebf0f4fa017..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index ecdc8c1aa57..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_protocolversion-request.mdx deleted file mode 100644 index 117d01277ea..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_protocolversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 84b8732b8ad..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_submitwork-request.mdx deleted file mode 100644 index 9fb6261b2c2..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_submitwork-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/hemi/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index e0d9e0014cc..00000000000 --- a/services/reference/hemi/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_net_listening-request.mdx b/services/reference/hemi/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index 82a0f4a0a12..00000000000 --- a/services/reference/hemi/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_net_peercount-request.mdx b/services/reference/hemi/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 14685f1d4ec..00000000000 --- a/services/reference/hemi/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_net_version-request.mdx b/services/reference/hemi/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index e05d01409e5..00000000000 --- a/services/reference/hemi/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/hemi/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 1bd8b803a56..00000000000 --- a/services/reference/hemi/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hemi-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hemi-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hemi/json-rpc-methods/eth_accounts.mdx b/services/reference/hemi/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index 2127df32eba..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Hemi Network eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Hemi Network accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_blocknumber.mdx b/services/reference/hemi/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 6d48220f739..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Hemi Network eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the number of the most recent block on the Hemi Network. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_call.mdx b/services/reference/hemi/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 2801bc3a56a..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_call -sidebar_label: eth_call ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_chainid.mdx b/services/reference/hemi/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 349184d185d..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_chainId -sidebar_label: eth_chainId ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_estimategas.mdx b/services/reference/hemi/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index af1dde4dafb..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_estimateGas -sidebar_label: eth_estimateGas ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_feehistory.mdx b/services/reference/hemi/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index e551b09e9e6..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_feeHistory -sidebar_label: eth_feeHistory ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_gasprice.mdx b/services/reference/hemi/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 0d005f1d7c6..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_gasPrice -sidebar_label: eth_gasPrice ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getbalance.mdx b/services/reference/hemi/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 9bfee99ccc9..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getBalance -sidebar_label: eth_getBalance ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/hemi/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index c83c8de1815..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getBlockByHash -sidebar_label: eth_getBlockByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/hemi/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index f90ad43661d..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/hemi/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index aeb0e22e6d5..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from '/services/reference/hemi/json-rpc-methods/_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/hemi/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 6a309dcbcc9..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/hemi/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 6e574969baa..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getcode.mdx b/services/reference/hemi/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index e4c0ce2244c..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getCode -sidebar_label: eth_getCode ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getlogs.mdx b/services/reference/hemi/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 8b5a1026f0c..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getLogs -sidebar_label: eth_getLogs ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getproof.mdx b/services/reference/hemi/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 9b19d16e3a4..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getProof -sidebar_label: eth_getProof ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getstorageat.mdx b/services/reference/hemi/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 9dbfa70dea4..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getStorageAt -sidebar_label: eth_getStorageAt ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/hemi/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 93f82dd3ce4..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/hemi/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index b2491a2b6e3..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/hemi/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 1ba38e109e9..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/hemi/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index bdbed12af46..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getTransactionCount -sidebar_label: eth_getTransactionCount ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/hemi/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 786e9bcb770..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/hemi/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index 293284a9d56..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/hemi/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index d6358a59869..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/hemi/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 1f26d9ccf48..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/hemi/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index e8856f23fa7..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/hemi/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index c1d90ea8860..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_protocolversion.mdx b/services/reference/hemi/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index 53572aaed24..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_protocolVersion -sidebar_label: eth_protocolVersion ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from './_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/hemi/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index d5e0c2194c3..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_submitwork.mdx b/services/reference/hemi/json-rpc-methods/eth_submitwork.mdx deleted file mode 100644 index 01c9c6cf3f2..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_submitwork.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_submitWork -sidebar_label: eth_submitWork ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_submitwork-description.mdx' - -# `eth_submitWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_submitwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_submitwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_submitwork-example.mdx' - - - -### Request - -import Request from './_eth_submitwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_submitwork-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/eth_syncing.mdx b/services/reference/hemi/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index ab0f7c034e8..00000000000 --- a/services/reference/hemi/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi eth_syncing -sidebar_label: eth_syncing ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/index.md b/services/reference/hemi/json-rpc-methods/index.md deleted file mode 100644 index 78f30d3dbfd..00000000000 --- a/services/reference/hemi/json-rpc-methods/index.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -description: Hemi Network JSON-RPC API -sidebar_position: 3 -sidebar_key: hemi-json-rpc-api ---- - -# JSON-RPC API - -Interact with the Hemi network using the standard Ethereum JSON-RPC API methods. - -:::info -To use these methods, you need an API key. If you don't have one, sign up for our [free plan](https://app.infura.io/register). -::: diff --git a/services/reference/hemi/json-rpc-methods/net_peercount.mdx b/services/reference/hemi/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 67b53175f47..00000000000 --- a/services/reference/hemi/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi net_peerCount -sidebar_label: net_peerCount ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/net_version.mdx b/services/reference/hemi/json-rpc-methods/net_version.mdx deleted file mode 100644 index 11e5d7a6d26..00000000000 --- a/services/reference/hemi/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi net_version -sidebar_label: net_version ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/hemi/json-rpc-methods/web3_clientversion.mdx b/services/reference/hemi/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index f70d99369f2..00000000000 --- a/services/reference/hemi/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Hemi web3_clientVersion -sidebar_label: web3_clientVersion ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/hemi/quickstart.md b/services/reference/hemi/quickstart.md deleted file mode 100644 index 00a86957245..00000000000 --- a/services/reference/hemi/quickstart.md +++ /dev/null @@ -1,206 +0,0 @@ ---- -description: Hemi quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Hemi quickstart - -This quickstart guide will help you set up and make JSON-RPC API calls on the Hemi network using the Infura endpoints. - -:::info -Use the [Hemi Bitcoin Kit (hBK)](https://docs.hemi.xyz/building-bitcoin-apps/hemi-bitcoin-kit-hbk) -to build Bitcoin-aware smart contracts. The Hemi Bitcoin Kit smart contract provides utilities for interacting with Bitcoin data on the Hemi network. -::: - - -Don't have an Infura account? Sign up for our free plan and start using the Hemi network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Hemi network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://hemi-testnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://hemi-testnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://hemi-testnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://hemi-testnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://hemi-testnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Hemi network, you can explore more functionalities and APIs provided by Infura. Here are some suggestions: - -- **Explore other Hemi APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/hyperevm/index.md b/services/reference/hyperevm/index.md deleted file mode 100644 index 168725d0321..00000000000 --- a/services/reference/hyperevm/index.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -description: HyperEVM network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# HyperEVM - -:::note Decentralized Infrastructure Network (DIN) -HyperEVM is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). -::: - -HyperEVM is the EVM execution environment on the Hyperliquid blockchain, secured by the same consensus as HyperCore. - -::::info See also -The [official HyperEVM documentation](https://hyperliquid.gitbook.io/hyperliquid-docs/hyperevm) for more information. -:::: - -Select an option below to get started with HyperEVM. - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partner provides access to the HyperEVM network: - -- Alchemy ([Terms of Service](https://legal.alchemy.com/#contract-hjjoqzsvlx), - [Privacy Policy](https://legal.alchemy.com/#contract-sblyf8eub)) -- Liquify ([Privacy Policy](https://www.liquify.com/Liquify_RPC_PP.pdf)) -- Nodies DLB ([Terms of Use](https://www.nodies.app/tos.txt), [Privacy Policy](https://www.nodies.app/privacy.txt)) diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 4683dbbd0b2..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_call-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 58507089aad..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 0eaa4b49e94..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 9faa16ab708..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"from":"0xb60e8dd61c5d32be8058bb8eb970870f07233155","to":"0xd46e8dd67c5d32be8058bb8eb970870f07244567","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0x"}],"id":1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"from":"0xb60e8dd61c5d32be8058bb8eb970870f07233155","to":"0xd46e8dd67c5d32be8058bb8eb970870f07244567","gas":"0x76c0","gasPrice":"0x9184e72a000","value":"0x9184e72a","data":"0x"}],"id":1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index 7ffb612b989..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [25, 75]], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [25, 75]], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 52ff2d0da8b..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index dcd81c20354..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 3a4fdff8e4a..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b2061d85c877b0f607789c50b8b76a241ad30ca7c3dce2b62b07c452e52c9c", true], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b2061d85c877b0f607789c50b8b76a241ad30ca7c3dce2b62b07c452e52c9c", true], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 1aaed38bb86..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["latest", true], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["latest", true], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index 7531e982e88..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 2fa1bf02e53..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b2061d85c877b0f607789c50b8b76a241ad30ca7c3dce2b62b07c452e52c9c"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b2061d85c877b0f607789c50b8b76a241ad30ca7c3dce2b62b07c452e52c9c"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index c9ab822bd67..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 0b0f624165d..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0xd46e8dd67c5d32be8058bb8eb970870f07244567", "latest"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0xd46e8dd67c5d32be8058bb8eb970870f07244567", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 4c60986d4e5..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"fromBlock": "latest", "toBlock": "latest", "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"fromBlock": "latest", "toBlock": "latest", "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 8e462840dcd..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0xd46e8dd67c5d32be8058bb8eb970870f07244567", "0x0", "latest"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0xd46e8dd67c5d32be8058bb8eb970870f07244567", "0x0", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 2d8b2b1e238..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index b3bd296b839..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["latest", "0x0"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["latest", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index e426c54b891..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 400f1f092b1..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index 94821c0d652..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 87cb26528a2..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/hyperevm/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index 0c10d577db9..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_net_version-request.mdx b/services/reference/hyperevm/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index ed54062ee57..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/hyperevm/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 21173893358..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbyhash-parameters.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbyhash-parameters.mdx deleted file mode 100644 index 3d2fb6b9102..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbyhash-parameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -- `blockHash`: (string) [_required_] The block hash to trace. On HyperEVM, this must be the hash of the **latest** block. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports `callTracer`. diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx deleted file mode 100644 index cbad95be02a..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"debug_traceBlockByHash","params":["0xb3b2061d85c877b0f607789c50b8b76a241ad30ca7c3dce2b62b07c452e52c9c",{"tracer":"callTracer"}],"id":1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-parameters.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-parameters.mdx deleted file mode 100644 index f49386bd0c8..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-parameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -- `blockParameter`: (string) [_required_] must be `latest` on HyperEVM. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports `callTracer` and `flatCallTracer`. diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx deleted file mode 100644 index 2783d75837c..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"debug_traceBlockByNumber","params":["latest",{"tracer":"callTracer"}],"id":1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-returns.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-returns.mdx deleted file mode 100644 index a70a05357c0..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_traceblockbynumber-returns.mdx +++ /dev/null @@ -1,2 +0,0 @@ -Depending on the specified tracer type, returns a `callTracer` object or -`flatCallTracer` object. diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracecall-parameters.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracecall-parameters.mdx deleted file mode 100644 index b3bed805555..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracecall-parameters.mdx +++ /dev/null @@ -1,12 +0,0 @@ -- Transaction object with the following fields: - - `from`: (string) address (20 bytes) the transaction is sent from. - - `to`: (string) _[required]_ address (20 bytes) the transaction is directed to. - - `gas`: (string) hexadecimal value of the gas provided for the transaction execution. - - `gasPrice`: (string) hexadecimal value of the `gasPrice` used for each paid gas. - - `maxPriorityFeePerGas`: (string) maximum fee, in wei, the sender is willing to pay per gas above the base fee. - - `maxFeePerGas`: (string) maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. - - `value`: (string) hexadecimal of the value sent with this transaction. - - `data`: (string) hash of the method signature and encoded parameters. -- `block parameter`: (string) [_required_] must be `latest` on HyperEVM. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports `callTracer`. diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracecall-request.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracecall-request.mdx deleted file mode 100644 index 0af6d2b74fd..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracecall-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracetransaction-parameters.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracetransaction-parameters.mdx deleted file mode 100644 index c5e2f9d4b12..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracetransaction-parameters.mdx +++ /dev/null @@ -1,3 +0,0 @@ -- `transactionHash`: (string) [_required_] The transaction hash to trace. On HyperEVM, this must refer to a transaction in the **latest** block. -- Optional tracing options object with the following fields: - - `tracer`: (string) _[optional]_ type of tracer. Supports `callTracer`. diff --git a/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracetransaction-request.mdx b/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracetransaction-request.mdx deleted file mode 100644 index 4c78b1877a7..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/_debug_tracetransaction-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"debug_traceTransaction","params":["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0",{"tracer":"callTracer"}],"id":1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/debug_traceblockbyhash.mdx b/services/reference/hyperevm/json-rpc-methods/debug/debug_traceblockbyhash.mdx deleted file mode 100644 index 5db6d520641..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/debug_traceblockbyhash.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: HyperEVM debug_traceBlockByHash -sidebar_label: debug_traceBlockByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx' - -# `debug_traceBlockByHash` - - - -## Parameters - -import Params from './_debug_traceblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx' - - - -### Request - -import Request from './_debug_traceblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/debug_traceblockbynumber.mdx b/services/reference/hyperevm/json-rpc-methods/debug/debug_traceblockbynumber.mdx deleted file mode 100644 index 2da9b936cc2..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/debug_traceblockbynumber.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: HyperEVM debug_traceBlockByNumber -sidebar_label: debug_traceBlockByNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx' - -# `debug_traceBlockByNumber` - - - -## Parameters - -import Params from './_debug_traceblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from './_debug_traceblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx' - - - -### Request - -import Request from './_debug_traceblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/debug_tracecall.mdx b/services/reference/hyperevm/json-rpc-methods/debug/debug_tracecall.mdx deleted file mode 100644 index ed983242283..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/debug_tracecall.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: HyperEVM debug_traceCall -sidebar_label: debug_traceCall ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/debug-methods/_debug_tracecall-description.mdx' - -# `debug_traceCall` - - - -## Parameters - -import Params from './_debug_tracecall-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_tracecall-example.mdx' - - - -### Request - -import Request from './_debug_tracecall-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_tracecall-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/debug_tracetransaction.mdx b/services/reference/hyperevm/json-rpc-methods/debug/debug_tracetransaction.mdx deleted file mode 100644 index c9a6773afed..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/debug_tracetransaction.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: HyperEVM debug_traceTransaction -sidebar_label: debug_traceTransaction ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx' - -# `debug_traceTransaction` - - - -## Parameters - -import Params from './_debug_tracetransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx' - - - -### Request - -import Request from './_debug_tracetransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/debug/index.md b/services/reference/hyperevm/json-rpc-methods/debug/index.md deleted file mode 100644 index 65af578a829..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/debug/index.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -description: HyperEVM debug methods. -sidebar_label: Debug methods -sidebar_key: hyperevm-debug-methods ---- - -# HyperEVM debug methods - -The debug API methods allow you to inspect and debug the network. Infura supports the following debug methods on the HyperEVM mainnet: - -- [`debug_traceCall`](debug_tracecall.mdx) -- [`debug_traceBlockByHash`](debug_traceblockbyhash.mdx) -- [`debug_traceBlockByNumber`](debug_traceblockbynumber.mdx) -- [`debug_traceTransaction`](debug_tracetransaction.mdx) - -::::info -HyperEVM only supports the **latest block** view. In practice, block parameters must be `latest` and block hashes must refer to the latest block. -:::: diff --git a/services/reference/hyperevm/json-rpc-methods/eth_bigblockgasprice.mdx b/services/reference/hyperevm/json-rpc-methods/eth_bigblockgasprice.mdx deleted file mode 100644 index 2dcbf0dfb0d..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_bigblockgasprice.mdx +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: HyperEVM eth_bigBlockGasPrice -sidebar_label: eth_bigBlockGasPrice -description: Returns the base fee for the next big block on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `eth_bigBlockGasPrice` - -Returns the base fee for the next big block. - -## Parameters - -None. - -## Returns - -The hexadecimal value of the base fee for the next big block. - -## Example - -Replace `` with an API key from your [Infura dashboard](/developer-tools/dashboard). - -### Request - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_bigBlockGasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_bigBlockGasPrice", "params": [], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x2540be400" -} -``` diff --git a/services/reference/hyperevm/json-rpc-methods/eth_blocknumber.mdx b/services/reference/hyperevm/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index f5bff307d2f..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest HyperEVM block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_call.mdx b/services/reference/hyperevm/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 3badb7bff1c..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_call -sidebar_label: eth_call -description: Executes a HyperEVM call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_chainid.mdx b/services/reference/hyperevm/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 4d3b3af9cf0..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_chainId -sidebar_label: eth_chainId -description: Returns the HyperEVM chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_estimategas.mdx b/services/reference/hyperevm/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 9e61da26292..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas for a HyperEVM transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_feehistory.mdx b/services/reference/hyperevm/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index 4ff9cfeb61b..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical fee data on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_gasprice.mdx b/services/reference/hyperevm/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 69bdf287fe8..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current HyperEVM gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getbalance.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index be47962faea..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a HyperEVM address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index e2addb01928..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns information about a HyperEVM block by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 9df865cb50e..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns information about a HyperEVM block by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index 766c1082081..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a HyperEVM block. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index e6cb6cea17b..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns the number of transactions in a HyperEVM block by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 0064b83f7bb..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns the number of transactions in a HyperEVM block by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getcode.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 74d3b08800d..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getCode -sidebar_label: eth_getCode -description: Returns code at a HyperEVM address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getlogs.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 3db3e6e55ee..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getstorageat.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 5771c5345d7..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Returns the value from a storage position at a given address on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getsystemtxsbyblockhash.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getsystemtxsbyblockhash.mdx deleted file mode 100644 index 1e2923ccfe7..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getsystemtxsbyblockhash.mdx +++ /dev/null @@ -1,95 +0,0 @@ ---- -title: HyperEVM eth_getSystemTxsByBlockHash -sidebar_label: eth_getSystemTxsByBlockHash -description: Returns system transactions for a specified block hash on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `eth_getSystemTxsByBlockHash` - -Returns system transactions for a specified block hash on HyperEVM. This Hyperliquid-specific method -retrieves internal system transactions using the block hash, ensuring accurate block identification -even in the event of chain reorganizations. - -## Parameters - -- `hash`: (string) _[required]_ - The hash (32 bytes) of the block. - -## Returns - -An array of system transaction objects included in the block: - -- `type`: (string) - The transaction type. -- `chainId`: (string) - The chain ID encoded as hexadecimal. -- `nonce`: (string) - The transaction count of the sender. -- `gasPrice`: (string) - Gas price in wei, encoded as hexadecimal. -- `gas`: (string) - Gas limit provided by the sender. -- `to`: (string) - Recipient address (null for contract creation). -- `value`: (string) - Value transferred in wei, encoded as hexadecimal. -- `input`: (string) - Input data of the transaction. -- `r`: (string) - ECDSA signature r. -- `s`: (string) - ECDSA signature s. -- `v`: (string) - ECDSA recovery id. -- `hash`: (string) - Transaction hash. -- `blockHash`: (string) - Block hash. -- `blockNumber`: (string) - Block number in hexadecimal. -- `transactionIndex`: (string) - Index of the transaction in the block. -- `from`: (string) - Sender address. - -## Example - -Replace `` with an API key from your [Infura dashboard](/developer-tools/dashboard). - -### Request - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getSystemTxsByBlockHash", "params": ["0x6c8e2e3fde20bc805fe9775ee65cdc9df6b9be70cfe1b473dc27c555a77425d9"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getSystemTxsByBlockHash", "params": ["0x6c8e2e3fde20bc805fe9775ee65cdc9df6b9be70cfe1b473dc27c555a77425d9"], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "type": "0x0", - "chainId": "0x1", - "nonce": "0x0", - "gasPrice": "0x2540be400", - "gas": "0x5208", - "to": "0x0000000000000000000000000000000000000000", - "value": "0x0", - "input": "0x", - "r": "0x0", - "s": "0x0", - "v": "0x0", - "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x6c8e2e3fde20bc805fe9775ee65cdc9df6b9be70cfe1b473dc27c555a77425d9", - "blockNumber": "0xcc901c", - "transactionIndex": "0x0", - "from": "0x0000000000000000000000000000000000000000" - } - ] -} -``` diff --git a/services/reference/hyperevm/json-rpc-methods/eth_getsystemtxsbyblocknumber.mdx b/services/reference/hyperevm/json-rpc-methods/eth_getsystemtxsbyblocknumber.mdx deleted file mode 100644 index df5c160f90b..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_getsystemtxsbyblocknumber.mdx +++ /dev/null @@ -1,92 +0,0 @@ ---- -title: HyperEVM eth_getSystemTxsByBlockNumber -sidebar_label: eth_getSystemTxsByBlockNumber -description: Returns system transactions for a specified block number on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `eth_getSystemTxsByBlockNumber` - -Returns system transactions for a specified block number on HyperEVM. This Hyperliquid-specific method exposes internal system transactions responsible for protocol operations, network maintenance, and other system-level activities. - -## Parameters - -- `blockNumber`: (string) _[required]_ - The block number in hexadecimal format, or the tag `latest`, `pending`, `safe`, or `finalized`. - -## Returns - -- `result`: (array) - An array of system transaction objects included in the block. - - `type`: (string) - The transaction type. - - `chainId`: (string) - The chain ID encoded as hexadecimal. - - `nonce`: (string) - The transaction count of the sender. - - `gasPrice`: (string) - Gas price in wei, encoded as hexadecimal. - - `gas`: (string) - Gas limit provided by the sender. - - `to`: (string) - Recipient address (null for contract creation). - - `value`: (string) - Value transferred in wei, encoded as hexadecimal. - - `input`: (string) - Input data of the transaction. - - `r`: (string) - ECDSA signature r. - - `s`: (string) - ECDSA signature s. - - `v`: (string) - ECDSA recovery id. - - `hash`: (string) - Transaction hash. - - `blockHash`: (string) - Block hash. - - `blockNumber`: (string) - Block number in hexadecimal. - - `transactionIndex`: (string) - Index of the transaction in the block. - - `from`: (string) - Sender address. - -## Example - -Replace `` with an API key from your [Infura dashboard](/developer-tools/dashboard). - -### Request - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getSystemTxsByBlockNumber", "params": ["0xcc901c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getSystemTxsByBlockNumber", "params": ["0xcc901c"], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "type": "0x0", - "chainId": "0x1", - "nonce": "0x0", - "gasPrice": "0x2540be400", - "gas": "0x5208", - "to": "0x0000000000000000000000000000000000000000", - "value": "0x0", - "input": "0x", - "r": "0x0", - "s": "0x0", - "v": "0x0", - "hash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "blockNumber": "0xcc901c", - "transactionIndex": "0x0", - "from": "0x0000000000000000000000000000000000000000" - } - ] -} -``` diff --git a/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 623c25a59af..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 897b3d09783..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index bc4980bd895..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/hyperevm/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 45ec077ea4f..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Returns the number of transactions sent from an address on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/hyperevm/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index edbc3ba907d..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/hyperevm/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index e53a45b0c96..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Returns the recommended priority fee per gas on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_syncing.mdx b/services/reference/hyperevm/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 0e80bb0c817..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM eth_syncing -sidebar_label: eth_syncing -description: Returns the HyperEVM node synchronization status. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/eth_usingbigblocks.mdx b/services/reference/hyperevm/json-rpc-methods/eth_usingbigblocks.mdx deleted file mode 100644 index 63b5319a6ab..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/eth_usingbigblocks.mdx +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: HyperEVM eth_usingBigBlocks -sidebar_label: eth_usingBigBlocks -description: Returns whether an address is using big blocks on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `eth_usingBigBlocks` - -Returns whether an address is using big blocks on HyperEVM. This Hyperliquid-specific method helps -determine if an address can use enhanced transaction processing capabilities. - -## Parameters - -- `address`: (string) _[required]_ - The address to check for big blocks usage. - -## Returns - -`true` if the address is using big blocks, otherwise false. - -## Example - -Replace `` with an API key from your [Infura dashboard](/developer-tools/dashboard). - -### Request - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_usingBigBlocks", "params": ["0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA"], "id": 1}' -``` - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_usingBigBlocks", "params": ["0xFC1286EeddF81d6955eDAd5C8D99B8Aa32F3D2AA"], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": true -} -``` diff --git a/services/reference/hyperevm/json-rpc-methods/index.md b/services/reference/hyperevm/json-rpc-methods/index.md deleted file mode 100644 index 673c601bc0e..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/index.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -title: HyperEVM JSON-RPC API -description: Supported standard Ethereum methods on HyperEVM mainnet. -sidebar_label: JSON-RPC API -sidebar_key: hyperevm-json-rpc-api ---- - -Infura supports a subset of standard EVM-compatible JSON-RPC methods on HyperEVM. - -::::info - -WebSockets are supported on HyperEVM mainnet and can be used to set up bidirectional -stateful [subscriptions](subscription-methods/index.md). - -:::: - -## Standard methods - -- [`eth_blockNumber`](eth_blocknumber.mdx) -- [`eth_call`](eth_call.mdx) -- [`eth_chainId`](eth_chainid.mdx) -- [`eth_estimateGas`](eth_estimategas.mdx) -- [`eth_feeHistory`](eth_feehistory.mdx) -- [`eth_gasPrice`](eth_gasprice.mdx) -- [`eth_getBalance`](eth_getbalance.mdx) -- [`eth_getBlockByHash`](eth_getblockbyhash.mdx) -- [`eth_getBlockByNumber`](eth_getblockbynumber.mdx) -- [`eth_getBlockReceipts`](eth_getblockreceipts.mdx) -- [`eth_getBlockTransactionCountByHash`](eth_getblocktransactioncountbyhash.mdx) -- [`eth_getBlockTransactionCountByNumber`](eth_getblocktransactioncountbynumber.mdx) -- [`eth_getCode`](eth_getcode.mdx) -- [`eth_getLogs`](eth_getlogs.mdx) -- [`eth_getStorageAt`](eth_getstorageat.mdx) -- [`eth_getTransactionByBlockHashAndIndex`](eth_gettransactionbyblockhashandindex.mdx) -- [`eth_getTransactionByBlockNumberAndIndex`](eth_gettransactionbyblocknumberandindex.mdx) -- [`eth_getTransactionByHash`](eth_gettransactionbyhash.mdx) -- [`eth_getTransactionCount`](eth_gettransactioncount.mdx) -- [`eth_getTransactionReceipt`](eth_gettransactionreceipt.mdx) -- [`eth_maxPriorityFeePerGas`](eth_maxpriorityfeepergas.mdx) -- [`eth_syncing`](eth_syncing.mdx) -- [`net_version`](net_version.mdx) -- [`web3_clientVersion`](web3_clientversion.mdx) - -## HyperEVM-specific methods - -- [`eth_bigBlockGasPrice`](eth_bigblockgasprice.mdx) -- [`eth_usingBigBlocks`](eth_usingbigblocks.mdx) -- [`eth_getSystemTxsByBlockNumber`](eth_getsystemtxsbyblocknumber.mdx) -- [`eth_getSystemTxsByBlockHash`](eth_getsystemtxsbyblockhash.mdx) - -## Other methods - -[Debug methods](debug/index.md), [trace methods](trace-methods/index.md), and [subscription methods](subscription-methods/index.md) are also supported. diff --git a/services/reference/hyperevm/json-rpc-methods/net_version.mdx b/services/reference/hyperevm/json-rpc-methods/net_version.mdx deleted file mode 100644 index ba3595516e5..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM net_version -sidebar_label: net_version -description: Returns network ID on HyperEVM. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/hyperevm/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index 01b3bdcf502..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,27 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics":["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/hyperevm/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index c0e68dc83ab..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,13 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://hyperevm-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - - diff --git a/services/reference/hyperevm/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/hyperevm/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index a1a63dfa52e..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: HyperEVM eth_subscribe -sidebar_label: eth_subscribe ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/hyperevm/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index 1bd4256efc6..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: HyperEVM eth_unsubscribe -sidebar_label: eth_unsubscribe ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/subscription-methods/index.md b/services/reference/hyperevm/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index 960e432a036..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: HyperEVM subscription methods -sidebar_label: Subscription methods -sidebar_key: hyperevm-subscription-methods ---- - -# HyperEVM subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](eth_unsubscribe.mdx) - Cancel an active subscription - -::::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -:::: diff --git a/services/reference/hyperevm/json-rpc-methods/trace-methods/_trace_block-parameters.mdx b/services/reference/hyperevm/json-rpc-methods/trace-methods/_trace_block-parameters.mdx deleted file mode 100644 index c129e8f44d8..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/trace-methods/_trace_block-parameters.mdx +++ /dev/null @@ -1 +0,0 @@ -- `blockParameter`: (string) [_required_] A hexadecimal block number, or the tag `latest`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). diff --git a/services/reference/hyperevm/json-rpc-methods/trace-methods/_trace_block-request.mdx b/services/reference/hyperevm/json-rpc-methods/trace-methods/_trace_block-request.mdx deleted file mode 100644 index cd86aef1ea6..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/trace-methods/_trace_block-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"trace_block","params":["latest"],"id":1}' -``` - - - diff --git a/services/reference/hyperevm/json-rpc-methods/trace-methods/index.md b/services/reference/hyperevm/json-rpc-methods/trace-methods/index.md deleted file mode 100644 index 5fc428787ee..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/trace-methods/index.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: HyperEVM trace methods -sidebar_label: Trace methods -sidebar_key: hyperevm-trace-methods ---- - -# HyperEVM trace methods - -Infura provides access to the following trace API method on HyperEVM mainnet: - -- [`trace_block`](trace_block.mdx) - -::::info -Trace API is an open beta feature, available to paying Infura customers. -:::: diff --git a/services/reference/hyperevm/json-rpc-methods/trace-methods/trace_block.mdx b/services/reference/hyperevm/json-rpc-methods/trace-methods/trace_block.mdx deleted file mode 100644 index 01355db5087..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/trace-methods/trace_block.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: HyperEVM trace_block -sidebar_label: trace_block ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/trace-methods/_trace_block-description.mdx' - -# `trace_block` - - - -## Parameters - -import Params from './_trace_block-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/trace-methods/_trace_block-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/trace-methods/_trace_block-example.mdx' - - - -### Request - -import Request from './_trace_block-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/trace-methods/_trace_block-response.mdx' - - diff --git a/services/reference/hyperevm/json-rpc-methods/web3_clientversion.mdx b/services/reference/hyperevm/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 4d458272fec..00000000000 --- a/services/reference/hyperevm/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: HyperEVM web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns the HyperEVM client version. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/hyperevm/quickstart.md b/services/reference/hyperevm/quickstart.md deleted file mode 100644 index b20d617d28b..00000000000 --- a/services/reference/hyperevm/quickstart.md +++ /dev/null @@ -1,157 +0,0 @@ ---- -description: HyperEVM quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# HyperEVM quickstart - -This quickstart guide will help you set up and make calls on HyperEVM using the Infura endpoint. - - -Don't have an Infura account? Sign up for our free plan and start using HyperEVM! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api/) with the HyperEVM network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://hyperevm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://hyperevm-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://hyperevm-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://hyperevm-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to HyperEVM mainnet, you can explore more JSON-RPC methods in the -[HyperEVM JSON-RPC API documentation](json-rpc-methods/index.md). diff --git a/services/reference/ipfs/http-api-methods/add.md b/services/reference/ipfs/http-api-methods/add.md deleted file mode 100644 index ac3de2f9fed..00000000000 --- a/services/reference/ipfs/http-api-methods/add.md +++ /dev/null @@ -1,72 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `add` - -## `/api/v0/add` - -Add a file or directory to IPFS. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/add?recursive=false&quiet=&quieter=&silent=&progress=&trickle=&only-hash=&wrap-with-directory=&hidden=&chunker=&pin=true&raw-leaves=&nocopy=&fscache=&cid-version=0&hash=sha2-256" \ - -X POST \ - -u ":" \ - -H "Content-Type: multipart/form-data" \ - -F file=@"" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/add?pin=false" \ - -X POST \ - -u ":" \ - -H "Content-Type: multipart/form-data" \ - -F file=@"/sample-result.json" -``` - - - - -#### Request parameters - -- `file` _\[Required]_ - The path to a file to be added to IPFS. -- `quiet` _\[Optional]_ - Write minimal output. -- `quieter` _\[Optional]_ - Write only final hash. -- `silent` _\[Optional]_ - Write no output. -- `progress` _\[Optional]_ - Stream progress data. -- `trickle` _\[Optional]_ - Use trickle-dag format for dag `generation`. -- `only-hash` _\[Optional]_ - Only chunk and hash - do not write to disk. -- `wrap-with-directory` _\[Optional]_ - Wrap files with a directory object. -- `pin` _\[Optional]_ - Pin this object when adding. The default is `true`. -- `raw-leaves` _\[Optional]_ - Use raw blocks for leaf nodes. (Experimental) -- `nocopy` _\[Optional]_ - Add the file using filestore. (Experimental) -- `fscache` _\[Optional]_ - Check the filestore for pre-existing blocks. (Experimental) -- `cid-version` _\[Optional]_: Cid version. Non-zero value changes the default of `raw-leaves` to `true`. The default is `0`. (Experimental) -- `hash` _\[Optional]_: Hash function to use. Sets `cid-version` to `1` if used. The default is `sha2-256`. (Experimental) - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -#### Body - -```json -{ - "Name": "sample-result.json", - "Hash": "QmSTkR1kkqMuGEeBS49dxVJjgHRMH6cUYa7D3tcHDQ3ea3", - "Size": "2120" -} -``` - -#### Result fields - -- `Name` - Name of the object. -- `Hash` - Hash of the uploaded object. -- `Size` - Integer indicating size in bytes. diff --git a/services/reference/ipfs/http-api-methods/block_get.md b/services/reference/ipfs/http-api-methods/block_get.md deleted file mode 100644 index 1b6f78ca32c..00000000000 --- a/services/reference/ipfs/http-api-methods/block_get.md +++ /dev/null @@ -1,45 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `block_get` - -## `/api/v0/block/get` - -Get a raw IPFS block. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/block/get?arg=" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/block/get?arg=QmaYL7E4gDTPNfLxrCEEEcNJgcHBJ55NxxTnxpDKWqMtJ3" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _\[Required]_ - The base58 multihash of an existing block to get. - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -#### Body - -``` -This endpoint returns a `text/plain` response body. -``` diff --git a/services/reference/ipfs/http-api-methods/block_put.md b/services/reference/ipfs/http-api-methods/block_put.md deleted file mode 100644 index 39edbf5fe0d..00000000000 --- a/services/reference/ipfs/http-api-methods/block_put.md +++ /dev/null @@ -1,60 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `block_put` - -## `/api/v0/block/put` - -Store input as an IPFS block. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/block/put?format=v0&mhtype=sha2-256&mhlen=-1" \ - -X POST \ - -u ":" \ - -H "Content-Type: multipart/form-data" \ - -F file=@"" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/block/put" \ - -X POST \ - -u ":" \ - -H "Content-Type: multipart/form-data" \ - -F file=@"/purpink.jpeg" -``` - - - - -#### Request parameters - -- `file` _\[Required]_ - The path to a file to be added to IPFS. -- `format` _\[Optional]_ - Content ID format for blocks to be created with. The default is `v0`. -- `mhtype` _\[Optional]_ - Multihash hash function. The default is `sha2-256`. -- `mhlen` _\[Optional]_ - Multihash hash length. The default is `-1`. - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -#### Body - -```json -{ - "Key": "QmaYL7E4gDTPNfLxrCEEEcNJgcHBJ55NxxTnxpDKWqMtJ3", - "Size": 2392 -} -``` - -#### Result fields - -- `Key` - Key of the block. -- `Size` - Integer indication size in bytes. diff --git a/services/reference/ipfs/http-api-methods/block_stat.md b/services/reference/ipfs/http-api-methods/block_stat.md deleted file mode 100644 index 98c2f4e5103..00000000000 --- a/services/reference/ipfs/http-api-methods/block_stat.md +++ /dev/null @@ -1,53 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `block_stat` - -## `/api/v0/block/stat` - -Print information of a raw IPFS block. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/block/stat?arg=" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/block/stat?arg=QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _\[Required]_ - The base58 multihash of an existing block to stat. - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -#### Body - -```js -{ - "Key": "QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM", - "Size": 18 -} -``` - -#### Result fields - -- `Key` - The base58 multihash string of the block. -- `Size` - An integer representing the size in bytes. diff --git a/services/reference/ipfs/http-api-methods/cat.md b/services/reference/ipfs/http-api-methods/cat.md deleted file mode 100644 index 6f86e456603..00000000000 --- a/services/reference/ipfs/http-api-methods/cat.md +++ /dev/null @@ -1,43 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `cat` - -## `/api/v0/cat` - -Show IPFS object data. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/cat?arg=" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/cat?arg=QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _\[required]_ - The IPFS object hash. - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -``` -This endpoint returns a `text/plain` response body. -``` diff --git a/services/reference/ipfs/http-api-methods/dag_get.md b/services/reference/ipfs/http-api-methods/dag_get.md deleted file mode 100644 index 1b57759d0a3..00000000000 --- a/services/reference/ipfs/http-api-methods/dag_get.md +++ /dev/null @@ -1,44 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `dag_get` - -## `/api/v0/dag/get` - -Get a DAG node from IPFS. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/dag/get?arg=&output-codec=dag-json" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/dag/get?arg=QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _\[Required]_: The object to get. -- `output-codec` _\[Optional]_: Format the object will be decoded in. The default is `dag-json`. - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -``` -This endpoint returns a `text/plain` response body. -``` diff --git a/services/reference/ipfs/http-api-methods/dag_import.md b/services/reference/ipfs/http-api-methods/dag_import.md deleted file mode 100644 index 077619f60c1..00000000000 --- a/services/reference/ipfs/http-api-methods/dag_import.md +++ /dev/null @@ -1,70 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `dag_import` - -## `/api/v0/dag/import` - -Imports all blocks present in supplied [Content Address aRchive (CAR) files](https://ipld.io/specs/transport/car/). The command recursively pins the root specified in the `.car` file headers, unless `pin-roots` is set to `false`. - -:::warning - -You can't pin multiple DAG roots using this endpoint. For example, if supplying multiple `.car` files in the same request. If you try, you'll receive the `only one dag root can be pinned per request` error. - -::: - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/dag/import?pin-roots=false&allow-big-block=false" \ - -X POST \ - -u ":" \ - -H "Content-Type: multipart/form-data" \ - -F file=@"" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/dag/import?pin-roots=true&silent=&stats=&allow-big-block=false" \ - -X POST \ - -u ":" \ - -H "Content-Type: multipart/form-data" \ - -F file=@"/sample.car" -``` - - - - -#### Request parameters - -- `file` : _string_ - path to the `.car` file. -- `pin-roots` : _boolean_ - pin the root listed in the .car headers after importing. The default is `true`. Only one DAG root can be pinned per request. -- `silent` : _boolean_ - no output. -- `stats`: _boolean_ - output statistics. -- `allow-big-block`: _boolean_ - disable the block size check and allow the creation of blocks bigger than 1 MiB. The default is `false`. Bigger blocks won't be transferable over the standard bitswap. - -### Response - -On success, the call to this endpoint returns a `200` response with the following body: - -#### Body - -```json -{ - "Root": { - "Cid": { - "/": "" - }, - "PinErrorMsg": "" - }, - "Stats": { - "BlockBytesCount": "", - "BlockCount": "" - } -} -``` diff --git a/services/reference/ipfs/http-api-methods/dag_put.md b/services/reference/ipfs/http-api-methods/dag_put.md deleted file mode 100644 index 50c89d13d90..00000000000 --- a/services/reference/ipfs/http-api-methods/dag_put.md +++ /dev/null @@ -1,60 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `dag_put` - -## `/api/v0/dag/put` - -Add a DAG node to IPFS. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/dag/put?store-codec=dag-cbor&input-codec=dag-json&pin=<value>&hash=sha2-256" \ - -X POST \ - -u "<API_KEY>:<API_KEY_SECRET>" \ - -H "Content-Type: multipart/form-data" \ - -F file=@"<file>" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/dag/put" \ - -X POST \ - -u ":" \ - -H "Content-Type: multipart/form-data" \ - -F file=@"/sample-result.json" -``` - - - - -#### Request parameters - -- `store-codec` _\[Optional]_: Codec that the stored object will be encoded with. The default is `dag-cbor`. -- `input-codec` _\[Optional]_: Codec that the input object is encoded in. The default is `dag-json`. -- `pin` _\[Optional]_: Set to `true` to pin this object when adding. -- `hash` _\[Optional]_: Hash function to use. The default is `sha2-256`. - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -#### Body - -```json -{ - "Cid": { - "/": "" - } -} -``` - -#### Result fields - -- `Cid` - [Content ID](https://github.com/multiformats/cid). diff --git a/services/reference/ipfs/http-api-methods/dag_resolve.md b/services/reference/ipfs/http-api-methods/dag_resolve.md deleted file mode 100644 index 5331a8593cc..00000000000 --- a/services/reference/ipfs/http-api-methods/dag_resolve.md +++ /dev/null @@ -1,55 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `dag_resolve` - -## `/api/v0/dag/resolve` - -Resolve IPLD block. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/dag/resolve?arg=" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/dag/resolve?arg=QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _[Required]_ - The IPFS object hash; the path to resolve. - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -#### Body - -```js -{ - "Cid": { - "/": "QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy" - }, - "RemPath": "" -} -``` - -#### Result fields - -- `Cid` - [Content ID](https://github.com/multiformats/cid). -- `RemPath` diff --git a/services/reference/ipfs/http-api-methods/get.md b/services/reference/ipfs/http-api-methods/get.md deleted file mode 100644 index 0e06c36453d..00000000000 --- a/services/reference/ipfs/http-api-methods/get.md +++ /dev/null @@ -1,47 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `get` - -## `/api/v0/get` - -Download IPFS objects. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/get?arg=&output=&archive=false&compress=false&compression-level=-1" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/get?arg=QmZtmD2qt6fJot32nabSP3CUjicnypEBz7bHVDhPQt9aAy&archive=true" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _\[Required]_ - The IPFS object hash. -- `output` _\[Optional]_ - The path where the output should be stored. -- `archive` _\[Optional]_ - Output a TAR archive. The default is `false`. -- `compress` _\[Optional]_ - Compress the output with GZIP compression. The default is `false`. -- `compression-level` _\[Optional]_ - The level of compression (1-9). The default is `-1`. - -### Response - -On success, the call to this endpoint will return with 200 and the following body: - -``` -This endpoint returns a `text/plain` response body. -``` diff --git a/services/reference/ipfs/http-api-methods/index.md b/services/reference/ipfs/http-api-methods/index.md deleted file mode 100644 index 08f530dc347..00000000000 --- a/services/reference/ipfs/http-api-methods/index.md +++ /dev/null @@ -1,88 +0,0 @@ ---- -sidebar_label: HTTP API ---- - -# IPFS HTTP API - -The IPFS documentation lists the [IPFS HTTP API methods](https://docs.ipfs.io/reference/http/api/). - -Infura supports a subset of these which are detailed in this section. - -:::info - -All Infura IPFS methods require including your [API key](/developer-tools/dashboard/get-started/create-api) and -[API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret) in the request. - -::: - -## Arguments - -Arguments are added through the special query string key `arg`: - -```bash -curl -X POST -u ":" "https://ipfs.infura.io:5001/api/v0/cat?arg=QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn" -``` - -Note that `arg` can be used multiple times to signify multiple arguments. - -## Flags - -Flags commonly used with the IPFS CLI are added through the query string. For example, the `--encoding=json` flag is the `&encoding=json` query parameter below: - -```bash -> curl -X POST -u ":" "https://ipfs.infura.io:5001/api/v0/object/get?arg=QmaaqrHyAQm7gALkRW8DcfGX3u8q9rWKnxEMmf7m9z515w&encoding=json" -{ - "Links": [ - { - "Name": "index.html", - "Hash": "QmYftndCvcEiuSZRX7njywX2AGSeHY2ASa7VryCq1mKwEw", - "Size": 1700 - }, - { - "Name": "static", - "Hash": "QmdtWFiasJeh2ymW3TD2cLHYxn1ryTuWoNpwieFyJriGTS", - "Size": 2428803 - } - ], - "Data": "CAE=" -} -``` - -:::info - -Some arguments may belong only to the CLI but appear here too. These usually belong to client-side processing of input, particularly in the `add` command. - -::: - -## HTTP status codes - -Status codes used at the RPC layer are simple: - -- `200` - The request was processed or is being processed (streaming) -- `500` - RPC endpoint returned an error -- `400` - Malformed RPC, argument type error, etc -- `403` - RPC call forbidden -- `404` - RPC endpoint doesn't exist -- `405` - HTTP Method Not Allowed - -Status code `500` means that the requested RPC function _does_ exist, but IPFS was not able to fulfill the request because of an error. To know the reason, you have to look at the error message that is usually returned with the body of the response (if no error, check application logs). - -Streaming endpoints fail as above, unless they have started streaming. That means they will have sent a `200` status code already. If an error happens during the stream, it will be included in a `Trailer` response header (some endpoints may additionally include an error in the last streamed object). - -A `405` error may mean that you are using the wrong HTTP method (for example, GET instead of POST), or that you are not allowed to call that method (for example, due to CORS restrictions when making a request from a browser). - -## NDJSON responses - - - -When a bunch of objects are requested, IPFS returns them in the Newline Delimited JSON, [NDJSON](http://ndjson.org/), format. - - - -This is because the calls are asynchronous and the responses are processed one object at a time. - -:::warning - -Response JSON includes `\n` separators which must be dealt with. - -::: diff --git a/services/reference/ipfs/http-api-methods/pin_add.md b/services/reference/ipfs/http-api-methods/pin_add.md deleted file mode 100644 index 1b32e5e1230..00000000000 --- a/services/reference/ipfs/http-api-methods/pin_add.md +++ /dev/null @@ -1,53 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `pin_add` - -## `/api/v0/pin/add` - -Pin objects to local storage. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/pin/add?arg=&recursive=true&progress=" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/pin/add?arg=QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _\[Required]_ - Path to objects to be pinned. -- `recursive` _\[Optional]_ - Recursively pin the object linked to by the specified objects. The default is `true`. -- `progress` _\[Optional]_ - Show progress. - -### Response - -On success, the call to this endpoint returns with 200 and the following body: - -#### Body - -```json -{ - "Pins": ["QmSTkR1kkqMuGEeBS49dxVJjgHRMH6cUYa7D3tcHDQ3ea3"] -} -``` - -#### Result fields - -- `Pins` - An array of Pin hashes. diff --git a/services/reference/ipfs/http-api-methods/pin_ls.md b/services/reference/ipfs/http-api-methods/pin_ls.md deleted file mode 100644 index d6c64c3190a..00000000000 --- a/services/reference/ipfs/http-api-methods/pin_ls.md +++ /dev/null @@ -1,60 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `pin_ls` - -## `/api/v0/pin/ls` - -Lists objects pinned to local storage. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/pin/ls?arg=&type=all&quiet=&stream=" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/pin/ls?arg=QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _[Optional]_ - Path to objects to be listed. -- `type` _[Optional]_ - The type of pinned keys to list. Can be `direct`, `indirect`, `recursive`, or `all`. The default is `all`. -- `quiet` _[Optional]_ - Write just hashes of objects. -- `stream` _[Optional]_ - Enable streaming of pins as they are discovered. - -### Response - -On success, the call to this endpoint returns with 200 and the following body: - -#### Body - -``` -{ - "PinLsList": { - "Keys": { - "": { - "Type": "string" - } - } - }, - "PinLsObject": { - "Cid": "string", - "Type": "string" - } -} -``` diff --git a/services/reference/ipfs/http-api-methods/pin_rm.md b/services/reference/ipfs/http-api-methods/pin_rm.md deleted file mode 100644 index df0396cde7c..00000000000 --- a/services/reference/ipfs/http-api-methods/pin_rm.md +++ /dev/null @@ -1,49 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `pin_rm` - -## `/api/v0/pin/rm` - -Remove pinned objects from local storage. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/pin/rm?arg=" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/pin/rm?arg=QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _\[Required]_ - Path to objects to be unpinned. - -### Response - -On success, the call to this endpoint returns with 200 and the following body: - -#### Body - -``` -{ - "Pins": [ - "string" - ] -} -``` diff --git a/services/reference/ipfs/http-api-methods/pin_update.md b/services/reference/ipfs/http-api-methods/pin_update.md deleted file mode 100644 index ffb323c60f3..00000000000 --- a/services/reference/ipfs/http-api-methods/pin_update.md +++ /dev/null @@ -1,51 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `pin_update` - -## `/api/v0/pin/update` - -Update a recursive pin. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/pin/update?arg=&arg=&unpin=true" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/pin/update?arg=QmfQ5QAjvg4GtA3wg3adpnDJug8ktA1BxurVqBD8rtgVjM&arg=QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `arg` _\[Required]_ - Path to old object. -- `arg` _\[Required]_ - Path to a new object to be pinned. -- `unpin` _\[Optional]_ - Remove the old pin. The default is `true.` - -### Response - -On success, the call to this endpoint returns with 200 and the following body: - -#### Body - -``` -{ - "Pins": [ - "string" - ] -} -``` diff --git a/services/reference/ipfs/http-api-methods/version.md b/services/reference/ipfs/http-api-methods/version.md deleted file mode 100644 index d2195ea5497..00000000000 --- a/services/reference/ipfs/http-api-methods/version.md +++ /dev/null @@ -1,54 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `version` - -## `/api/v0/pin/version` - -Show IPFS version information. - -### Request - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/version?number=&commit=&repo=&all=" \ - -X POST \ - -u ":" -``` - - - - -```bash -curl "https://ipfs.infura.io:5001/api/v0/version" \ - -X POST \ - -u ":" -``` - - - - -#### Request parameters - -- `number` _[Optional]_ - Only show the version number. -- `commit` _[Optional]_ - Show the commit hash. -- `repo` _[Optional]_ - Show repo version. -- `all` _[Optional]_ - Show all version information. - -### Response - -On success, the call to this endpoint returns with 200 and the following body: - -#### Body - -``` -{ - "Commit": "string", - "Golang": "string", - "Repo": "string", - "System": "string", - "Version": "string" -} -``` diff --git a/services/reference/ipfs/index.md b/services/reference/ipfs/index.md deleted file mode 100644 index e46e5bbf5fe..00000000000 --- a/services/reference/ipfs/index.md +++ /dev/null @@ -1,46 +0,0 @@ ---- -description: IPFS network information. ---- - -import CardList from '@site/src/components/CardList' - -# IPFS - -The [Interplanetary File System (IPFS)](../../how-to/use-ipfs/migrate-to-infuras-ipfs-service.md) is a distributed, [peer-to-peer (p2p)](https://en.wikipedia.org/wiki/Peer-to-peer) storage network used for storing and accessing files, websites, applications, and data. - -:::caution Restricted access - -New IPFS key creation is disabled for all users. Only IPFS keys that were active in late 2024 continue -to have access to the IPFS network. - -::: - -Content is accessible from peer nodes located anywhere in the world. These nodes relay information, store it, or both. - -To integrate your IPFS project with Infura, create an [Infura API key](../../get-started/infura.md#2-view-your-api-key). - -:::info See also - -See the [official IPFS documentation](https://docs.ipfs.io) for more information. Check out the [IPFS Quick Start docs](https://docs.ipfs.io/how-to/command-line-quick-start/#prerequisites) to get up and running with IPFS. - -::: - - diff --git a/services/reference/ipfs/quickstart.md b/services/reference/ipfs/quickstart.md deleted file mode 100644 index b9e8c252659..00000000000 --- a/services/reference/ipfs/quickstart.md +++ /dev/null @@ -1,302 +0,0 @@ ---- -description: IPFS quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# IPFS quickstart - -This quickstart guide will help you set up and make calls on the IPFS network using the Infura endpoints. - -:::caution Restricted access - -New IPFS key creation is disabled for all users. Only IPFS keys that were active in late 2024 continue -to have access to the IPFS network. - -::: - -## Prerequisites - -Before you begin, ensure you have a valid [API key](/developer-tools/dashboard/get-started/create-api) and -[API key secret](/developer-tools/dashboard/how-to/secure-an-api/api-key-secret). - -## Make calls - -### curl - -curl generates the auth header and encodes your credentials behind the scenes. - -Include the `-u` flag with the authentication information. - -```bash -curl -X POST -F file=@myfile -u ":" "https://ipfs.infura.io:5001/api/v0/add" -``` - -### JavaScript - -Wrap JavaScript calls to IPFS with the Infura `Authorization` header. - -```javascript -xhr.setRequestHeader("Authorization", "Basic " + btoa( + ":" + )); -``` - -### Node.js - -Replace `` and `` in the Node.js example code below. - -Save the following script to a file, for example, `index.js`. - -```javascript title="index.js" -const https = require('https') - -const projectId = '' -const projectSecret = '' - -const options = { - host: 'ipfs.infura.io', - port: 5001, - path: '/api/v0/pin/add?arg=QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn', - method: 'POST', - auth: projectId + ':' + projectSecret, -} - -let req = https.request(options, res => { - let body = '' - res.on('data', function (chunk) { - body += chunk - }) - res.on('end', function () { - console.log(body) - }) -}) -req.end() -``` - -In a terminal window, run the script using `node index.js`. -This outputs something like the following: - -``` -{"Pins":["QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn"]} -``` - -### Python - -Replace `` and `` in the Python example code below. - -Save the following script to a file, for example, `index.py`. - -```python title="index.py" -import requests - -projectId = "" -projectSecret = "" -endpoint = "https://ipfs.infura.io:5001" - -### CREATE AN ARRAY OF TEST FILES ### -files = { - "file": "myNFT.png" -} - -### ADD FILE TO IPFS AND SAVE THE HASH ### -response1 = requests.post(endpoint + "/api/v0/add", files=files, auth=(projectId, projectSecret)) -print(response1) -hash = response1.text.split(",")[1].split(":")[1].replace('"','') -print(hash) - -### READ FILE WITH HASH ### -params = { - "arg": hash -} -response2 = requests.post(endpoint + "/api/v0/cat", params=params, auth=(projectId, projectSecret)) -print(response2) -print(response2.text) - -### REMOVE OBJECT WITH PIN/RM ### -response3 = requests.post(endpoint + "/api/v0/pin/rm", params=params, auth=(projectId, projectSecret)) -print(response3.json()) -``` - -Run the script using `python index.py`. -This outputs something like the following: - -```bash - -QmWtBbpKST49AQFLx8HAdwwjUu7HBP2wrtAH1x8df5qrVm - -myNFT.png -{"Pins": ["QmWtBbpKST49AQFLx8HAdwwjUu7HBP2wrtAH1x8df5qrVm"]} -``` - -### `kubo-rpc-client` - -Use the official [`kubo-rpc-client`](https://github.com/ipfs/js-kubo-rpc-client) JavaScript client library. - -Install the library with `npm install --save kubo-rpc-client`. - -Save the following script to a file, for example, `index.mjs`. - -```javascript title="index.mjs" -import { create } from 'kubo-rpc-client' - -const projectId = '' -const projectSecret = '' -const auth = 'Basic ' + Buffer.from(projectId + ':' + projectSecret).toString('base64') - -const client = create({ - host: 'ipfs.infura.io', - port: 5001, - protocol: 'https', - headers: { - authorization: auth, - }, -}) - -client.pin.add('QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn').then(res => { - console.log(res) -}) -``` - -Run the script using `node index.mjs`. -This outputs something like the following: - -```bash -CID(QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn) -``` - -### `go-ipfs-api` - -- Use the official IPFS [`go-ipfs-api`](https://github.com/ipfs/go-ipfs-api) GoLang API. -- Install with `go get -u github.com/ipfs/go-ipfs-api`. -- Create a go module with `go mod init infura`. -- Save the following script to a file, for example, `index.go`, and include the Infura `auth` header with the `http.RoundTripper` wrapper. - -```go -package main - -import ( - "fmt" - "net/http" - "os" - "strings" - - ipfsApi "github.com/ipfs/go-ipfs-api" // v0.2.0 -) - -func main() { - projectId := "" - projectSecret := "" - - shell := ipfsApi.NewShellWithClient("https://ipfs.infura.io:5001", NewClient(projectId, projectSecret)) - cid, err := shell.Add(strings.NewReader("Infura IPFS - Getting started demo.")) - if err != nil { - fmt.Println(err) - os.Exit(1) - } - - fmt.Printf("Data successfully stored in IPFS: %v\n", cid) -} - -// NewClient creates an http.Client that automatically performs basic auth on each request. -func NewClient(projectId, projectSecret string) *http.Client { - return &http.Client{ - Transport: authTransport{ - RoundTripper: http.DefaultTransport, - ProjectId: projectId, - ProjectSecret: projectSecret, - }, - } -} - -// authTransport decorates each request with a basic auth header. -type authTransport struct { - http.RoundTripper - ProjectId string - ProjectSecret string -} - -func (t authTransport) RoundTrip(r *http.Request) (*http.Response, error) { - r.SetBasicAuth(t.ProjectId, t.ProjectSecret) - return t.RoundTripper.RoundTrip(r) -} -``` - -Run the script using `go run index.go`. -This outputs something like the following: - -```bash -CID(QmeGAVddnBSnKc1DLE7DLV9uuTqo5F7QbaveTjr45JUdQn) -``` - -## `go-ipfs-http-client` - -- Use the official IPFS [`go-ipfs-http-client`](https://github.com/ipfs/go-ipfs-http-client) GoLang API. -- Install with `go get github.com/ipfs/go-ipfs-http-client`. -- Create a go module with `go mod init infura`. -- Save the following script to a file, for example, `index.go`, and include the Infura `auth` header with the `http.RoundTripper` wrapper. - -```go -package main - -import ( - "context" - "encoding/base64" - "fmt" - "net/http" - "os" - "strings" - - ipfsFiles "github.com/ipfs/go-ipfs-files" // v0.0.8 - ipfsApi "github.com/ipfs/go-ipfs-http-client" // v0.1.0 -) - -func main() { - projectId := "" - projectSecret := "" - - httpClient := &http.Client{} - httpApi, err := ipfsApi.NewURLApiWithClient("https://ipfs.infura.io:5001", httpClient) - if err != nil { - fmt.Println(err) - os.Exit(1) - } - httpApi.Headers.Add("Authorization", "Basic " + basicAuth(projectId, projectSecret)) - - content := strings.NewReader("Infura IPFS - Getting started demo.") - p, err := httpApi.Unixfs().Add(context.Background(), ipfsFiles.NewReaderFile(content)) - if err != nil { - fmt.Println(err) - os.Exit(1) - } - - fmt.Printf("Data successfully stored in IPFS: %v\n", p.Cid().String()) -} - -func basicAuth(projectId, projectSecret string) string { - auth := projectId + ":" + projectSecret - return base64.StdEncoding.EncodeToString([]byte(auth)) -} -``` - -Run the script using `go run index.go`. -This outputs something like the following: - -```bash -Data successfully stored in IPFS: QmTHr95iiwSTA2USxx4g5kKnhqsNRixqohhwxjvdXmSrWn -``` - -## Next steps - -Now that you have successfully made a call to the IPFS network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other IPFS APIs**: Infura supports a wide range of APIs. You can find more information in the - [HTTP API methods documentation](http-api-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Arbitrum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/linea/index.md b/services/reference/linea/index.md deleted file mode 100644 index 78e36e7965c..00000000000 --- a/services/reference/linea/index.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -description: Linea network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Linea - -Linea is a type 2 zero knowledge Ethereum Virtual Machine (zkEVM) that scales the experience of Ethereum. - -Linea allows you to deploy any smart contract, use any tool, and develop as if you're building -on Ethereum. For users, this enables the experience and security guarantees of Ethereum, but with lower transaction costs. - -:::info see also - -See the [official Linea documentation](https://docs.linea.build/) for more information. - -::: - - diff --git a/services/reference/linea/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/linea/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index 71c0ea489ab..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [],"id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_block-address.mdx b/services/reference/linea/json-rpc-methods/_eth_block-address.mdx deleted file mode 100644 index 30ebf143019..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_block-address.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `address`: [_required_] A string representing the address (20 bytes) to check for balance. -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: diff --git a/services/reference/linea/json-rpc-methods/_eth_block-parameter.mdx b/services/reference/linea/json-rpc-methods/_eth_block-parameter.mdx deleted file mode 100644 index 51f61592763..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_block-parameter.mdx +++ /dev/null @@ -1,5 +0,0 @@ -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: diff --git a/services/reference/linea/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/linea/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 3a70a845262..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_call-parameters.mdx b/services/reference/linea/json-rpc-methods/_eth_call-parameters.mdx deleted file mode 100644 index b10056de90f..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_call-parameters.mdx +++ /dev/null @@ -1,13 +0,0 @@ -- `from`: 20 bytes [_required_] Address the transaction is sent from. -- `to`: 20 bytes - Address the transaction is directed to. -- `gas`: Hexadecimal value of the gas provided for the transaction execution. `eth_call` consumes zero gas, but this parameter may be needed by some executions. -- `gasPrice`: Hexadecimal value of the `gasPrice` used for each paid gas. -- `maxPriorityFeePerGas`: Maximum fee, in wei, the sender is willing to pay per gas above the base fee. See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). -- `maxFeePerGas`: Maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). -- `value`: Hexadecimal of the value sent with this transaction. -- `data`: Hash of the method signature and encoded parameters. See [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: diff --git a/services/reference/linea/json-rpc-methods/_eth_call-request.mdx b/services/reference/linea/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 1c15a124609..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155","to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155","to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/linea/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 8ec72c191a2..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_estimategas-parameters.mdx b/services/reference/linea/json-rpc-methods/_eth_estimategas-parameters.mdx deleted file mode 100644 index 3110552c3ee..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_estimategas-parameters.mdx +++ /dev/null @@ -1,25 +0,0 @@ -- `TRANSACTION CALL OBJECT` _\[required]_ - - `from`: _\[optional]_ 20 Bytes - The address the transaction is sent from. - - `to`: 20 Bytes - The address the transaction is directed to. - - `gas`: _\[optional]_ Hexadecimal value of the gas provided for the transaction execution. `eth_estimateGas` consumes - zero gas, but this parameter may be needed by some executions. - - `gasPrice`: _\[optional]_ Hexadecimal value of the gas price used for each paid gas. - - `maxPriorityFeePerGas`: _\[optional]_ Maximum fee, in wei, the sender is willing to pay per gas - above the base fee. - See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). - - `maxFeePerGas`: _\[optional]_ Maximum total fee (base fee + priority fee), in wei, the sender is - willing to pay per gas. - See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). - - `value`: _\[optional]_ Hexadecimal value of the value sent with this transaction. - - `data`: _\[optional]_ Hash of the method signature and encoded parameters. See the - [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). - - `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, - `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: - -If no gas limit is specified, geth uses the block gas limit from the pending block as an upper bound. -As a result the returned estimate might not be enough to executed the call/transaction when the amount -of gas is higher than the pending block gas limit. diff --git a/services/reference/linea/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/linea/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 26ca80ae37a..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/linea/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index 83afa2465ee..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_feeHistory","params":["0x5", "latest", []],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/linea/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 0032eaf928a..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_gasPrice","params": [],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_gasPrice","params": [],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index 1c86d700661..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getBalance","params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index e701109c233..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getBlockByHash","params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35",false],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getBlockByHash","params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35",false],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getblockbynumber-parameters.mdx b/services/reference/linea/json-rpc-methods/_eth_getblockbynumber-parameters.mdx deleted file mode 100644 index 811a218c605..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getblockbynumber-parameters.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: -- `show transaction details flag`: [_required_] If set to `true`, returns the full transaction objects. If `false` returns only the hashes of the transactions. diff --git a/services/reference/linea/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 17b02144a1f..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index ffdb1ab2f93..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 006ff936494..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index 13f67e60a5a..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index f958e687f26..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getCode","params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getCode","params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getlogs-parameters.mdx b/services/reference/linea/json-rpc-methods/_eth_getlogs-parameters.mdx deleted file mode 100644 index 0126be9cc49..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getlogs-parameters.mdx +++ /dev/null @@ -1,11 +0,0 @@ -A filter object containing the following: - -- `address`: [_optional_] Contract address (20 bytes) or a list of addresses from which logs should originate. -- `fromBlock`: (string) _[optional, default is "latest"]_ A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- `toBlock`: (string) _[optional, default is "latest"]_ A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: -- `topics`: _[optional]_ Array of 32 bytes DATA topics. Topics are order-dependent. -- `blockhash`: _[optional]_ Restricts the logs returned to the single block referenced in the 32-byte hash `blockHash`. Using `blockHash` is equivalent to setting `fromBlock` and `toBlock` to the block number referenced in the `blockHash`. If `blockHash` is present in the filter criteria, then neither `fromBlock` nor `toBlock` are allowed. diff --git a/services/reference/linea/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 056ca666afe..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getproof-parameters.mdx b/services/reference/linea/json-rpc-methods/_eth_getproof-parameters.mdx deleted file mode 100644 index c91db635555..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getproof-parameters.mdx +++ /dev/null @@ -1,7 +0,0 @@ -- `address`: A string representing the address (20 bytes) to check for balance. -- `storageKeys`: An array of 32-byte storage keys to be proofed and included. -- `blockParameter`: (string) A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: diff --git a/services/reference/linea/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index baf53c60107..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "eth_getProof","id": 1,"params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getProof","params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_getstorageat-parameters.mdx b/services/reference/linea/json-rpc-methods/_eth_getstorageat-parameters.mdx deleted file mode 100644 index cc0a3bcacb0..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getstorageat-parameters.mdx +++ /dev/null @@ -1,7 +0,0 @@ -- `address`: [_required_] A string representing the address (20 bytes) to check for balance. -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: -- `storage position`: [_required_] A hexadecimal code of the position in the storage. diff --git a/services/reference/linea/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/linea/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 6e68cad7940..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index b0065aa1723..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockHashAndIndex","params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-parameters.mdx b/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-parameters.mdx deleted file mode 100644 index a40aeaaad1b..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-parameters.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - Learn more about [Linea's layer 2 finalization](https://docs.linea.build/developers/guides/finalized-block). - ::: -- `transaction index position`: [_required_] A hexadecimal of the integer representing the position in the block. diff --git a/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index f92d5d945af..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockNumberAndIndex","params": ["0x5BAD55","0x0"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getTransactionByBlockNumberAndIndex","params": ["0x5BAD55","0x0"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/linea/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index b811c713dd1..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/linea/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 5aa54298866..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f","0x5bad55"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f","0x5bad55"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/linea/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index efbfbbed8bf..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/linea/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 29bf9fc2184..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_maxPriorityFeePerGas","params": [],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_maxPriorityFeePerGas","params": [],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/linea/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index e5b953a03e5..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/linea/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index 4cd1308d34c..00000000000 --- a/services/reference/linea/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_net_listening-request.mdx b/services/reference/linea/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index 11057036e18..00000000000 --- a/services/reference/linea/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"net_listening","params": [],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"net_listening","params": [],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_net_peercount-request.mdx b/services/reference/linea/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 99a7245251c..00000000000 --- a/services/reference/linea/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_net_version-request.mdx b/services/reference/linea/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index fa60cf1e487..00000000000 --- a/services/reference/linea/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"net_version","params": [],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"net_version","params": [],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/linea/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 7e15f81227a..00000000000 --- a/services/reference/linea/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"web3_clientVersion","params": [],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"web3_clientVersion","params": [],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/linea/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index c2faf05f1b4..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/linea/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/linea/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index 1530e381827..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/linea/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/linea/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 648b666bf67..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/linea/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/linea/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index e3f4a844cd5..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/linea/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/linea/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index 04f3e00318a..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/linea/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/bundler/index.md b/services/reference/linea/json-rpc-methods/bundler/index.md deleted file mode 100644 index 11a5232642d..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Linea bundler methods -sidebar_label: Bundler methods -sidebar_key: linea-bundler-methods -description: Linea bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Linea mainnet -and Sepolia: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/linea/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/linea/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index 935445120b2..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/linea/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/linea/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index a9ba5137b39..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/linea/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/linea/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index 2e5f63916f8..00000000000 --- a/services/reference/linea/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/linea/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx b/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx deleted file mode 100644 index dc2c78d5b9a..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx b/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx deleted file mode 100644 index be0124d6445..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ \ --x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/debug/_debug_tracetransaction-request.mdx b/services/reference/linea/json-rpc-methods/debug/_debug_tracetransaction-request.mdx deleted file mode 100644 index 8b9d6d93f52..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/_debug_tracetransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.mdx b/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.mdx deleted file mode 100644 index 40986cd30ac..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the block specified by the block hash. -title: Mantle debug_traceBlockByHash -sidebar_label: debug_traceBlockByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceBlockByHash` - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx' - - - -### Request - -import Request from './_debug_traceblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.mdx b/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.mdx deleted file mode 100644 index dd23dfcb7c4..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/debug_traceblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the specified block number. -title: Mantle debug_traceBlockByNumber -sidebar_label: debug_traceBlockByNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceBlockByNumber` - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx' - - - -### Request - -import Request from './_debug_traceblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.mdx b/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.mdx deleted file mode 100644 index 2f2df98f1cc..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/debug_tracetransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Returns tracing results for the specified transaction. -title: Mantle debug_traceTransaction -sidebar_label: debug_traceTransaction ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceTransaction` - -import Description from '/services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_tracetransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx' - - - -### Request - -import Request from './_debug_tracetransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/debug/index.md b/services/reference/linea/json-rpc-methods/debug/index.md deleted file mode 100644 index 6353ec967d9..00000000000 --- a/services/reference/linea/json-rpc-methods/debug/index.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -description: Linea debug methods. -sidebar_label: Debug methods -sidebar_key: linea-debug-methods ---- - -# Linea debug methods - -The debug API methods allow you to inspect and debug the network. Infura supports the following debug methods on the -Linea network: - -- [`debug_traceBlockByHash`](debug_traceblockbyhash.mdx) -- [`debug_traceBlockByNumber`](debug_traceblockbynumber.mdx) -- [`debug_traceTransaction`](debug_tracetransaction.mdx) - -## Debug tracing types - -The debug methods support the `callTracer` and `prestateTracer` tracing types, which return different results when specified -in the supported debug methods. - -### `callTracer` - -The `callTracer` tracing type tracks all the call frames executed during a transaction, including the initial call. It returns a nested list of call frames, resembling how the EVM works. They form a tree with the top-level call at root -and sub-calls as children of the higher levels. - -The `callTracer` type returns an object with the following results: - -| Field | Type | Description | -| -------------- | ------ | -------------------------------------------------------------------------------------------------------------------- | -| `type` | string | The type of call. | -| `from` | string | The address the transaction is sent from. | -| `to` | string | The address the transaction is directed to. | -| `value` | string | The amount transferred in the call (hex-encoded). | -| `gas` | string | The amount of gas provided for the call (hex-encoded). | -| `gasUsed` | string | The amount of gas used by the call (hex-encoded). | -| `input` | string | The call data. | -| `output` | string | The return data. | -| `error` | string | If an error occurred during the call, this field will contain the error message. | -| `revertReason` | string | If the contract execution was reverted, this field will contain the reason for the revert (if provided by Solidity). | -| `calls` | array | Sub-calls made by the contract during the execution of the transaction. | - -### `prestateTracer` - -The `prestateTracer` tracing type records and tracks every change made to the state during the execution of transactions. It -generates an object that contains keys representing the addresses of the accounts involved in the transactions. The -corresponding values are objects that include specific fields related to the state changes made during the transaction: - -| Field | Type | Description | -| --------- | ------ | ------------------------------------ | -| `balance` | string | The account balance. | -| `nonce` | uint64 | The nonce value for the transaction. | -| `code` | string | The hex-encoded bytecode. | -| `storage` | map | The storage slots of the contract. | diff --git a/services/reference/linea/json-rpc-methods/eth_accounts.mdx b/services/reference/linea/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index 9c9eba2eb69..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_accounts -sidebar_label: eth_accounts -description: Returns a null value on Linea. ---- - -# `eth_accounts` - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_blocknumber.mdx b/services/reference/linea/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index fcd6dd019a9..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest block number on Linea. ---- - -# `eth_blockNumber` - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_call.mdx b/services/reference/linea/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 035657ca868..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_call -sidebar_label: eth_call -description: Executes a new message call without creating a transaction on Linea. ---- - -# `eth_call` - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_chainid.mdx b/services/reference/linea/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 12b647b24fa..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_chainId -sidebar_label: eth_chainId -description: Returns the chainId on Linea. ---- - -# `eth_chainId` - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_estimategas.mdx b/services/reference/linea/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 66ccdafdfa0..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea eth_estimateGas -sidebar_label: eth_estimateGas ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from './_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_feehistory.mdx b/services/reference/linea/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index 4c1f3ea51d4..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_feeHistory -sidebar_label: eth_feeHistory -description: Get transaction fee history on Linea. ---- - -# `eth_feeHistory` - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_gasprice.mdx b/services/reference/linea/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 14466e8da79..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current price per gas on Linea. ---- - -# `eth_gasPrice` - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getbalance.mdx b/services/reference/linea/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 1b99907c542..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getBalance -sidebar_label: eth_getBalance -description: Get balance of an account on Linea. ---- - -# `eth_getBalance` - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/linea/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 5a7337b8b40..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Get block by block hash on Linea. ---- - -# `eth_getBlockByHash` - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/linea/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 328f04c5384..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Get block by block number on Linea. ---- - -# `eth_getBlockByNumber` - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - - - -## Parameters - -import Parameters from './_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/linea/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index 25217fa0e9c..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Get block receipts by block number on Linea. ---- - -# `eth_getBlockReceipts` - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/linea/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 9c4a873fa20..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Get number of transactions by hash on Linea. ---- - -# `eth_getBlockTransactionCountByHash` - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/linea/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 2d4a35a6be7..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Get number of transactions by block number on Linea. ---- - -# `eth_getBlockTransactionCountByNumber` - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getcode.mdx b/services/reference/linea/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 101a65421f5..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getCode -sidebar_label: eth_getCode -description: Get smart contract code on Linea. ---- - -# `eth_getCode` - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getlogs.mdx b/services/reference/linea/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 1504b0c6bd5..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Linea. ---- - -# `eth_getLogs` - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - - - -## Parameters - -import Parameters from './_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getproof.mdx b/services/reference/linea/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index db07013eb8b..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getProof -sidebar_label: eth_getProof -description: Get Merkle proof on Linea. ---- - -# `eth_getProof` - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - - - -## Parameters - -import Parameters from './_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_getstorageat.mdx b/services/reference/linea/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 6757e33caaf..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Get value from storage on Linea. ---- - -# `eth_getStorageAt` - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - - - -## Parameters - -import Parameters from './_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/linea/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index c4702518072..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Get transaction by block hash and index on Linea. ---- - -# `eth_getTransactionByBlockHashAndIndex` - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/linea/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 399abbf7282..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Get transaction by block identifier and index on Linea. ---- - -# `eth_getTransactionByBlockNumberAndIndex` - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - - - -## Parameters - -import Parameters from './_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/linea/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 5bcbe0265a4..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Get transaction by transaction hash on Linea. ---- - -# `eth_getTransactionByHash` - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/linea/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index b2b1366abbc..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Get transaction count on Linea. ---- - -# `eth_getTransactionCount` - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/linea/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 95bc2b83c86..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Get transaction receipt by hash on Linea. ---- - -# `eth_getTransactionReceipt` - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/linea/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index a3f1b7e2623..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Returns the current max priority fee per gas on Linea. ---- - -# `eth_maxPriorityFeePerGas` - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/linea/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index df88d1995a3..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Linea. ---- - -# `eth_sendRawTransaction` - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/eth_syncing.mdx b/services/reference/linea/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 9f328372afd..00000000000 --- a/services/reference/linea/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea eth_syncing -sidebar_label: eth_syncing -description: Returns sync status on Linea. ---- - -# `eth_syncing` - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx b/services/reference/linea/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx deleted file mode 100644 index 9af4061a899..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx b/services/reference/linea/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx deleted file mode 100644 index cf5eca05646..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx b/services/reference/linea/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx deleted file mode 100644 index 53f465e9746..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx b/services/reference/linea/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx deleted file mode 100644 index b6cf785f297..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx b/services/reference/linea/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx deleted file mode 100644 index 618d87b42f6..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx b/services/reference/linea/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx deleted file mode 100644 index 2a67b199e52..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea eth_getFilterChanges -sidebar_label: eth_getFilterChanges ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx' - -# `eth_getFilterChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-example.mdx' - - - -### Request - -import Request from './_eth_getfilterchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx b/services/reference/linea/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx deleted file mode 100644 index e49a8794954..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea eth_getFilterLogs -sidebar_label: eth_getFilterLogs ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx' - -# `eth_getFilterLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-example.mdx' - - - -### Request - -import Request from './_eth_getfilterlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/eth_newblockfilter.mdx b/services/reference/linea/json-rpc-methods/filter-methods/eth_newblockfilter.mdx deleted file mode 100644 index 1bd3f1ac8db..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/eth_newblockfilter.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea eth_newBlockFilter -sidebar_label: eth_newBlockFilter ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx' - -# `eth_newBlockFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newblockfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newblockfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newblockfilter-example.mdx' - - - -### Request - -import Request from './_eth_newblockfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newblockfilter-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/eth_newfilter.mdx b/services/reference/linea/json-rpc-methods/filter-methods/eth_newfilter.mdx deleted file mode 100644 index 490f0ef6743..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/eth_newfilter.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea eth_newFilter -sidebar_label: eth_newFilter ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx' - -# `eth_newFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newfilter-example.mdx' - - - -### Request - -import Request from './_eth_newfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newfilter-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx b/services/reference/linea/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx deleted file mode 100644 index f05f1e5241f..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea eth_uninstallFilter -sidebar_label: eth_uninstallFilter ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx' - -# `eth_uninstallFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-example.mdx' - - - -### Request - -import Request from './_eth_uninstallfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/filter-methods/index.md b/services/reference/linea/json-rpc-methods/filter-methods/index.md deleted file mode 100644 index cacd38a6ba8..00000000000 --- a/services/reference/linea/json-rpc-methods/filter-methods/index.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Linea filter methods -sidebar_label: Filter methods -sidebar_key: linea-filter-methods -description: Linea filter methods ---- - -# Linea filter methods - -Infura supports the following filter methods over both HTTP and WebSocket. In both cases, the filter IDs -can be shared by any connection using the same API key. - -- [`eth_getFilterChanges`](eth_getfilterchanges.mdx) -- [`eth_getFilterLogs`](eth_getfilterlogs.mdx) -- [`eth_newBlockFilter`](eth_newblockfilter.mdx) -- [`eth_newFilter`](eth_newfilter.mdx) -- [`eth_uninstallFilter`](eth_uninstallfilter.mdx) - -Filters that are not polled using [`eth_getFilterChanges`](eth_getfilterchanges.mdx) automatically -expires after fifteen minutes of inactivity. diff --git a/services/reference/linea/json-rpc-methods/index.md b/services/reference/linea/json-rpc-methods/index.md deleted file mode 100644 index 0ed7f4acd84..00000000000 --- a/services/reference/linea/json-rpc-methods/index.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -sidebar_label: JSON-RPC API -sidebar_key: linea-json-rpc-api ---- - -# Linea JSON-RPC API - -Linea supports the standard [Ethereum JSON-RPC APIs](../../ethereum/json-rpc-methods/index.md) and additional -[debug methods](debug/index.md) not supported on Ethereum by Infura. - -:::info - -- WebSockets are also supported on the Linea network and can be used to set up bidirectional - stateful [subscriptions](subscription-methods/index.md). -- `eth_newFilter` and `eth_newBlockFilter` methods are not supported. - -::: diff --git a/services/reference/linea/json-rpc-methods/linea_estimategas.mdx b/services/reference/linea/json-rpc-methods/linea_estimategas.mdx deleted file mode 100644 index de22dd7001b..00000000000 --- a/services/reference/linea/json-rpc-methods/linea_estimategas.mdx +++ /dev/null @@ -1,140 +0,0 @@ ---- -title: linea_estimateGas -sidebar_label: linea_estimateGas ---- - -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `linea_estimateGas` - -Generates and returns the estimated amount of gas required to allow the transaction to complete and be -published on Ethereum. The method does not submit the transaction to the blockchain. - -The `priorityFeePerGas` returned by this method includes the cost of submitting the transaction to Ethereum, which -can vary based on the size of the `calldata`. - -:::info - -For more information about estimating gas, and how this API formulates the transaction costs, see the -[Linea gas fees documentation](https://docs.linea.build/build-on-linea/gas-fees). - -::: - -:::note - -`linea_estimateGas` uses the same inputs as the standard [`eth_estimateGas`](https://docs.infura.io/api/networks/linea/json-rpc-methods/eth_estimategas), -but returns the recommended gas limit, the base fee per gas, and the priority fee per gas. -We recommend using `linea_estimateGas` for more accurate results. - -::: - -## Parameters - -- `call`: _\[required]_ Transaction call object: - - `from`: _\[optional]_ 20 bytes - The address the transaction is sent from. - - `to`: _\[optional]_ 20 bytes - The address the transaction is directed to. - - `gas`: _\[optional]_ Hexadecimal value of the gas provided for the transaction execution. `linea_estimateGas` consumes - zero gas, but this parameter may be needed by some executions. - - `gasPrice`: _\[optional]_ Hexadecimal value of the gas price used for each paid gas. - - `maxPriorityFeePerGas`: _\[optional]_ Maximum fee, in wei, the sender is willing to pay per gas above the base fee. - - `maxFeePerGas`: _\[optional]_ Maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. - - `value`: _\[optional]_ Hexadecimal value of the value sent with this transaction. - - `data`: _\[optional]_ Hash of the method signature and encoded parameters. See the - [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). -- `stateOverride`: _\[optional]_ Object that contains the address-to-state mapping to [override state values](#override-state-values). - Each entry specifies a state that will be temporarily overridden before executing the call: - - `balance`: _\[optional]_ Hexadecimal value of the temporary account balance for the call execution. - - `nonce`: _\[optional]_ Hexadecimal value of the temporary nonce for the call execution. - - `code` : _\[optional]_ Bytecode to inject into the account. - - `stateDiff`: `key:value` pairs to override individual slots in the account storage. - -## Returns - -Hexadecimal values representing the recommended gas limit, the base fee per gas, and the priority fee per gas. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"linea_estimateGas","params":[{"from":"0x42c27251C710864Cf76f1b9918Ace3E585e6E21b","value":"0x1","gasPrice":"0x100000000","gas":"0x21000"}],"id":53}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"linea_estimateGas","params":[{"from":"0x42c27251C710864Cf76f1b9918Ace3E585e6E21b","value":"0x1","gasPrice":"0x100000000","gas":"0x21000"}],"id":53}' -``` - - - - -### Response - - - - -```JSON -{ - "jsonrpc": "2.0", - "id": 53, - "result": { - "baseFeePerGas": "0x7", - "gasLimit": "0xcf08", - "priorityFeePerGas": "0x43a82a4" - } -} -``` - - - - -## Override state values - -You can override an account with temporary state values before making the call. This allows you to -make temporary state changes without affecting the actual blockchain state. - -The following example estimates the cost for transferring an ERC-20 token for an account which does not -have the required assets onchain. - -The example sets a custom ETH balance for the sender (to cover gas costs) and modifies the account's -balance within the ERC-20 contract's storage for the duration of the call. - -```json -curl https://linea-mainnet.infura.io/v3/ \ --X POST \ --H "Content-Type: application/json" \ --d '{ - "jsonrpc":"2.0", - "method":"linea_estimateGas", - "params":[ - { - "from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73", - "to":"0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f", - "data":"0xa9059cbb000000000000000000000000627306090abaB3A6e1400e9345bC60c78a8BEf570000000000000000000000000000000000000000000000001bc16d674ec80000" - }, - { - "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73": { - "balance": "0x16345785d8a0000" - }, - "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f": { - "stateDiff": { - "0x2d206e5210c119b1cbed144f517f1f1dfd586eed26793a233e6afc261f4cf97f":"0x0000000000000000000000000000000000000000000000001bc16d674ec80000" - } - } - } - ], - "id":53 -}' -``` diff --git a/services/reference/linea/json-rpc-methods/linea_gettransactionexclusionstatusv1.mdx b/services/reference/linea/json-rpc-methods/linea_gettransactionexclusionstatusv1.mdx deleted file mode 100644 index bc17071e2da..00000000000 --- a/services/reference/linea/json-rpc-methods/linea_gettransactionexclusionstatusv1.mdx +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: Linea linea_getTransactionExclusionStatusV1 -sidebar_label: linea_getTransactionExclusionStatusV1 -description: Verify if a transaction exceeded data line limits on Linea. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `linea_getTransactionExclusionStatusV1` - -Checks if a transaction was rejected for exceeding data line limits, preventing the prover from generating a proof to be included in a block. - -Rejected transaction data is only available within seven days of the transaction attempt. Querying older transactions returns a null response. - -## Parameters - -- `transactionHash`: [_Required_] A string representing the hash (32 bytes) of a transaction. - -## Returns - -A transaction exclusion object, or `null` if the transaction was not excluded or the data has been purged. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "linea_getTransactionExclusionStatusV1", "params": ["0x526e56101cf39c1e717cef9cedf6fdddb42684711abda35bae51136dbb350ad7"], "id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "linea_getTransactionExclusionStatusV1", "params": ["0x526e56101cf39c1e717cef9cedf6fdddb42684711abda35bae51136dbb350ad7"], "id": 1}' -``` - - - - -### Response - - - - -```JSON -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "txHash": "0x526e56101cf39c1e717cef9cedf6fdddb42684711abda35bae51136dbb350ad7", - "from": "0x4d144d7b9c96b26361d6ac74dd1d8267edca4fc2", - "nonce": "0x64", - "txRejectionStage": "SEQUENCER", - "reasonMessage": "Transaction line count for module ADD=402 is above the limit 70", - "blockNumber": "0x3039", - "timestamp": "2024-08-22T09:18:51Z" - } -} -``` - - - diff --git a/services/reference/linea/json-rpc-methods/net_listening.mdx b/services/reference/linea/json-rpc-methods/net_listening.mdx deleted file mode 100644 index f7e15c066e2..00000000000 --- a/services/reference/linea/json-rpc-methods/net_listening.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea net_listening -sidebar_label: net_listening -description: Returns true if the client is actively listening for network connections on Linea. ---- - -# `net_listening` - -import Description from '/services/reference/_partials/_net_listening-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_net_listening-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_listening-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_listening-example.mdx' - - - -### Request - -import Request from './_net_listening-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_listening-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/net_peercount.mdx b/services/reference/linea/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 357314d8099..00000000000 --- a/services/reference/linea/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea net_peerCount -sidebar_label: net_peerCount -description: Returns the number of peers currently connected to the client on Linea. ---- - -# `net_peerCount` - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/net_version.mdx b/services/reference/linea/json-rpc-methods/net_version.mdx deleted file mode 100644 index c8e1f98ecbc..00000000000 --- a/services/reference/linea/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea net_version -sidebar_label: net_version -description: Returns the chainId as a decimal on Linea. ---- - -# `net_version` - -import Description from '/services/reference/_partials/_net_version-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/linea/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index c2bf3b7f1df..00000000000 --- a/services/reference/linea/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,27 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://linea-sepolia.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://linea-sepolia.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics":["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - - - -```bash -wscat -c wss://linea-sepolia.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/linea/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index a67b58bf61f..00000000000 --- a/services/reference/linea/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,13 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - - diff --git a/services/reference/linea/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/linea/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index 74c457f3a0d..00000000000 --- a/services/reference/linea/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,47 +0,0 @@ ---- -title: Linea eth_subscribe -sidebar_label: eth_subscribe ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters.mdx' - - - -:::note -The `newPendingTransactions` event is only available on Linea Sepolia. -::: - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/linea/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index d5ce98cab89..00000000000 --- a/services/reference/linea/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea eth_unsubscribe -sidebar_label: eth_unsubscribe ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/subscription-methods/index.md b/services/reference/linea/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index 51e19dfbb9a..00000000000 --- a/services/reference/linea/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: Linea subscription methods -sidebar_label: Subscription methods -sidebar_key: linea-subscription-methods ---- - -# Linea subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/linea/json-rpc-methods/trace-methods/_trace_block-request.mdx b/services/reference/linea/json-rpc-methods/trace-methods/_trace_block-request.mdx deleted file mode 100644 index 63748532f78..00000000000 --- a/services/reference/linea/json-rpc-methods/trace-methods/_trace_block-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"trace_block","params":["0x6"],"id":1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"trace_block","params":["0x6"],"id":1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/trace-methods/_trace_transaction-request.mdx b/services/reference/linea/json-rpc-methods/trace-methods/_trace_transaction-request.mdx deleted file mode 100644 index 4dc9bb66bd9..00000000000 --- a/services/reference/linea/json-rpc-methods/trace-methods/_trace_transaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "trace_transaction","params": ["0x4c253746668dca6ac3f7b9bc18248b558a95b5fc881d140872c2dff984d344a7"],"id": 1}' -``` - - - - -```bash -wscat -c wss://linea-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "trace_transaction","params": ["0x4c253746668dca6ac3f7b9bc18248b558a95b5fc881d140872c2dff984d344a7"],"id": 1}' -``` - - - diff --git a/services/reference/linea/json-rpc-methods/trace-methods/index.md b/services/reference/linea/json-rpc-methods/trace-methods/index.md deleted file mode 100644 index 702b78c1ebd..00000000000 --- a/services/reference/linea/json-rpc-methods/trace-methods/index.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -title: Linea trace methods -sidebar_label: Trace methods -sidebar_key: linea-trace-methods ---- - -# Linea trace methods - -Infura provides access to the following trace API methods to allow users to gain insights into the execution of smart contracts and transactions: - -- [`trace_block`](trace_block.mdx) -- [`trace_transaction`](trace_transaction.mdx) - -:::info - -- Trace API is currently an open beta feature, available to paying Infura customers. -- `trace_block` and `trace_transaction` returns [`trace`](#trace) diagnostic information. - -::: - -## `trace` - -Provides an ordered trace of the instructions executed by the Ethereum Virtual Machine (EVM) during the execution of a -smart contract transaction. Excludes precompiled contracts. - -```json title="Trace example" -"trace":[ - { - "action":{ - "callType":"call", - "from":"0xfe3b557e8fb62b89f4916b721be55ceb828dbd73", - "gas":"0xffadea", - "input":"0x", - "to":"0x0100000000000000000000000000000000000000", - "value":"0x0" - }, - "result":{ - "gasUsed":"0x1e", - "output":"0x" - }, - "subtraces":0, - "traceAddress":[ - ], - "type":"call" - } -] -``` - -| Key | Value | -| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `action` | Transaction details. | -| `callType` | Whether the transaction is `call` or `create`. | -| `from` | Address of the transaction sender. | -| `gas` | Gas provided by sender. | -| `input` | Transaction data. | -| `to` | Target of the transaction. | -| `value` | Value transferred in the transaction. | -| `result` | Transaction result. | -| `gasUsed` | Gas used by the transaction. Includes any refunds of unused gas. | -| `output` | Return value of the contract call. Contains only the actual value sent by a `RETURN` operation. If a `RETURN` was not executed, the output is empty bytes. | -| `subtraces` | Traces of contract calls made by the transaction. | -| `traceAddress` | Tree list address of where the call occurred, address of the parents, and order of the current sub call. | -| `transactionHash` | Hash of the transaction. | -| `transactionPosition` | Transaction position. | -| `type` | Whether the transaction is a `CALL` or `CREATE` series operation. | diff --git a/services/reference/linea/json-rpc-methods/trace-methods/trace_block.mdx b/services/reference/linea/json-rpc-methods/trace-methods/trace_block.mdx deleted file mode 100644 index c57e5c6e09b..00000000000 --- a/services/reference/linea/json-rpc-methods/trace-methods/trace_block.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea trace_block -sidebar_label: trace_block ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/trace-methods/_trace_block-description.mdx' - -# `trace_block` - - - -## Parameters - -import Params from '../_eth_block-parameter.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/trace-methods/_trace_block-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/trace-methods/_trace_block-example.mdx' - - - -### Request - -import Request from './_trace_block-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/trace-methods/_trace_block-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/trace-methods/trace_transaction.mdx b/services/reference/linea/json-rpc-methods/trace-methods/trace_transaction.mdx deleted file mode 100644 index 5d8df87196f..00000000000 --- a/services/reference/linea/json-rpc-methods/trace-methods/trace_transaction.mdx +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: Linea trace_transaction -sidebar_label: trace_transaction ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/trace-methods/_trace_transaction-description.mdx' - -# `trace_transaction` - - - -## Parameters - -import Params from '/services/reference/_partials/trace-methods/_trace_transaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/trace-methods/_trace_transaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/trace-methods/_trace_transaction-example.mdx' - - - -### Request - -import Request from './_trace_transaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/trace-methods/_trace_transaction-response.mdx' - - diff --git a/services/reference/linea/json-rpc-methods/web3_clientversion.mdx b/services/reference/linea/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index af4cb76e0a3..00000000000 --- a/services/reference/linea/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Linea web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns the current client version on Linea. ---- - -# `web3_clientVersion` - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - - - -## Parameters - -import Parameters from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/linea/quickstart.md b/services/reference/linea/quickstart.md deleted file mode 100644 index 2e61d9b8e71..00000000000 --- a/services/reference/linea/quickstart.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -description: Linea quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Linea quickstart - -This quickstart guide will help you set up and make calls on the Linea network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Linea network! - - -## Prerequisites - -- Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Linea network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://linea-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://linea-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://linea-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://linea-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://linea-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Linea network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Linea APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Arbitrum, Polygon, Optimism, IPFS, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/mantle/index.md b/services/reference/mantle/index.md deleted file mode 100644 index d51dce4301a..00000000000 --- a/services/reference/mantle/index.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -description: Mantle network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Mantle - -:::note Decentralized Infrastructure Network (DIN) - -Mantle is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -Infura provides Open Beta access to Mantle. During this period, there might be feature limitations. Performance issues are not expected, but they are possible as we optimize and stabilize the service. - -::: - -Mantle is an Ethereum layer 2 (L2) scaling solution that leverages an optimistic rollup architecture -to offer a seamless experience for both users and developers within the Ethereum ecosystem. -By integrating a modular design, the Mantle network enhances this architecture with innovative data -availability solutions. - -This approach not only ensures cheaper and more accessible data but also maintains the robust security -inherent to Ethereum, making it an efficient and secure choice for scaling Ethereum applications. - -:::info See also - -See also the [official Mantle documentation](https://docs-v2.mantle.xyz/) for more information. - -::: - -Select one of the following options to get started with the Mantle network: - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partner provides access to the Mantle network: - -- 0xFury ([Privacy policy](https://0xfury.com/privacy)) -- Bware Labs ([Terms of Use](https://bwarelabs.com/terms), [Privacy Policy](https://bwarelabs.com/privacy)) diff --git a/services/reference/mantle/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index e7d62c8c1a0..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 1c8cff412a3..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params":[], "id": 1}' -``` - - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_call-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 9df3373ed12..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 89560b70907..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 5a098f1b000..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index d7ec1b270a2..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", []], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index aac7ecedfdb..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index 43971953a25..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 41dcd2ba114..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index f2cbfec1723..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 9d7d2ace8ea..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index f08cec6c198..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index c935b7a68a4..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index b5d2db2fd23..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id":1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index d970a44e7c3..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 8b40b60a2b5..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 27ee1530e34..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 3291ea76179..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index 23c1108a5c1..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index bfc308c16ca..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index dfabe77f99c..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index fbb51d9d474..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx deleted file mode 100644 index f25f587ba91..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx deleted file mode 100644 index 94db48b6119..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index 3fd975d161a..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index ba590f39798..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_protocolversion-request.mdx deleted file mode 100644 index 3988137d13c..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_protocolversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index f32d71069d2..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_submitwork-request.mdx deleted file mode 100644 index 676282ee574..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_submitwork-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/mantle/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index febb5682229..00000000000 --- a/services/reference/mantle/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_net_listening-request.mdx b/services/reference/mantle/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index 10a9ce21460..00000000000 --- a/services/reference/mantle/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_net_peercount-request.mdx b/services/reference/mantle/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index c5de1a53ba0..00000000000 --- a/services/reference/mantle/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_net_version-request.mdx b/services/reference/mantle/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index f9bf7c701a1..00000000000 --- a/services/reference/mantle/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/mantle/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 517e63ef94e..00000000000 --- a/services/reference/mantle/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/mantle/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index 14feecfad79..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/mantle/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/mantle/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index eec6ff9af96..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/mantle/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/mantle/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 0a6d7bc8bfa..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/mantle/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/mantle/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index 126ee487d24..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/mantle/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/mantle/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index a1d244e145b..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/mantle/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/bundler/index.md b/services/reference/mantle/json-rpc-methods/bundler/index.md deleted file mode 100644 index 167825de357..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Mantle bundler methods -sidebar_label: Bundler methods -sidebar_key: mantle-bundler-methods -description: Mantle bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Mantle mainnet -and Sepolia: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/mantle/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/mantle/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index e23f2f9f6e0..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/mantle/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/mantle/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index dfb24c91dfa..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/mantle/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/mantle/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index a4b855fb2fd..00000000000 --- a/services/reference/mantle/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/mantle/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_storagerangeat-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_storagerangeat-request.mdx deleted file mode 100644 index c1d3cb568cb..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/_debug_storagerangeat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_storageRangeAt", "params": ["0x7aaff18735842066baee6a2eb53961a69e67f5e012072c81c05a0fd793069a6c", 0, "0x371c7ec6D8039ff7933a2AA28EB827Ffe1F52f07", "0x0000000000000000000000000000000000000000000000000000000000000000", 1], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_traceblock-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblock-request.mdx deleted file mode 100644 index 01a400151f0..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/_debug_traceblock-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx deleted file mode 100644 index 8c4a66ae0f1..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx deleted file mode 100644 index 1c1ea3ab924..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ \ --x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_tracecall-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_tracecall-request.mdx deleted file mode 100644 index 8a317257343..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/_debug_tracecall-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/debug/_debug_tracetransaction-request.mdx b/services/reference/mantle/json-rpc-methods/debug/_debug_tracetransaction-request.mdx deleted file mode 100644 index d93bbb55779..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/_debug_tracetransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x5d3faa9b9605a8fb04d989a79bfe6d3b708bdcfc66048d2fe18ed2dda4a8297c", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.mdx deleted file mode 100644 index 6e0b3f5a3b4..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_storagerangeat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return the contract storage for the specified range. -title: Mantle debug_storageRangeAt -sidebar_label: debug_storageRangeAt ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_storageRangeAt` - -import Description from '/services/reference/_partials/debug-methods/_debug_storagerangeat-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_storagerangeat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_storagerangeat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_storagerangeat-example.mdx' - - - -### Request - -import Request from './_debug_storagerangeat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_storagerangeat-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblock.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_traceblock.mdx deleted file mode 100644 index 2f58b8e0219..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_traceblock.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return a full trace of all invoked opcodes of all transactions included in the block. -title: Mantle debug_traceBlock -sidebar_label: debug_traceBlock ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceBlock` - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblock-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_traceblock-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblock-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblock-example.mdx' - - - -### Request - -import Request from './_debug_traceblock-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblock-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.mdx deleted file mode 100644 index 40986cd30ac..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the block specified by the block hash. -title: Mantle debug_traceBlockByHash -sidebar_label: debug_traceBlockByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceBlockByHash` - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx' - - - -### Request - -import Request from './_debug_traceblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.mdx deleted file mode 100644 index dd23dfcb7c4..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_traceblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the specified block number. -title: Mantle debug_traceBlockByNumber -sidebar_label: debug_traceBlockByNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceBlockByNumber` - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx' - - - -### Request - -import Request from './_debug_traceblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.mdx deleted file mode 100644 index 1ad1ff45320..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_tracecall.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Returns the number of possible tracing results in the context of the given block execution. -title: Mantle debug_traceCall -sidebar_label: debug_traceCall ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceCall` - -import Description from '/services/reference/_partials/debug-methods/_debug_tracecall-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_tracecall-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_tracecall-example.mdx' - - - -### Request - -import Request from './_debug_tracecall-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_tracecall-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.mdx b/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.mdx deleted file mode 100644 index 2f2df98f1cc..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/debug_tracetransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Returns tracing results for the specified transaction. -title: Mantle debug_traceTransaction -sidebar_label: debug_traceTransaction ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceTransaction` - -import Description from '/services/reference/_partials/debug-methods/_debug_tracetransaction-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_tracetransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_tracetransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_tracetransaction-example.mdx' - - - -### Request - -import Request from './_debug_tracetransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_tracetransaction-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/debug/index.md b/services/reference/mantle/json-rpc-methods/debug/index.md deleted file mode 100644 index 7f855e0d601..00000000000 --- a/services/reference/mantle/json-rpc-methods/debug/index.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -description: Mantle debug methods. -sidebar_label: Debug methods -sidebar_key: mantle-debug-methods ---- - -# Mantle debug methods - -The debug API methods allow you to inspect and debug the network. Infura supports the following debug -methods on the Mantle network: - -- [`debug_storageRangeAt`](debug_storagerangeat.mdx) -- [`debug_traceBlock`](debug_traceblock.mdx) -- [`debug_traceBlockByHash`](debug_traceblockbyhash.mdx) -- [`debug_traceBlockByNumber`](debug_traceblockbynumber.mdx) -- [`debug_traceTransaction`](debug_tracetransaction.mdx) -- [`debug_traceCall`](debug_tracecall.mdx) - -## Debug tracing types - -The debug methods support the `callTracer` and `prestateTracer` tracing types, which return different -results when specified in the supported debug methods. - -### `callTracer` - -The `callTracer` tracing type tracks all the call frames executed during a transaction, including the -initial call. It returns a nested list of call frames, resembling how the EVM works. They form a tree -with the top-level call at root and sub-calls as children of the higher levels. - -The `callTracer` type returns an object with the following results: - -| Field | Type | Description | -| -------------- | ------ | -------------------------------------------------------------------------------------------------------------------- | -| `type` | string | The type of call. | -| `from` | string | The address the transaction is sent from. | -| `to` | string | The address the transaction is directed to. | -| `value` | string | The amount transferred in the call (hex-encoded). | -| `gas` | string | The amount of gas provided for the call (hex-encoded). | -| `gasUsed` | string | The amount of gas used by the call (hex-encoded). | -| `input` | string | The call data. | -| `output` | string | The return data. | -| `error` | string | If an error occurred during the call, this field will contain the error message. | -| `revertReason` | string | If the contract execution was reverted, this field will contain the reason for the revert (if provided by Solidity). | -| `calls` | array | Sub-calls made by the contract during the execution of the transaction. | - -### `prestateTracer` - -The `prestateTracer` tracing type records and tracks every change made to the state during the execution -of transactions. It generates an object that contains keys representing the addresses of the accounts -involved in the transactions. The corresponding values are objects that include specific fields related -to the state changes made during the transaction: - -| Field | Type | Description | -| --------- | ------ | ------------------------------------ | -| `balance` | string | The account balance. | -| `nonce` | uint64 | The nonce value for the transaction. | -| `code` | string | The hex-encoded bytecode. | -| `storage` | map | The storage slots of the contract. | diff --git a/services/reference/mantle/json-rpc-methods/eth_accounts.mdx b/services/reference/mantle/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index 0668bb47e78..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Mantle accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_blocknumber.mdx b/services/reference/mantle/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 1392013156b..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Mantle block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_call.mdx b/services/reference/mantle/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 585df4ebb60..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_call -sidebar_label: eth_call -description: Executes a Mantle call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_chainid.mdx b/services/reference/mantle/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 5e18012a3d7..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_chainId -sidebar_label: eth_chainId -description: Returns the Mantle chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_estimategas.mdx b/services/reference/mantle/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 18bdcf68bc3..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Mantle transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_feehistory.mdx b/services/reference/mantle/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index 150290775eb..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical Mantle gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_gasprice.mdx b/services/reference/mantle/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index b2c5ee284ac..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Mantle gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getbalance.mdx b/services/reference/mantle/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 479cd5517bc..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Mantle address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getbalancevalues.mdx b/services/reference/mantle/json-rpc-methods/eth_getbalancevalues.mdx deleted file mode 100644 index efd22ad3718..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getbalancevalues.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -title: Mantle eth_getBalanceValues -sidebar_label: eth_getBalanceValues ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `eth_getBalanceValues` - -Returns the parameters that control an accounts rebasing ETH balance. - -:::note - -To facilitate rebasing ETH balances, accounts on Mantle store more fields than just the balance in the state trie. - -::: - -## Parameters - -- `address`: [_Required_] A string representing the address (20 bytes) to check for balance. -- `block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, - `earliest`, `pending`, `safe`, or `finalized`. - See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - -## Returns - -Object with the following fields: - -- `flags`: The flags indicating specific attributes or characteristics of the account. -- `fixed`: The fixed data associated with the account. -- `shares`: The shares associated with the account. -- `remainder`: The remainder field indicating any remainder or residual information about the account. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getBalanceValues","params":["0xd071acb641553a2e205181a42aa3a8ace97dae6d","latest"],"id":1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalanceValues", "params": ["0xd071acb641553a2e205181a42aa3a8ace97dae6d", "latest"], "id": 1}' -``` - - - - -### Response - - - - -```js -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "flags": "0x0", - "fixed": "0x0", - "shares": "0x6d6eb", - "remainder": "0xad6dc86" - } -} -``` - - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/mantle/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 0dcb2ec8b44..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Mantle block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/mantle/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 4eb74386df8..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Mantle block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getblockrange.md b/services/reference/mantle/json-rpc-methods/eth_getblockrange.md deleted file mode 100644 index 96dacbd2888..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getblockrange.md +++ /dev/null @@ -1,126 +0,0 @@ ---- -description: eth_getBlockRange API method ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `eth_getBlockRange` - -Returns the block information for blocks within a specified range. - -## Parameters - -- `start block hash`: (string) _[required]_ Hexadecimal block number, or one of the string tags - `latest`, `earliest`, `pending`, `safe`, or `finalized`. - See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- `end block hash`: (string) _[required]_ Hexadecimal block number, or one of the string tags - `latest`, `earliest`, `pending`, `safe`, or `finalized`. - See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- `transaction details flag`: (boolean) _[required]_ `true` returns full transaction objects, `false` - returns only the hashes of the transactions. - -## Returns - -Array of block objects: - -- `difficulty`: A hexadecimal of the difficulty for this block. -- `extraData`: The "extra data" field of this block. -- `gasLimit`: Maximum gas allowed in this block. -- `gasUsed`: Total used gas by all transactions in this block. -- `hash`: 32 bytes. The hash of the block. Null when the returned block is the pending block. -- `logsBloom`: 256 bytes. The bloom filter for the logs of the block. Null when the returned block is the pending block. -- `miner`: 20 bytes. The address of the beneficiary to whom the mining rewards were given. -- `nonce`: 8 bytes. The hash of the generated proof-of-work. Null when the returned block is the pending block. -- `number`: The block number. Null when the returned block is the pending block. -- `parentHash`: 32 bytes. The hash of the parent block. -- `receiptsRoot`: 32 bytes. The root of the receipts trie of the block. -- `sha3Uncles`: 32 bytes. The SHA3 of the uncles data in the block. -- `size`: A hexadecimal of the size of this block in bytes. -- `stateRoot`: 32 bytes. The root of the final state trie of the block. -- `timestamp`: Unix timestamp for when the block was collated. -- `totalDifficulty`: A hexadecimal of the total difficulty of the chain until this block. -- `transactions`: [Array] An array of transaction objects, or 32 bytes transaction hashes depending on the last given parameter. -- `transactionsRoot`: 32 bytes. The root of the transaction trie of the block. -- `uncles`: [Array] An Array of uncle hashes. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ --X POST \ --H "Content-Type: application/json" \ --d '{"jsonrpc": "2.0", "method": "eth_getBlockRange", "params": ["0x1", "0x2", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockRange", "params": ["0x1", "0x2", false], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "difficulty": "0x2", - "extraData": "0xd97735082a846765746889676f312e31352e3133856c696e75780000000000009c3827892825f0825a7e329b6913b84c9e4f89168350aff0939e0e6609629f2e7f07f2aeb62acbf4b16a739cab68866f4880ea406583a4b28a59d4f55dc2314e00", - "gasLimit": "0xe4e1c0", - "gasUsed": "0x3183d", - "hash": "0xbee7192e575af30420cae0c7776304ac196077ee72b048970549e4f08e875453", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000400000000000100000000000000200000000002000000000000001000000000000000000004000000000000000000000000000040000400000100400000000000000100000000000000000000000000000020000000000000000000000000000000000000000000000001000000000000000000000100000000000000000000000000000000000000000000000000000000000000088000000080000000000010000000000000000000000000000800008000120000000000000000000000000000000002000", - "miner": "0x0000000000000000000000000000000000000000", - "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x0000000000000000", - "number": "0x1", - "parentHash": "0x7ca38a1916c42007829c55e69d3e9a73265554b586a499015373241b8a3fa48b", - "receiptsRoot": "0xf4c97b1186b690ad3318f907c0cdaf46f4598f27f711a5609064b2690a767287", - "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - "size": "0x30c", - "stateRoot": "0xd3ac40854cd2ac17d8effeae6065cea990b04be714f7061544973feeb2f1c95f", - "timestamp": "0x618d4769", - "totalDifficulty": "0x3", - "transactions": ["0x5e77a04531c7c107af1882d76cbff9486d0a9aa53701c30888509d4f5f2b003a"], - "transactionsRoot": "0x19f5efd0d94386e72fcb3f296f1cb2936d017c37487982f76f09c591129f561f", - "uncles": [] - }, - { - "difficulty": "0x2", - "extraData": "0xd98301090a848932606889676f312e61742e3133856c696e757800000000000064a82cb66c7810b9619e7f14ab65c769a828b1616974987c530684eb3870b65e5b2400c1b61c6d340beef8c8e99127ac0de50e479d21f0833a5e2910fe64b41801", - "gasLimit": "0xe4e1c0", - "gasUsed": "0x1c60d", - "hash": "0x45fd6ce41bb8ebb2bccdaa92dd1619e367404cb07722039901a7eba63dea1d13", - "logsBloom": "0x00080000000200000000000000000008000000000000000000000100008000000000000000000000000000000000000000000000000000000000400000000000100000000000000000000000020000000000000000000000000000000000004000000000000000000000000000000000400000000400000000000000100000000000000000000000000000020000000000000000000000000000000000000000100000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008400000000000000000010000000000000000020000000020000000000000000000000000000000000000000000002000", - "miner": "0x0000000000000000000000000000000000000000", - "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x0000000000000000", - "number": "0x2", - "parentHash": "0xbee7192e575af30420cae0c7776304ac196077ee72b048970549e4f08e875453", - "receiptsRoot": "0x2057c8fb79c0f294062c1436aa56741134dc46d228a4f874929f8b791a7007a4", - "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - "size": "0x30c", - "stateRoot": "0x87026f3a614318ae24bcef6bc8f7564479afbbbe2b1fb189bc133a5de5a2b0f8", - "timestamp": "0x618d8837", - "totalDifficulty": "0x5", - "transactions": ["0xaf6ed8a6864d44989adc47c84f6fe0aeb1819817505c42cde6cbbcd5e14dd317"], - "transactionsRoot": "0xa39c4d0d2397f8fcb1683ba833d4ab935cd2f4c5ca6f56a7d9a45b9904ea1c69", - "uncles": [] - } - ] -} -``` diff --git a/services/reference/mantle/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/mantle/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 9373e55aafd..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/mantle/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 3f5dcc873ce..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getcode.mdx b/services/reference/mantle/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index dd659e575db..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getlogs.mdx b/services/reference/mantle/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 08eecfad403..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getproof.mdx b/services/reference/mantle/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 4c3d20c6c3a..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getstorageat.mdx b/services/reference/mantle/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 2b275190cdd..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/mantle/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index aa5bef245de..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/mantle/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 333fd9e1dca..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/mantle/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 27e270310c9..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/mantle/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 18d5d7eba3f..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/mantle/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index d43d629efd6..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/mantle/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index 4d4704cb7bc..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/mantle/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index 14371a24bd3..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex -description: Gets uncle by block number on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/mantle/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 268ab135d66..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash -description: Gets uncle count by block hash on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/mantle/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index c81b74fafc1..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/mantle/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index c404eb07677..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_protocolversion.mdx b/services/reference/mantle/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index 157e3079add..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_protocolVersion -sidebar_label: eth_protocolVersion -description: Returns protocol version on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from './_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/mantle/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 31fcff66382..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_submitwork.mdx b/services/reference/mantle/json-rpc-methods/eth_submitwork.mdx deleted file mode 100644 index 640d5fd36e0..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_submitwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_submitWork -sidebar_label: eth_submitWork -description: Submits PoW solution on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_submitwork-description.mdx' - -# `eth_submitWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_submitwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_submitwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_submitwork-example.mdx' - - - -### Request - -import Request from './_eth_submitwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_submitwork-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/eth_syncing.mdx b/services/reference/mantle/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 00549be4c73..00000000000 --- a/services/reference/mantle/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/index.md b/services/reference/mantle/json-rpc-methods/index.md deleted file mode 100644 index 1a7741abec9..00000000000 --- a/services/reference/mantle/json-rpc-methods/index.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -sidebar_label: JSON-RPC API -sidebar_key: mantle-json-rpc-api ---- - -# Mantle JSON-RPC API - -Mantle supports a subset [Ethereum JSON-RPC methods](../../ethereum/json-rpc-methods/index.md). diff --git a/services/reference/mantle/json-rpc-methods/net_peercount.mdx b/services/reference/mantle/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 689b99c4ae1..00000000000 --- a/services/reference/mantle/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/net_version.mdx b/services/reference/mantle/json-rpc-methods/net_version.mdx deleted file mode 100644 index 1c6b6c671ad..00000000000 --- a/services/reference/mantle/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle net_version -sidebar_label: net_version -description: Returns network ID on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/mantle/json-rpc-methods/rollup_gasprices.md b/services/reference/mantle/json-rpc-methods/rollup_gasprices.md deleted file mode 100644 index a035c32c49c..00000000000 --- a/services/reference/mantle/json-rpc-methods/rollup_gasprices.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -description: Returns the current layer 1 (L1) and layer 2 (L2) gas prices. ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `rollup_gasPrices` - -Returns the current layer 1 (L1) and layer 2 (L2) gas prices. - -## Parameters - -None - -## Returns - -Gas price object: - -- `l1GasPrice`: L1 gas price fee in wei. -- `l2GasPrice`: L2 gas price fee in wei. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "rollup_gasPrices", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "rollup_gasPrices", "params": [], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": { - "l1GasPrice": "0x254aa66732", - "l2GasPrice": "0xf3792" - } -} -``` diff --git a/services/reference/mantle/json-rpc-methods/rollup_getinfo.md b/services/reference/mantle/json-rpc-methods/rollup_getinfo.md deleted file mode 100644 index ceecdedd4d6..00000000000 --- a/services/reference/mantle/json-rpc-methods/rollup_getinfo.md +++ /dev/null @@ -1,108 +0,0 @@ ---- -description: Returns the information about a node. ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `rollup_getInfo` - -Returns the information about a node. - -## Parameters - -None - -## Returns - -Node information object: - -- `mode`: Node's mode of operation - `sequencer` or `verifier`. -- `syncing`: `true` if the node is currently syncing, otherwise `false`. -- `ethContext`: Object containing the `blockNumber` and `timestamp` of the latest L1 block. -- `rollupContext`: Object containing: - - `queueIndex`: Index in the canonical transaction chain of the last L1 to L2 message ingested. - - `index`: Index of the last L2 transaction processed. - - `verifiedIndex`: Index of the last transaction that was ingested from a batch that was posted - to L1. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "rollup_getInfo", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://mantle-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "rollup_getInfo", "params": [], "id": 1}' -``` - - - - -### Result - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "difficulty": "0x2", - "extraData": "0xd97735082a846765746889676f312e31352e3133856c696e75780000000000009c3827892825f0825a7e329b6913b84c9e4f89168350aff0939e0e6609629f2e7f07f2aeb62acbf4b16a739cab68866f4880ea406583a4b28a59d4f55dc2314e00", - "gasLimit": "0xe4e1c0", - "gasUsed": "0x3183d", - "hash": "0xbee7192e575af30420cae0c7776304ac196077ee72b048970549e4f08e875453", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000400000000000100000000000000200000000002000000000000001000000000000000000004000000000000000000000000000040000400000100400000000000000100000000000000000000000000000020000000000000000000000000000000000000000000000001000000000000000000000100000000000000000000000000000000000000000000000000000000000000088000000080000000000010000000000000000000000000000800008000120000000000000000000000000000000002000", - "miner": "0x0000000000000000000000000000000000000000", - "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x0000000000000000", - "number": "0x1", - "parentHash": "0x7ca38a1916c42007829c55e69d3e9a73265554b586a499015373241b8a3fa48b", - "receiptsRoot": "0xf4c97b1186b690ad3318f907c0cdaf46f4598f27f711a5609064b2690a767287", - "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - "size": "0x30c", - "stateRoot": "0xd3ac40854cd2ac17d8effeae6065cea990b04be714f7061544973feeb2f1c95f", - "timestamp": "0x618d4769", - "totalDifficulty": "0x3", - "transactions": ["0x5e77a04531c7c107af1882d76cbff9486d0a9aa53701c30888509d4f5f2b003a"], - "transactionsRoot": "0x19f5efd0d94386e72fcb3f296f1cb2936d017c37487982f76f09c591129f561f", - "uncles": [] - }, - { - "difficulty": "0x2", - "extraData": "0xd98301090a848932606889676f312e61742e3133856c696e757800000000000064a82cb66c7810b9619e7f14ab65c769a828b1616974987c530684eb3870b65e5b2400c1b61c6d340beef8c8e99127ac0de50e479d21f0833a5e2910fe64b41801", - "gasLimit": "0xe4e1c0", - "gasUsed": "0x1c60d", - "hash": "0x45fd6ce41bb8ebb2bccdaa92dd1619e367404cb07722039901a7eba63dea1d13", - "logsBloom": "0x00080000000200000000000000000008000000000000000000000100008000000000000000000000000000000000000000000000000000000000400000000000100000000000000000000000020000000000000000000000000000000000004000000000000000000000000000000000400000000400000000000000100000000000000000000000000000020000000000000000000000000000000000000000100000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008400000000000000000010000000000000000020000000020000000000000000000000000000000000000000000002000", - "miner": "0x0000000000000000000000000000000000000000", - "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "nonce": "0x0000000000000000", - "number": "0x2", - "parentHash": "0xbee7192e575af30420cae0c7776304ac196077ee72b048970549e4f08e875453", - "receiptsRoot": "0x2057c8fb79c0f294062c1436aa56741134dc46d228a4f874929f8b791a7007a4", - "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", - "size": "0x30c", - "stateRoot": "0x87026f3a614318ae24bcef6bc8f7564479afbbbe2b1fb189bc133a5de5a2b0f8", - "timestamp": "0x618d8837", - "totalDifficulty": "0x5", - "transactions": ["0xaf6ed8a6864d44989adc47c84f6fe0aeb1819817505c42cde6cbbcd5e14dd317"], - "transactionsRoot": "0xa39c4d0d2397f8fcb1683ba833d4ab935cd2f4c5ca6f56a7d9a45b9904ea1c69", - "uncles": [] - } - ] -} -``` diff --git a/services/reference/mantle/json-rpc-methods/web3_clientversion.mdx b/services/reference/mantle/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 0dcdce305b6..00000000000 --- a/services/reference/mantle/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Mantle web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Mantle. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/mantle/quickstart.md b/services/reference/mantle/quickstart.md deleted file mode 100644 index c9e78f964d7..00000000000 --- a/services/reference/mantle/quickstart.md +++ /dev/null @@ -1,203 +0,0 @@ ---- -description: Mantle quickstart guide. -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Mantle quickstart - -This quickstart guide will help you set up and make calls on the Mantle network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Mantle network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Mantle network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://mantle-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the Node Fetch package using `npm`: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://mantle-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the Axios package using `npm`: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://mantle-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the ethers package using `npm`: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://mantle-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://mantle-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Mantle network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Mantle APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to - ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/megaeth/index.md b/services/reference/megaeth/index.md deleted file mode 100644 index 9dd1fc8753b..00000000000 --- a/services/reference/megaeth/index.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -description: MegaETH network documentation. ---- - -import CardList from "@site/src/components/CardList" - -# MegaETH - -::::note Decentralized Infrastructure Network (DIN) -MegaETH is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service. -:::: - -MegaETH is an Ethereum Layer 2 network designed for real-time execution with EVM equivalence. -For developers, EVM equivalence means existing Ethereum smart contracts and tooling work without code changes. - -::::info See also -The [official MegaETH documentation](https://docs.megaeth.com/) for more information. -:::: - -Select an option below to get started with the MegaETH network. - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 0cc434e7c82..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_call-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 4a9bc35cf6c..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_callmany-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_callmany-request.mdx deleted file mode 100644 index abe6130aaa0..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_callmany-request.mdx +++ /dev/null @@ -1,45 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc":"2.0", - "id":1, - "method":"eth_callMany", - "params":[ - [ - { - "transactions":[ - { - "to":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", - "data":"0x70a08231000000000000000000000000bc0e63965946815d105e7591407704e6e1964e59" - }, - { - "to":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", - "data":"0x313ce567" - } - ] - } - ], - { - "blockNumber":"latest" - } - ] - }' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","id":1,"method":"eth_callMany","params":[[{"transactions":[{"to":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","data":"0x70a08231000000000000000000000000bc0e63965946815d105e7591407704e6e1964e59"},{"to":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","data":"0x313ce567"}]}],{"blockNumber":"latest"}]}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index aa9a950176b..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 09e5a57d925..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 741783f2250..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getaccount-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getaccount-request.mdx deleted file mode 100644 index 8e8c0bbfeb1..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getaccount-request.mdx +++ /dev/null @@ -1,30 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "eth_getAccount", - "params": [ - "0xA887dCB9D5f39Ef79272801d05Abdf707CFBbD1d", - "latest" - ], - "id": 1 -}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getAccount","params":["0xA887dCB9D5f39Ef79272801d05Abdf707CFBbD1d","latest"],"id":1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index 77372ca9b1f..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index b692aab4ec4..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 50ac3ef67c7..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55",false], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index b9bdff9f6dc..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index e1adda416a3..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index bf931d520f0..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 3887fcfbfb8..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id":1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getrawtransactionbyhash-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getrawtransactionbyhash-request.mdx deleted file mode 100644 index 34f1999e4ec..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getrawtransactionbyhash-request.mdx +++ /dev/null @@ -1,29 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "eth_getRawTransactionByHash", - "params": [ - "0x691455c4cec43d76d15af9734556efec72b4c44b557254db1bbbfeea86d103fd" - ], - "id": 1 -}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getRawTransactionByHash","params":["0x691455c4cec43d76d15af9734556efec72b4c44b557254db1bbbfeea86d103fd"],"id":1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 7218e850ef6..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index cdba9666141..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 6f2d77cf668..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index 2537cbf35af..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 998646aa048..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index e232465eaad..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 98b3a07d060..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/megaeth/json-rpc-methods/_eth_submitwork-request.mdx deleted file mode 100644 index 0b3420507fc..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_eth_submitwork-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_net_version-request.mdx b/services/reference/megaeth/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 3061e39a25b..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/megaeth/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 052638cdb56..00000000000 --- a/services/reference/megaeth/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_blocknumber.mdx b/services/reference/megaeth/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index d9de2d1fd18..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest MegaETH block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_call.mdx b/services/reference/megaeth/json-rpc-methods/eth_call.mdx deleted file mode 100644 index f115ef947fb..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_call -sidebar_label: eth_call -description: Executes a MegaETH call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_callmany.mdx b/services/reference/megaeth/json-rpc-methods/eth_callmany.mdx deleted file mode 100644 index 9772d985cd2..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_callmany.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: MegaETH eth_callMany -sidebar_label: eth_callMany -description: Executes multiple call messages on MegaETH. ---- - -import Description from '/services/reference/_partials/_eth_callmany-description.mdx' - -# `eth_callMany` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_callmany-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_callmany-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_callmany-example.mdx' - - - -### Request - -import Request from './_eth_callmany-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_callmany-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_chainid.mdx b/services/reference/megaeth/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 4d389b02250..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_chainId -sidebar_label: eth_chainId -description: Returns the MegaETH chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_estimategas.mdx b/services/reference/megaeth/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 268f66a4b1e..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a MegaETH transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_gasprice.mdx b/services/reference/megaeth/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 95759de6941..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current MegaETH gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getaccount.mdx b/services/reference/megaeth/json-rpc-methods/eth_getaccount.mdx deleted file mode 100644 index c0fa164343c..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getaccount.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: MegaETH eth_getAccount -sidebar_label: eth_getAccount -description: Returns account data for an address on MegaETH. ---- - -import Description from '/services/reference/_partials/_eth_getaccount-description.mdx' - -# `eth_getAccount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getaccount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getaccount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getaccount-example.mdx' - - - -### Request - -import Request from './_eth_getaccount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getaccount-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getbalance.mdx b/services/reference/megaeth/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 41a8e648935..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a MegaETH address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/megaeth/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 0bc7c1965d2..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns MegaETH block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/megaeth/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 6cab013121e..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns MegaETH block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/megaeth/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 35d8e74f01c..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/megaeth/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index c67079bd1c2..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getcode.mdx b/services/reference/megaeth/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index b97787e0324..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getlogs.mdx b/services/reference/megaeth/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index eb6e692935d..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getrawtransactionbyhash.mdx b/services/reference/megaeth/json-rpc-methods/eth_getrawtransactionbyhash.mdx deleted file mode 100644 index 6605fd67fb3..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getrawtransactionbyhash.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: MegaETH eth_getRawTransactionByHash -sidebar_label: eth_getRawTransactionByHash -description: Returns the raw transaction data by hash on MegaETH. ---- - -import Description from '/services/reference/_partials/_eth_getrawtransactionbyhash-description.mdx' - -# `eth_getRawTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getrawtransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getrawtransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getrawtransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getrawtransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getrawtransactionbyhash-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_getstorageat.mdx b/services/reference/megaeth/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index c63f8bf70de..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 502571cb677..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 7d8a6f89d10..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 1ee67d8e1d1..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/megaeth/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 442287e0096..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/megaeth/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 3d8a3e489e4..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/megaeth/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index b763fac64ac..00000000000 --- a/services/reference/megaeth/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx deleted file mode 100644 index 735edc02cfc..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx deleted file mode 100644 index 37b23905771..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx deleted file mode 100644 index a65a2951d4c..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx deleted file mode 100644 index f05a6c977dc..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx deleted file mode 100644 index bf10b476af7..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx deleted file mode 100644 index 6abd0962bee..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getFilterChanges -sidebar_label: eth_getFilterChanges -description: Returns MegaETH logs since last poll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx' - -# `eth_getFilterChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-example.mdx' - - - -### Request - -import Request from './_eth_getfilterchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx deleted file mode 100644 index c030c607c9c..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_getFilterLogs -sidebar_label: eth_getFilterLogs -description: Returns logs by filter ID on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx' - -# `eth_getFilterLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-example.mdx' - - - -### Request - -import Request from './_eth_getfilterlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_newblockfilter.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/eth_newblockfilter.mdx deleted file mode 100644 index bc3dcae9af6..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_newblockfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_newBlockFilter -sidebar_label: eth_newBlockFilter -description: Creates filter to notify of new blocks on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx' - -# `eth_newBlockFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newblockfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newblockfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newblockfilter-example.mdx' - - - -### Request - -import Request from './_eth_newblockfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newblockfilter-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_newfilter.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/eth_newfilter.mdx deleted file mode 100644 index 47f78f73582..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_newfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_newFilter -sidebar_label: eth_newFilter -description: Creates filter to notify of state changes on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx' - -# `eth_newFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newfilter-example.mdx' - - - -### Request - -import Request from './_eth_newfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newfilter-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx b/services/reference/megaeth/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx deleted file mode 100644 index a1fc940a9fe..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_uninstallFilter -sidebar_label: eth_uninstallFilter -description: Uninstalls filter on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx' - -# `eth_uninstallFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-example.mdx' - - - -### Request - -import Request from './_eth_uninstallfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/filter-methods/index.md b/services/reference/megaeth/json-rpc-methods/filter-methods/index.md deleted file mode 100644 index 4bb3aa3bfb3..00000000000 --- a/services/reference/megaeth/json-rpc-methods/filter-methods/index.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: MegaETH filter methods -sidebar_label: Filter methods -sidebar_key: megaeth-filter-methods -description: MegaETH filter methods ---- - -# MegaETH filter methods - -Infura supports the following filter methods over both HTTP and WebSocket. In both cases, the filter IDs -can be shared by any connection using the same API key. - -- [`eth_getFilterChanges`](eth_getfilterchanges.mdx) -- [`eth_getFilterLogs`](eth_getfilterlogs.mdx) -- [`eth_newBlockFilter`](eth_newblockfilter.mdx) -- [`eth_newFilter`](eth_newfilter.mdx) -- [`eth_uninstallFilter`](eth_uninstallfilter.mdx) - -Filters that are not polled using [`eth_getFilterChanges`](eth_getfilterchanges.mdx) automatically -expires after fifteen minutes of inactivity. diff --git a/services/reference/megaeth/json-rpc-methods/index.md b/services/reference/megaeth/json-rpc-methods/index.md deleted file mode 100644 index 68f40045452..00000000000 --- a/services/reference/megaeth/json-rpc-methods/index.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: MegaETH JSON-RPC API -description: Supported standard Ethereum methods on MegaETH. -sidebar_label: JSON-RPC API -sidebar_key: megaeth-json-rpc-api ---- - -Infura supports MegaETH Mainnet and MegaETH Testnet. - -::::info -WebSockets are supported on MegaETH Mainnet only. -:::: - -MegaETH supports the standard Ethereum JSON-RPC methods. diff --git a/services/reference/megaeth/json-rpc-methods/net_version.mdx b/services/reference/megaeth/json-rpc-methods/net_version.mdx deleted file mode 100644 index 9d40e6300f7..00000000000 --- a/services/reference/megaeth/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH net_version -sidebar_label: net_version -description: Returns network ID on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/megaeth/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index e1449622349..00000000000 --- a/services/reference/megaeth/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,19 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics": ["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/megaeth/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index c6f108d92b9..00000000000 --- a/services/reference/megaeth/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,12 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - diff --git a/services/reference/megaeth/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/megaeth/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index 28949eb919d..00000000000 --- a/services/reference/megaeth/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_subscribe -sidebar_label: eth_subscribe -description: Creates new subscription on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters-no-pending.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response-no-pending.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/megaeth/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index 22340f1e935..00000000000 --- a/services/reference/megaeth/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/subscription-methods/index.md b/services/reference/megaeth/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index 9b0709ff942..00000000000 --- a/services/reference/megaeth/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: MegaETH subscription methods -sidebar_label: Subscription methods -sidebar_key: megaeth-subscription-methods -description: MegaETH subscription methods ---- - -# MegaETH subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/megaeth/json-rpc-methods/web3_clientversion.mdx b/services/reference/megaeth/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index cdbb6a4bbc1..00000000000 --- a/services/reference/megaeth/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: MegaETH web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on MegaETH. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/megaeth/json-rpc-methods/web3_sha3.mdx b/services/reference/megaeth/json-rpc-methods/web3_sha3.mdx deleted file mode 100644 index 8784ad99d4a..00000000000 --- a/services/reference/megaeth/json-rpc-methods/web3_sha3.mdx +++ /dev/null @@ -1,53 +0,0 @@ ---- -title: MegaETH web3_sha3 -sidebar_label: web3_sha3 ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `web3_sha3` - -Returns a [SHA3](https://en.wikipedia.org/wiki/SHA-3) hash of the specified data. The result value is a [Keccak-256](https://keccak.team/keccak.html) hash, not the standardized SHA3-256. - -## Parameters - -`data`: [Required] _string_ - data to convert to a SHA3 hash. - -## Returns - -`result`: _string_ - SHA3 result of the input data. - -## Example - -### Request - - - - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_sha3", "params":["0x68656c6c6f20776f726c00"], "id": 1}' -``` - - - - -```bash -wscat -c wss://megaeth-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"web3_sha3", "params":["0x68656c6c6f20776f726c00"], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x5e39a0a66544c0668bde22d61c47a8710000ece931f13b84d3b2feb44ec96d3f" -} -``` diff --git a/services/reference/megaeth/quickstart.md b/services/reference/megaeth/quickstart.md deleted file mode 100644 index 9df418e59d7..00000000000 --- a/services/reference/megaeth/quickstart.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -description: MegaETH quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from "@site/src/components/Banner" - -# MegaETH quickstart - -This quickstart guide will help you set up and make calls on the MegaETH network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the MegaETH network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api/) with the MegaETH network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing the endpoint with your MegaETH Mainnet endpoint from the Infura dashboard: - -```bash -curl https://megaeth-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace the endpoint with your MegaETH Mainnet endpoint from the Infura dashboard. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://megaeth-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace the endpoint with your MegaETH Mainnet endpoint from the Infura dashboard. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://megaeth-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace the endpoint with your MegaETH Mainnet endpoint from the Infura dashboard. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://megaeth-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace the endpoint with your MegaETH Mainnet endpoint from the Infura dashboard. - - ```python title="index.py" - import requests - import json - - url = "https://megaeth-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the MegaETH network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other MegaETH APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats/) to ensure you're not hitting your rate limits. - -Remember, the Infura community is here to help. If you have any questions or run into any issues, check out the -[Infura community](https://community.infura.io/) for help and answers to common questions. diff --git a/services/reference/monad/index.md b/services/reference/monad/index.md deleted file mode 100644 index 6bc17effc94..00000000000 --- a/services/reference/monad/index.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -description: Monad network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Monad - -:::note Decentralized Infrastructure Network (DIN) - -Monad is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, meaning calls to the network are routed to -[partner infrastructure providers](#partners-and-privacy-policies). - -::: - -Monad is a high-performance Ethereum-compatible L1 blockchain with a throughput of over 10,000 -transactions per second. - -Monad offers full bytecode compatibility for the Ethereum Virtual Machine (EVM), so that applications -built for Ethereum can be ported to Monad without code changes, and full Ethereum RPC compatibility, so -that infrastructure like Etherscan or The Graph can be used seamlessly. - -:::info See also -The [official Monad documentation](https://docs.monad.xyz/) for more information. -::: - -Select an option below to get started with the Monad network. - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partners provide access to the Monad network: - - - -- 0xFury ([Privacy policy](https://0xfury.com/privacy.php)) -- Alchemy ([Privacy Policy](https://legal.alchemy.com/#contract-sblyf8eub)) -- Monad foundation ([Privacy policy](https://www.monad.xyz/privacy-policy)) - diff --git a/services/reference/monad/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/monad/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index 39261665e8d..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/monad/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 5a697362ab2..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_call-request.mdx b/services/reference/monad/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index cdb3aed6966..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/monad/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 6f28133741d..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/monad/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 5171337a511..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/monad/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index 87751082045..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/monad/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index c3d34ac2884..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index b8063de7e7a..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 0c1c1747c6d..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index f9f550e68bd..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55",false], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index 3d6a54ae012..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 53395589632..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index 74b53b7e864..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index b4e6d922595..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 2be1785618f..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index e428d0af72e..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/monad/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 834e9f3f957..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/monad/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index fe97e8017c7..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/monad/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 54e5673e247..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/monad/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index 64684d62174..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/monad/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index a79bb4f13be..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/monad/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index f550a4633f8..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_hashrate-request.mdx b/services/reference/monad/json-rpc-methods/_eth_hashrate-request.mdx deleted file mode 100644 index 253680117c2..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_hashrate-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_hashrate", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/monad/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 87ffdea509e..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_mining-request.mdx b/services/reference/monad/json-rpc-methods/_eth_mining-request.mdx deleted file mode 100644 index fc07bd5bd50..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_mining-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_mining", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/monad/json-rpc-methods/_eth_protocolversion-request.mdx deleted file mode 100644 index 1a9bdc2611f..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_protocolversion-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/monad/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 4a5128ac0b9..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/monad/json-rpc-methods/_eth_submitwork-request.mdx deleted file mode 100644 index f08add714aa..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_submitwork-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/monad/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index d87880d4ca9..00000000000 --- a/services/reference/monad/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_net_listening-request.mdx b/services/reference/monad/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index b10dca57c50..00000000000 --- a/services/reference/monad/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_net_peercount-request.mdx b/services/reference/monad/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 0f1ded066f0..00000000000 --- a/services/reference/monad/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_net_version-request.mdx b/services/reference/monad/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index f1e1ae93e6f..00000000000 --- a/services/reference/monad/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/monad/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index e73421643bd..00000000000 --- a/services/reference/monad/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/monad/json-rpc-methods/eth_accounts.mdx b/services/reference/monad/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index e2be03a83fe..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Monad accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_blocknumber.mdx b/services/reference/monad/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 262c8a1c668..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Monad block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_call.mdx b/services/reference/monad/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 525811a0bc9..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_call -sidebar_label: eth_call -description: Executes a Monad call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_chainid.mdx b/services/reference/monad/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 4ef19871830..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_chainId -sidebar_label: eth_chainId -description: Returns the Monad chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_estimategas.mdx b/services/reference/monad/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 9c51744530d..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Monad transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_feehistory.mdx b/services/reference/monad/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index ecffbc86770..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical Monad gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_gasprice.mdx b/services/reference/monad/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 5fb3aa7aad9..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Monad gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getbalance.mdx b/services/reference/monad/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 4a38b7ec716..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Monad address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/monad/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 63b79c4aeb5..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Monad block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/monad/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index f35a1f74a8c..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Monad block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/monad/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index 4287deff1c4..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a block on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/monad/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 8283ab6695d..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/monad/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 317b582c204..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getcode.mdx b/services/reference/monad/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 79958d42521..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getlogs.mdx b/services/reference/monad/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 148ec2806dc..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getproof.mdx b/services/reference/monad/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 804c92e78cf..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_getstorageat.mdx b/services/reference/monad/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index f210d8e789f..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/monad/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index ed072967451..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/monad/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index f85d3eb671d..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/monad/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 6948d6fa558..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/monad/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index e8441208814..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/monad/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 4af39ecb5d6..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/monad/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index 42ee50facd5..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_protocolversion.mdx b/services/reference/monad/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index c363fc4f4ec..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_protocolVersion -sidebar_label: eth_protocolVersion -description: Returns protocol version on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from './_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/monad/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 384cea4c002..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/eth_syncing.mdx b/services/reference/monad/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 226545f4c8a..00000000000 --- a/services/reference/monad/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/index.md b/services/reference/monad/json-rpc-methods/index.md deleted file mode 100644 index 7500d271b5f..00000000000 --- a/services/reference/monad/json-rpc-methods/index.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Monad JSON-RPC API -description: Supported standard Ethereum methods on Monad network. -sidebar_label: JSON-RPC API ---- - -# Monad JSON-RPC API - -Infura supports the standard EVM-compatible JSON-RPC methods on the Monad network. - -For differences between Monad and standard Ethereum RPC behavior, refer to the -[official Monad RPC differences](https://docs.monad.xyz/reference/rpc-differences). diff --git a/services/reference/monad/json-rpc-methods/net_peercount.mdx b/services/reference/monad/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 99dbe359250..00000000000 --- a/services/reference/monad/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/net_version.mdx b/services/reference/monad/json-rpc-methods/net_version.mdx deleted file mode 100644 index 9ac3a7a5d7b..00000000000 --- a/services/reference/monad/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad net_version -sidebar_label: net_version -description: Returns network ID on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/monad/json-rpc-methods/web3_clientversion.mdx b/services/reference/monad/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 1f83ace8e6c..00000000000 --- a/services/reference/monad/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Monad web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Monad. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/monad/quickstart.md b/services/reference/monad/quickstart.md deleted file mode 100644 index a20ee3a0929..00000000000 --- a/services/reference/monad/quickstart.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -description: Monad quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Monad quickstart - -This quickstart guide will help you set up and make calls on the Monad network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Monad network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api/) with the Monad network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://monad-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://monad-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://monad-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://monad-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://monad-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Monad network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Monad APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats/) to ensure you're not hitting your rate limits. - -Remember, the Infura community is here to help. If you have any questions or run into any issues, check out the -[Infura community](https://community.infura.io/) for help and answers to common questions. diff --git a/services/reference/opbnb/index.md b/services/reference/opbnb/index.md deleted file mode 100644 index c3a2cd1eb74..00000000000 --- a/services/reference/opbnb/index.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -description: opBNB network documentation ---- - -import CardList from "@site/src/components/CardList" - -# opBNB - -:::note Decentralized Infrastructure Network (DIN) - -opBNB is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -Infura provides open beta access to the layer 2 opBNB and its layer 1 [BNB Smart Chain (BSC)](../bnb-smart-chain/index.md). During this period, there might be feature limitations. -Performance issues are not expected, but they are possible as we optimize and stabilize the service. - -Archive requests are not currently supported for opBNB: only near head requests (the last 128 blocks) are supported. Be aware of this limitation when making calls -to API calls to methods such as [`eth_getStorageAt`](./json-rpc-methods/eth_getstorageat.mdx), -[`eth_getTransactionReceipt`](./json-rpc-methods/eth_gettransactionreceipt.mdx), and -[`eth_getTransactionByHash`](./json-rpc-methods/eth_gettransactionbyhash.mdx). - -::: - -opBNB is an EVM-compatible, layer 2, rollup scaling solution that operates on top of [BSC](../bnb-smart-chain/index.md). All transactions that occur on opBNB are posted and validated on BSC using Optimistic Rollups. - -:::info See also - -For more information, refer to the official [opBNB documentation](https://docs.bnbchain.org/bnb-opbnb/overview/). - -::: - -Select an option below to get started with the opBNB network. - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partners provide access to the opBNB network: - - - -- Infstones ([Privacy Policy](https://infstones.com/terms/privacy-notice)) -- Validation Cloud ([Terms of Use](https://www.validationcloud.io/terms), [Privacy Policy](https://www.validationcloud.io/privacy)) - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index 5007c7edea9..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id":1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id":1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 0ca52f4e307..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_call-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 5a55e42117d..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id":1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id":1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 6511b29d005..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id":1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id":1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 173ab72ef15..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id":1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id":1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index 6e16815354b..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_feeHistory","params":["0x5", "latest", []],"id":1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index e63fd515da7..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_gasPrice", "params": [], "id":1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index 2003367f52c..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index a43638afa3d..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id":1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index ab097c5911f..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params":["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 61487c82b72..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index 2e290d60800..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index d53834d8c48..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index b0b252f318c..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index 3531c5debe2..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getstorageat-description.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getstorageat-description.mdx deleted file mode 100644 index 76e45f74479..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getstorageat-description.mdx +++ /dev/null @@ -1,8 +0,0 @@ -Returns the value from a storage position at a given address. - -:::info - -Currently, the opBNB network service supports only near head requests (the latest 128 blocks). -Archive requests are not available at this time. - -::: diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 24f7e408f3d..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 4bd4342cb7b..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 7b1839e0e02..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyhash-description.mdx b/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyhash-description.mdx deleted file mode 100644 index 939b0b3fbb1..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyhash-description.mdx +++ /dev/null @@ -1,8 +0,0 @@ -Returns information about a transaction for a given hash. - -:::info - -Currently, the opBNB network service supports only near head requests (the latest 128 blocks). -Archive requests are not available at this time. - -::: diff --git a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index c129b5a9d86..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 043621f4e7f..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionreceipt-description.mdx b/services/reference/opbnb/json-rpc-methods/_eth_gettransactionreceipt-description.mdx deleted file mode 100644 index 0a2e7c89bac..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionreceipt-description.mdx +++ /dev/null @@ -1,8 +0,0 @@ -Returns the receipt of a transaction given transaction hash. Note that the receipt is not available for pending transactions. - -:::info - -Currently, the opBNB network service supports only near head requests (the latest 128 blocks). -Archive requests are not available at this time. - -::: diff --git a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index e229bc3e5c4..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index 481e6cd827d..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index 7c92ed9ca02..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 400d3da7a43..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 6c5ea669f00..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/opbnb/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index 0d8434adaf2..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method":"eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_net_peercount-request.mdx b/services/reference/opbnb/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 78cfcb7c5ff..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_net_version-request.mdx b/services/reference/opbnb/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index d7e58b1ddc3..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/opbnb/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index bd6bbcbd5f8..00000000000 --- a/services/reference/opbnb/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/opbnb/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index 2b6027ed2f1..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/opbnb/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/opbnb/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index b23ecfe8c22..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/opbnb/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/opbnb/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index b52cd3d568e..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/opbnb/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/opbnb/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index 712c22e7fd4..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/opbnb/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/opbnb/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index b226493bcc0..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/opbnb/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/bundler/index.md b/services/reference/opbnb/json-rpc-methods/bundler/index.md deleted file mode 100644 index aaefa607122..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -title: opBNB bundler methods -sidebar_label: Bundler methods -sidebar_key: opbnb-bundler-methods -description: opBNB bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on opBNB mainnet: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/opbnb/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/opbnb/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index 5a3da310fbb..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/opbnb/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/opbnb/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index 22de56c7d2f..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/opbnb/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/opbnb/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index 6ab7df4beb2..00000000000 --- a/services/reference/opbnb/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/opbnb/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_accounts.mdx b/services/reference/opbnb/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index ead693bf2d4..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_accounts -sidebar_label: eth_accounts -description: Returns a list of opBNB accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_blocknumber.mdx b/services/reference/opbnb/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 64fa1da7488..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest opBNB block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_call.mdx b/services/reference/opbnb/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 2d3e871fa61..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_call -sidebar_label: eth_call -description: Executes a opBNB call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_chainid.mdx b/services/reference/opbnb/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index ff29522904e..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_chainId -sidebar_label: eth_chainId -description: Returns the opBNB chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_estimategas.mdx b/services/reference/opbnb/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index c965a547d9a..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a opBNB transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_feehistory.mdx b/services/reference/opbnb/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index cf5e9a052a3..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical opBNB gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_gasprice.mdx b/services/reference/opbnb/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 869d37aebcd..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current opBNB gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getbalance.mdx b/services/reference/opbnb/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index bcdd26ab472..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a opBNB address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/opbnb/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 1c49aab9512..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns opBNB block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/opbnb/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index be1d69c4341..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns opBNB block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/opbnb/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 1fe36df9012..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/opbnb/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index dd902ee10a1..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getcode.mdx b/services/reference/opbnb/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 0b7a9c5d878..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getlogs.mdx b/services/reference/opbnb/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 3dd4bd83bec..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getproof.mdx b/services/reference/opbnb/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 24321d736db..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getstorageat.mdx b/services/reference/opbnb/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 22aad817f8b..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from './_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 681967314b5..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 564dc74e9af..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 7874af32fcf..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from './_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/opbnb/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 037d2d7979e..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/opbnb/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 36b01995a95..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from './_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/opbnb/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index d91157387cf..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/opbnb/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index e9a279f7497..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/opbnb/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index ba48a1b8a89..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/opbnb/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index cb27d18c299..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/eth_syncing.mdx b/services/reference/opbnb/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 64caccf9460..00000000000 --- a/services/reference/opbnb/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/index.md b/services/reference/opbnb/json-rpc-methods/index.md deleted file mode 100644 index 48cd7fdc1e7..00000000000 --- a/services/reference/opbnb/json-rpc-methods/index.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -sidebar_label: JSON-RPC API -sidebar_key: opbnb-json-rpc-api ---- - -# opBNB JSON-RPC API - -The standard Ethereum methods documented here are supported by Infura on the opBNB layer 2 network. - -Currently, only near head requests (the last 128 blocks) are supported in the -opBNB service. Archive requests are not supported. - -:::info - -WebSockets are also supported on the opBNB mainnet network and can be used to set up bidirectional stateful [subscriptions](subscription-methods/index.md). - -::: diff --git a/services/reference/opbnb/json-rpc-methods/net_peercount.mdx b/services/reference/opbnb/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index f4049d38d7e..00000000000 --- a/services/reference/opbnb/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/net_version.mdx b/services/reference/opbnb/json-rpc-methods/net_version.mdx deleted file mode 100644 index 65d7b705859..00000000000 --- a/services/reference/opbnb/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB net_version -sidebar_label: net_version -description: Returns network ID on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/opbnb/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index 2c6aa747942..00000000000 --- a/services/reference/opbnb/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,27 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics":["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}' -``` - - - diff --git a/services/reference/opbnb/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/opbnb/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index 5f033b969d5..00000000000 --- a/services/reference/opbnb/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,13 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://opbnb-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - - diff --git a/services/reference/opbnb/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/opbnb/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index 8cbd850cdca..00000000000 --- a/services/reference/opbnb/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: opBNB eth_subscribe -sidebar_label: eth_subscribe -todo: Is newPendingTransactions` event only mainnet supported? ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters-no-pending.mdx' - - - -:::note -The `newPendingTransactions` event is only available on mainnet. -::: - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response-no-pending.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/opbnb/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index 13a5c3ce217..00000000000 --- a/services/reference/opbnb/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/opbnb/json-rpc-methods/subscription-methods/index.md b/services/reference/opbnb/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index b35ba1c7143..00000000000 --- a/services/reference/opbnb/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: opBNB subscription methods -sidebar_label: Subscription methods -sidebar_key: opbnb-subscription-methods -description: opBNB subscription methods ---- - -# opBNB subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available on mainnet: - -- [`eth_subscribe`](./eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](./eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also supported. - -::: diff --git a/services/reference/opbnb/json-rpc-methods/web3_clientversion.mdx b/services/reference/opbnb/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index a87b7769b61..00000000000 --- a/services/reference/opbnb/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: opBNB web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on opBNB. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/opbnb/quickstart.md b/services/reference/opbnb/quickstart.md deleted file mode 100644 index efd19522adc..00000000000 --- a/services/reference/opbnb/quickstart.md +++ /dev/null @@ -1,192 +0,0 @@ ---- -description: opBNB Smart Chain quickstart guide -sidebar_label: Quickstart -sidebar_position: 2 ---- - -import Banner from "@site/src/components/Banner" - -# opBNB quickstart - -This quickstart guide will help you set up and make calls on the opBNB network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the opBNB Smart Chain network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the opBNB network enabled. - -## Make calls - -### curl - -Run the following command in your terminal. Replace `` with your actual Infura API key. - -```bash -curl https://opbnb-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the Node Fetch package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - fetch('https://opbnb-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the Axios package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://opbnb-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the ethers package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - const provider = new ethers.providers.JsonRpcProvider( - 'https://opbnb-mainnet.infura.io/v3/' - ) - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - url = "https://opbnb-mainnet.infura.io/v3/" - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - headers = {"content-type": "application/json"} - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the opBNB network, you can explore more functionalities and APIs provided by Infura. Here are some suggestions: - -- **Explore other opBNB APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/optimism/index.md b/services/reference/optimism/index.md deleted file mode 100644 index 24a8b081ead..00000000000 --- a/services/reference/optimism/index.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -description: Optimism network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Optimism - -:::note Failover protection - -Optimism [failover support](../../concepts/failover-protection.md) is available for customers on the Growth or Custom plans. -Optimism failover support is available on Mainnet only. -Calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -::: - -Optimism is an EVM-compatible, layer 2, rollup scaling solution that operates on top of Ethereum. All transactions that -occur on Optimism are posted and validated on Ethereum mainnet using Optimistic Rollups. - -:::info see also - -- For more information on the Optimism network, please see the - [official Optimism developer documentation](https://docs.optimism.io/). -- See the [differences between the behavior of Ethereum and Optimism](https://docs.optimism.io/stack/differences). -- See the [JSON-RPC methods specific to Optimism Bedrock](https://docs.optimism.io/node-operators/reference/op-node-json-rpc). - -::: - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -Bware Labs ([Terms of Service](https://bwarelabs.com/terms), [Privacy Policy](https://bwarelabs.com/privacy)) is Infura's failover-protection partner. While Bware Labs supports most Infura methods, it does not yet support the following methods: - -- `eth_accounts` -- `eth_coinbase` -- `eth_protocolVersion` -- `eth_feeHistory` -- `eth_maxPriorityFeePerGas` -- `eth_sendTransaction` -- `eth_sign` -- `eth_syncing` -- `eth_submitWork` diff --git a/services/reference/optimism/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index ac45e36a05d..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 93380ae0964..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_call-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 5bc3407efeb..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 4b51c190f29..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index ea0e560b1ae..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index fcbe47f5ee4..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", []], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 7a4c1cf8761..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index e95a9668e4b..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 092a29e1af8..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index a4ef5276d19..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber","params": ["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index 9ebf02eebea..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index bbb6d23af8c..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index 3ae3b5a5ee0..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id":1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 60eeceaa138..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 7289202f56e..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}],"id":1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0","method":"eth_getLogs","params":[{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}],"id":1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index 655bef96d74..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 5dbeee01578..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index dd9fd79ad87..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 00424e8a72b..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55","0x0"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index de97d564f32..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index b4d75ea0937..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index bf6daed2ea4..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index cd8fdbadf49..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx deleted file mode 100644 index 6def9d686db..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c","0x0"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx deleted file mode 100644 index 5904b007d49..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index 43267658c64..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 806811cf069..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_protocolversion-request.mdx deleted file mode 100644 index 09666559247..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_protocolversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 95ebd23a59d..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_submitwork-request.mdx deleted file mode 100644 index 84ee748d154..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_submitwork-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/optimism/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index 4d787ead7a5..00000000000 --- a/services/reference/optimism/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":"eth_syncing", "params": [], "id":1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_net_listening-request.mdx b/services/reference/optimism/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index e2b46b33753..00000000000 --- a/services/reference/optimism/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-sepolia.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_net_peercount-request.mdx b/services/reference/optimism/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 1f815569e58..00000000000 --- a/services/reference/optimism/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id":1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id":1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_net_version-request.mdx b/services/reference/optimism/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 0e3acab9ffe..00000000000 --- a/services/reference/optimism/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/optimism/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 2fbe53501c5..00000000000 --- a/services/reference/optimism/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/optimism/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index 00037a22747..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/optimism/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/optimism/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index 897faed123a..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/optimism/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/optimism/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 55d7db0a0cd..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/optimism/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/optimism/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index be7e0371fa5..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/optimism/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/optimism/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index 809b037cd74..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/optimism/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/bundler/index.md b/services/reference/optimism/json-rpc-methods/bundler/index.md deleted file mode 100644 index b5140fa3b02..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Optimism bundler methods -sidebar_label: Bundler methods -sidebar_key: optimism-bundler-methods -description: Optimism bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Optimism mainnet -and Sepolia: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/optimism/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/optimism/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index 5824049eec1..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/optimism/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/optimism/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index 72b92bc4248..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/optimism/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/optimism/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index 77a2c61136e..00000000000 --- a/services/reference/optimism/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/optimism/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_accounts.mdx b/services/reference/optimism/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index 5627dc22481..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Optimism accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_blocknumber.mdx b/services/reference/optimism/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 03cd17b42ab..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Optimism block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_call.mdx b/services/reference/optimism/json-rpc-methods/eth_call.mdx deleted file mode 100644 index d3807e6fa71..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_call -sidebar_label: eth_call -description: Executes a Optimism call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_chainid.mdx b/services/reference/optimism/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 364218f4e55..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_chainId -sidebar_label: eth_chainId -description: Returns the Optimism chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_estimategas.mdx b/services/reference/optimism/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index cff64ff343e..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Optimism transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_feehistory.mdx b/services/reference/optimism/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index b67d9ae19f1..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical Optimism gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_gasprice.mdx b/services/reference/optimism/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 8f48c6fdae4..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Optimism gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getbalance.mdx b/services/reference/optimism/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 911a60d96ca..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Optimism address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/optimism/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index a7c15c58244..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Optimism block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/optimism/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 81ffb0fb327..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Optimism block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/optimism/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index df991666592..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a block on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/optimism/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 6d4d7688198..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/optimism/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 900a81e0d4d..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getcode.mdx b/services/reference/optimism/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index b2fe464b776..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getlogs.mdx b/services/reference/optimism/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 0a9f44a2608..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getproof.mdx b/services/reference/optimism/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 4721dece081..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getstorageat.mdx b/services/reference/optimism/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 23228c38906..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/optimism/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 2901afaccba..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/optimism/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 738ef7f0e22..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/optimism/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 0d13c0e6d87..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/optimism/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 185b982e178..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/optimism/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index bc6f2a9e675..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/optimism/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index d7871fac04c..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/optimism/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index 031c003b34d..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex -description: Gets uncle by block number on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/optimism/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 7b905c4a1e6..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash -description: Gets uncle count by block hash on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/optimism/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index aff8d8e3ee3..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/optimism/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index c229f9613ff..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_protocolversion.mdx b/services/reference/optimism/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index 526f450bbe6..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_protocolVersion -sidebar_label: eth_protocolVersion -description: Returns protocol version on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from './_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/optimism/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 5ccd6c1afc6..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_submitwork.mdx b/services/reference/optimism/json-rpc-methods/eth_submitwork.mdx deleted file mode 100644 index d756f50394b..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_submitwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_submitWork -sidebar_label: eth_submitWork -description: Submits PoW solution on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_submitwork-description.mdx' - -# `eth_submitWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_submitwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_submitwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_submitwork-example.mdx' - - - -### Request - -import Request from './_eth_submitwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_submitwork-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/eth_syncing.mdx b/services/reference/optimism/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 89699de164e..00000000000 --- a/services/reference/optimism/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx deleted file mode 100644 index 7edd08637d1..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx deleted file mode 100644 index 458b8655e71..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx deleted file mode 100644 index e2fd8b52703..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx deleted file mode 100644 index ac40fe8f0ef..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx deleted file mode 100644 index bf48c413a66..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx deleted file mode 100644 index 8a3956ab76e..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getFilterChanges -sidebar_label: eth_getFilterChanges -description: Returns Optimism logs since last poll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx' - -# `eth_getFilterChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-example.mdx' - - - -### Request - -import Request from './_eth_getfilterchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx deleted file mode 100644 index 67ece79b2a2..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_getFilterLogs -sidebar_label: eth_getFilterLogs -description: Returns logs by filter ID on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx' - -# `eth_getFilterLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-example.mdx' - - - -### Request - -import Request from './_eth_getfilterlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/eth_newblockfilter.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/eth_newblockfilter.mdx deleted file mode 100644 index 2893b2d828d..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/eth_newblockfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_newBlockFilter -sidebar_label: eth_newBlockFilter -description: Creates filter to notify of new blocks on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx' - -# `eth_newBlockFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newblockfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newblockfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newblockfilter-example.mdx' - - - -### Request - -import Request from './_eth_newblockfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newblockfilter-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/eth_newfilter.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/eth_newfilter.mdx deleted file mode 100644 index 46d00f1e6c4..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/eth_newfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_newFilter -sidebar_label: eth_newFilter -description: Creates filter to notify of state changes on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx' - -# `eth_newFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newfilter-example.mdx' - - - -### Request - -import Request from './_eth_newfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newfilter-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx b/services/reference/optimism/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx deleted file mode 100644 index 71155bfd7d8..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_uninstallFilter -sidebar_label: eth_uninstallFilter -description: Uninstalls filter on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx' - -# `eth_uninstallFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-example.mdx' - - - -### Request - -import Request from './_eth_uninstallfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/filter-methods/index.md b/services/reference/optimism/json-rpc-methods/filter-methods/index.md deleted file mode 100644 index 551d2317bad..00000000000 --- a/services/reference/optimism/json-rpc-methods/filter-methods/index.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Optimism filter methods -sidebar_label: Filter methods -sidebar_key: optimism-filter-methods -description: Optimism filter methods ---- - -# Optimism filter methods - -Infura supports the following filter methods over both HTTP and WebSocket. In both cases, the filter IDs -can be shared by any connection using the same API key. - -- [`eth_getFilterChanges`](eth_getfilterchanges.mdx) -- [`eth_getFilterLogs`](eth_getfilterlogs.mdx) -- [`eth_newBlockFilter`](eth_newblockfilter.mdx) -- [`eth_newFilter`](eth_newfilter.mdx) -- [`eth_uninstallFilter`](eth_uninstallfilter.mdx) - -Filters that are not polled using [`eth_getFilterChanges`](eth_getfilterchanges.mdx) automatically -expires after fifteen minutes of inactivity. diff --git a/services/reference/optimism/json-rpc-methods/index.md b/services/reference/optimism/json-rpc-methods/index.md deleted file mode 100644 index c41e2d085bb..00000000000 --- a/services/reference/optimism/json-rpc-methods/index.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: Optimism JSON-RPC API -description: Supported standard Ethereum methods on Optimism network. -sidebar_label: JSON-RPC API -sidebar_key: optimism-json-rpc-api ---- - -# Optimism JSON-RPC API - -The standard Ethereum methods documented here are supported by Infura on the Optimism network. For custom Optimism -methods, see [Optimism Ethereum JSON-RPC API documentation](https://docs.optimism.io/node-operators/reference/op-node-json-rpc) (Bedrock release). - -You need to be aware of the [differences between the behavior of Ethereum and Optimism](https://docs.optimism.io/chain/differences). For example, there are differences related to: - -- Opcodes -- Transaction and transaction pools -- Block time and size diff --git a/services/reference/optimism/json-rpc-methods/net_peercount.mdx b/services/reference/optimism/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index e34edeae7f1..00000000000 --- a/services/reference/optimism/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/net_version.mdx b/services/reference/optimism/json-rpc-methods/net_version.mdx deleted file mode 100644 index 3363ef682fb..00000000000 --- a/services/reference/optimism/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism net_version -sidebar_label: net_version -description: Returns network ID on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/optimism/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index db2aad09b64..00000000000 --- a/services/reference/optimism/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,19 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics": ["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/optimism/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index a3ffb3017bc..00000000000 --- a/services/reference/optimism/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,12 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://optimism-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - diff --git a/services/reference/optimism/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/optimism/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index 58cc5a1527d..00000000000 --- a/services/reference/optimism/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_subscribe -sidebar_label: eth_subscribe -description: Creates new subscription on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters-no-pending.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response-no-pending.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/optimism/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index 790aa1b4d00..00000000000 --- a/services/reference/optimism/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/optimism/json-rpc-methods/subscription-methods/index.md b/services/reference/optimism/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index bc14abb054c..00000000000 --- a/services/reference/optimism/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: Optimism subscription methods -sidebar_label: Subscription methods -sidebar_key: optimism-subscription-methods -description: Optimism subscription methods ---- - -# Optimism subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/optimism/json-rpc-methods/web3_clientversion.mdx b/services/reference/optimism/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index ac13ee8b87f..00000000000 --- a/services/reference/optimism/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Optimism web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Optimism. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/optimism/quickstart.md b/services/reference/optimism/quickstart.md deleted file mode 100644 index 792a803b957..00000000000 --- a/services/reference/optimism/quickstart.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -description: Optimism quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Optimism quickstart - -This quickstart guide will help you set up and make calls on the Optimism network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Optimism network! - - -## Prerequisites - -- Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Optimism network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://optimism-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://optimism-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://optimism-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://optimism-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://optimism-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Optimism network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Optimism APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/palm/index.md b/services/reference/palm/index.md deleted file mode 100644 index a69a9877672..00000000000 --- a/services/reference/palm/index.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -description: Palm network information. ---- - -import CardList from '@site/src/components/CardList' - -# Palm - -The [Palm network](https://palm.network/) is an Ethereum Virtual Machine-compatible Polygon Supernet. The Palm network is for -creators, fans, and leaders in various industries such as art, technology, sports, and entertainment. The network -provides support to developers in their quest to build new and user-friendly tools that contribute to the growth of -the Web3 ecosystem. - -:::important - -Support for Palm testnet is deprecated; Mainnet support remains. - -::: - - diff --git a/services/reference/palm/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/palm/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 277e7bd9d4c..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_call-request.mdx b/services/reference/palm/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 011f1102197..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/palm/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 76f4e2fd674..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/palm/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index a1196298101..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/palm/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index 55490432a7d..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/palm/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 6dbe866803e..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/palm/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index 20986b1eedb..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/palm/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 552a0e2aa00..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/palm/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 19f41b05eca..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/palm/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index 084437053a3..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/palm/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 9a2384e0183..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/palm/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index e5442a7e757..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics": ["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/palm/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 8da12540187..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/palm/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index 66ae1db8ae0..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/palm/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index d46023f604c..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/palm/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index 07f0735e88b..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/palm/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 1744e576b16..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/palm/json-rpc-methods/_eth_protocolversion-request.mdx deleted file mode 100644 index 3d31375d422..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_protocolversion-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/palm/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 93df0df31ef..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/palm/json-rpc-methods/_eth_submitwork-request.mdx deleted file mode 100644 index 7e2534f9c4b..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_submitwork-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/palm/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index be7ce8715a8..00000000000 --- a/services/reference/palm/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_net_listening-request.mdx b/services/reference/palm/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index e2ce9db2661..00000000000 --- a/services/reference/palm/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_net_peercount-request.mdx b/services/reference/palm/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index acb753ac3e0..00000000000 --- a/services/reference/palm/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_net_version-request.mdx b/services/reference/palm/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 1bd8db3680e..00000000000 --- a/services/reference/palm/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/palm/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 8048163712e..00000000000 --- a/services/reference/palm/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/palm/json-rpc-methods/eth_blocknumber.mdx b/services/reference/palm/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 0293e92b41e..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Palm block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_call.mdx b/services/reference/palm/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 97318d7ed8b..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_call -sidebar_label: eth_call -description: Executes a Palm call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_chainid.mdx b/services/reference/palm/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 6eccf5c426a..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_chainId -sidebar_label: eth_chainId -description: Returns the Palm chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_estimategas.mdx b/services/reference/palm/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index f54300acc38..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Palm transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_feehistory.mdx b/services/reference/palm/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index 8a1e4211e9d..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical Palm gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_gasprice.mdx b/services/reference/palm/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 4fdeceede18..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Palm gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_getbalance.mdx b/services/reference/palm/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 52812201726..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Palm address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/palm/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 7343b1b4dff..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Palm block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/palm/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 7035c74ef8d..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Palm block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/palm/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 405ff62703a..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_getcode.mdx b/services/reference/palm/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 82211f6c10c..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_getlogs.mdx b/services/reference/palm/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 64954ab4e6c..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_getstorageat.mdx b/services/reference/palm/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 7c35c670505..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/palm/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 0243f744b1f..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/palm/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 095749645e6..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/palm/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 40d6893f0bc..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/palm/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index af06bdf329f..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_protocolversion.mdx b/services/reference/palm/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index 2f04df096b1..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_protocolVersion -sidebar_label: eth_protocolVersion -description: Returns protocol version on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from './_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/palm/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 3fc827e9a65..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_submitwork.mdx b/services/reference/palm/json-rpc-methods/eth_submitwork.mdx deleted file mode 100644 index 5677b2f7745..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_submitwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_submitWork -sidebar_label: eth_submitWork -description: Submits PoW solution on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_submitwork-description.mdx' - -# `eth_submitWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_submitwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_submitwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_submitwork-example.mdx' - - - -### Request - -import Request from './_eth_submitwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_submitwork-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/eth_syncing.mdx b/services/reference/palm/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 5f820af4aab..00000000000 --- a/services/reference/palm/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/index.md b/services/reference/palm/json-rpc-methods/index.md deleted file mode 100644 index a74c77cccea..00000000000 --- a/services/reference/palm/json-rpc-methods/index.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -title: Palm JSON-RPC API -description: Supported standard Ethereum methods on Palm network. -sidebar_label: JSON-RPC API -sidebar_key: palm-json-rpc-api ---- - -# Palm JSON-RPC API - -The standard Ethereum methods documented in this section are supported by Infura on the Palm network. - -:::info WebSocket calls not supported - -WebSocket calls are not supported when using the Palm network endpoints. - -::: diff --git a/services/reference/palm/json-rpc-methods/net_listening.mdx b/services/reference/palm/json-rpc-methods/net_listening.mdx deleted file mode 100644 index 09f2e43df7c..00000000000 --- a/services/reference/palm/json-rpc-methods/net_listening.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm net_listening -sidebar_label: net_listening -description: Indicates whether client listening for network connections on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_listening-description.mdx' - -# `net_listening` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_listening-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_listening-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_listening-example.mdx' - - - -### Request - -import Request from './_net_listening-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_listening-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/net_peercount.mdx b/services/reference/palm/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 5faa491b765..00000000000 --- a/services/reference/palm/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/net_version.mdx b/services/reference/palm/json-rpc-methods/net_version.mdx deleted file mode 100644 index c8315289f9c..00000000000 --- a/services/reference/palm/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm net_version -sidebar_label: net_version -description: Returns network ID on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/palm/json-rpc-methods/web3_clientversion.mdx b/services/reference/palm/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 431e4e887cf..00000000000 --- a/services/reference/palm/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Palm web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Palm. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/palm/quickstart.md b/services/reference/palm/quickstart.md deleted file mode 100644 index 5c489507ded..00000000000 --- a/services/reference/palm/quickstart.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -description: Palm quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Palm quickstart - -This quickstart guide will help you set up and make calls on the Palm network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Palm network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Palm network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://palm-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://palm-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://palm-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://palm-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://palm-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Palm network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Palm APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Arbitrum, Polygon, Optimism, IPFS, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/polygon-pos/index.md b/services/reference/polygon-pos/index.md deleted file mode 100644 index 3bced9e0e5c..00000000000 --- a/services/reference/polygon-pos/index.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -description: Polygon network information. ---- - -import CardList from '@site/src/components/CardList' - -# Polygon PoS - -:::note Failover protection - -[Failover protection](../../concepts/failover-protection.md) is available on the Polygon network for customers on the Growth or Custom plans. -Calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -::: - -The Polygon PoS network is a hybrid Plasma Proof of Stake side-chain to Ethereum. It's fully compatible with the Ethereum -virtual machine (EVM) which allows developers to leverage Infura, MetaMask, and other tools they use for Ethereum when -developing and deploying smart contracts to the Polygon network. - -The Polygon Bor node API is based on Geth's JSON-RPC implementation, you can also use WebSockets to call JSON-RPCs -and [create subscriptions](../../how-to/subscribe-to-events.md). - -:::info see also - -The [official Polygon documentation](https://docs.polygon.technology) for more information about using the Polygon network. - -::: - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partners provide failover support: - - - -- Infstones ([Privacy Policy](https://infstones.com/terms/privacy-notice)) -- Bware Labs ([Terms of Use](https://bwarelabs.com/terms), [Privacy Policy](https://bwarelabs.com/privacy)) -- Rivet.cloud ([Terms of Service](https://rivet.cloud/terms), [Privacy Policy](https://rivet.cloud/privacy-policy)) - - -While Rivet.cloud supports most Infura methods, it does not yet support the following methods: - -- `eth_accounts` -- `eth_coinbase` -- `eth_getRootHash` -- `eth_getUncleByBlockNumberAndIndex` -- `eth_getWork` -- `eth_hashrate` -- `eth_mining` -- `eth_sendTransaction` -- `eth_sign` diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index 0f9644fd908..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index a18e38ea3cd..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_blocknumber-requestfop.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_blocknumber-requestfop.mdx deleted file mode 100644 index c2bd1ba5ac1..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_blocknumber-requestfop.mdx +++ /dev/null @@ -1,56 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "X-INFURA-FAILOVER: true" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -const provider = new Web3.providers.HttpProvider( - "https://polygon-mainnet.infura.io/v3/" -); - -const options = { - headers: [ - { - name: "X-INFURA-FAILOVER", - value: "true", - }, -], -}; - -const web3 = new Web3(provider, options); -``` - - - - -```bash -class InfuraJsonRpcProvider extends JsonRpcProvider { - constructor(url) { - super(url); - this.preflightFunc = async (req) => { - if (req.hasBody()) { - req.setHeader("X-INFURA-FAILOVER", true); - } - return req; - }; - } -} - -provider = new InfuraJsonRpcProvider( - "https://polygon-mainnet.infura.io/v3/" -); -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_call-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 4a05c13f2fa..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 64073613c43..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_createaccesslist-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_createaccesslist-request.mdx deleted file mode 100644 index a773a6cb12d..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_createaccesslist-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"method": "eth_createAccessList", "params": [{"from": "0xaeA8F8f781326bfE6A7683C2BD48Dd6AA4d3Ba63", "data": "0x608060806080608155"}, "pending"], "id": 1, "jsonrpc": "2.0"}' -``` - - - - -```bash -wscat -c wss:///polygon-mainnet.infura.io/ws/v3/ -x '{"method": "eth_createAccessList", "params": [{"from": "0xaeA8F8f781326bfE6A7683C2BD48Dd6AA4d3Ba63", "data": "0x608060806080608155"}, "pending"], "id": 1, "jsonrpc": "2.0"}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index a4b24a79352..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155","to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index d4de7a38fac..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", []], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index bbf274d3fb7..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index fe1d6a34a35..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 601265c0627..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 864dde07bf1..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index b5898cab78e..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 150f90ccb42..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index e4e9dda0ce8..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 1ca05f9bd19..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 94158784882..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics": ["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics": ["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index 607710142a1..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 5510dc84278..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 5fb9a056675..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 60e3fcd28d6..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index a7dd2859001..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index cc85d4bcfff..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index 935cc9f38a7..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index 33156006ca0..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx deleted file mode 100644 index 0039e64dd5a..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx deleted file mode 100644 index 722a4602bd1..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0","method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index 7b2526836df..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_getwork-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_getwork-request.mdx deleted file mode 100644 index 8651b23de9e..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_getwork-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getWork", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getWork", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_hashrate-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_hashrate-request.mdx deleted file mode 100644 index 63f0ed38e7e..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_hashrate-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_hashrate", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_hashrate", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index c0710a00b4d..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_mining-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_mining-request.mdx deleted file mode 100644 index 26650754e68..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_mining-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_mining", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_mining", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_protocolversion-request.mdx deleted file mode 100644 index 7405648dbe0..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_protocolversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 5bfafe14c4e..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index a4bd6c03db1..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_net_listening-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index dc69a5569cf..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_net_peercount-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 0bb3c805064..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_net_version-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 64de1c207ed..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/polygon-pos/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 7cbdcfc6fb5..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/bor_getauthor.md b/services/reference/polygon-pos/json-rpc-methods/bor_getauthor.md deleted file mode 100644 index 3c802f60799..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bor_getauthor.md +++ /dev/null @@ -1,62 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `bor_getAuthor` - -Returns the author of the specified block. - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -`string`: Block number in hexadecimal, or the tag `latest` to get the latest block. - -## Returns - -`string`: Address of the author - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "bor_getAuthor", "params": ["0x1000"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x {"jsonrpc": "2.0", "method": "bor_getAuthor", "params": ["0x1000"], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x42eefcda06ead475cde3731b8eb138e88cd0bac3" -} -``` diff --git a/services/reference/polygon-pos/json-rpc-methods/bor_getcurrentproposer.md b/services/reference/polygon-pos/json-rpc-methods/bor_getcurrentproposer.md deleted file mode 100644 index b5512c84f3b..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bor_getcurrentproposer.md +++ /dev/null @@ -1,62 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `bor_getCurrentProposer` - -Returns the current proposer's address. - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -None - -## Returns - -`string`: Address of the current proposer - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "bor_getCurrentProposer", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "bor_getCurrentProposer", "params": [], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x88c5e96c1459d224383dcb1fe0cedd1fcee25ffb" -} -``` diff --git a/services/reference/polygon-pos/json-rpc-methods/bor_getcurrentvalidators.md b/services/reference/polygon-pos/json-rpc-methods/bor_getcurrentvalidators.md deleted file mode 100644 index 14e33cbd6a8..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bor_getcurrentvalidators.md +++ /dev/null @@ -1,87 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `bor_getCurrentValidators` - -Returns the current list of validators. The [Bor documentation](https://wiki.polygon.technology/docs/pos/design/bor/overview) contains more information about Polygon Bor architecture and how validators participate in the consensus process. - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -None - -## Returns - -Array of validator objects with the following fields: - -- `ID`: validator ID -- `accum`: the validator's proposer priority -- `power`: the validator's voting power -- `signer`: validator address - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "bor_getCurrentValidators", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x {"jsonrpc": "2.0", "method": "bor_getCurrentValidators", "params": [], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "ID": 0, - "accum": 14, - "power": 1, - "signer": "0x055bd801ca712b4ddf67db8bc23fb6c8510d52b9" - }, - { - "ID": 0, - "accum": 0, - "power": 4, - "signer": "0x1ca971963bdb4ba2bf337c90660674acff5beb3f" - }, - { - "ID": 0, - "accum": -15, - "power": 1, - "signer": "0x26c80cc193b27d73d2c40943acec77f4da2c5bd8" - } - // Additional objects here - ] -} -``` diff --git a/services/reference/polygon-pos/json-rpc-methods/bor_getroothash.md b/services/reference/polygon-pos/json-rpc-methods/bor_getroothash.md deleted file mode 100644 index 687f7ef9b17..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bor_getroothash.md +++ /dev/null @@ -1,69 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `bor_getRootHash` - -Returns the root hash of a specified block range. - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -:::warning - -The maximum difference between the specified block range can be 32767. - -::: - -## Parameters - -- `fromBlock (int)` - from block number specified as an integer -- `toBlock (int)` - to block number specified as an integer - -## Returns - -`string`: root hash of the specified block range - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "bor_getRootHash", "params": [1000, 1032], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x {"jsonrpc": "2.0", "method": "bor_getRootHash", "params": [1000, 1032], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73" -} -``` diff --git a/services/reference/polygon-pos/json-rpc-methods/bor_getsignersathash.md b/services/reference/polygon-pos/json-rpc-methods/bor_getsignersathash.md deleted file mode 100644 index b4fcd1fb3b5..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bor_getsignersathash.md +++ /dev/null @@ -1,70 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `bor_getSignersAtHash` - -Returns all the signers of the block matching the specified block hash. - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -`Hash`- hash of a block - -## Returns - -Array of signers for the specified block hash - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "bor_getSignersAtHash", "params": ["0x29fa73e3da83ddac98f527254fe37002e052725a88904bac14f03e919e1e2876"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x {"jsonrpc": "2.0", "method": "bor_getSignersAtHash", "params":["0x29fa73e3da83ddac98f527254fe37002e052725a88904bac14f03e919e1e2876"], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - "0x0375b2fc7140977c9c76d45421564e354ed42277", - "0x42eefcda06ead475cde3731b8eb138e88cd0bac3", - "0x5973918275c01f50555d44e92c9d9b353cadad54", - "0x7fcd58c2d53d980b247f1612fdba93e9a76193e6", - "0xb702f1c9154ac9c08da247a8e30ee6f2f3373f41", - "0xb8bb158b93c94ed35c1970d610d1e2b34e26652c", - "0xf84c74dea96df0ec22e11e7c33996c73fcc2d822" - ] -} -``` diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/polygon-pos/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index 614bc711dce..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/polygon/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/polygon-pos/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index 01716377f61..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/polygon/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/polygon-pos/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 518f7ebdb46..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/polygon/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/polygon-pos/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index 2ecbafe440c..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/polygon/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/polygon-pos/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index be42dcaa61e..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/polygon/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/index.md b/services/reference/polygon-pos/json-rpc-methods/bundler/index.md deleted file mode 100644 index 7bc72d9242f..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Polygon PoS bundler methods -sidebar_label: Bundler methods -sidebar_key: polygon-pos-bundler-methods -description: Polygon PoS bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Polygon mainnet -and Amoy: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index e1ad04e0344..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/polygon/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index ff4e2c7b861..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/polygon/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index cd3d73f60e5..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/polygon/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_accounts.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index d4e1f85d199..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Polygon PoS accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_blocknumber.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index abace842534..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Polygon PoS block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_call.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 06f7947cfd8..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_call -sidebar_label: eth_call -description: Executes a Polygon PoS call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_chainid.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index a26f8edf1ae..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_chainId -sidebar_label: eth_chainId -description: Returns the Polygon PoS chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_createaccesslist.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_createaccesslist.mdx deleted file mode 100644 index 1209a106ece..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_createaccesslist.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_createAccessList -sidebar_label: eth_createAccessList -description: Creates an access list to include in a Polygon PoS transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_createaccesslist-description.mdx' - -# `eth_createAccessList` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_createaccesslist-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_createaccesslist-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_createaccesslist-example.mdx' - - - -### Request - -import Request from './_eth_createaccesslist-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_createaccesslist-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_estimategas.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 569c665e7a9..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Polygon PoS transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_feehistory.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index a1401492519..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical Polygon PoS gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_gasprice.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index a8c04d1a769..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Polygon PoS gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getbalance.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 75cc255248d..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Polygon PoS address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 8ceb0fd6aa5..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Polygon PoS block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 107e44f4ba5..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Polygon PoS block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index 9b734aa5f7d..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a block on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 2e37f6f568c..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 8d1af808e66..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getcode.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 696f6bdbd86..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getlogs.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index b191a7d2e6a..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getproof.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index bb8bf034632..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getroothash.md b/services/reference/polygon-pos/json-rpc-methods/eth_getroothash.md deleted file mode 100644 index c21dd226ab1..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getroothash.md +++ /dev/null @@ -1,55 +0,0 @@ -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# `eth_getRootHash` - -Returns the root hash of a specified block range. - -:::warning - -The maximum difference between the specified block range can be 32767. - -::: - -## Parameters - -- `fromBlock (int)` - from block number specified as an integer -- `toBlock (int)` - to block number specified as an integer - -## Returns - -`string`: root hash of the specified block range - -## Example - -### Request - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ --X POST \ --H "Content-Type: application/json" \ --d '{"jsonrpc": "2.0", "method": "eth_getRootHash", "params": [1000, 1032], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getRootHash", "params":[1000, 1032], "id": 1}' -``` - - - - -### Response - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "67518d9fc6bf9ff886ba1a4e932a0d0a8a1318b3f300518773aaf2210410cf73" -} -``` diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getstorageat.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index cd3fbbac0c0..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 185c490bbad..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 969171ac76e..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index a0b9bef86a7..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 54f8b839283..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 4317b6c13eb..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index e8ecf345f8f..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index b45075d8b6a..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex -description: Gets uncle by block number on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 8116b013b6e..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash -description: Gets uncle count by block hash on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index 8638ef254f0..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_getwork.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_getwork.mdx deleted file mode 100644 index 99561ebc966..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_getwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_getWork -sidebar_label: eth_getWork -description: Return current block and seed hash on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getwork-description.mdx' - -# `eth_getWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getwork-example.mdx' - - - -### Request - -import Request from './_eth_getwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getwork-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_hashrate.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_hashrate.mdx deleted file mode 100644 index c25478fb5b4..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_hashrate.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_hashrate -sidebar_label: eth_hashrate -description: Return hashes per second on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_hashrate-description.mdx' - -# `eth_hashrate` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_hashrate-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_hashrate-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_hashrate-example.mdx' - - - -### Request - -import Request from './_eth_hashrate-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_hashrate-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index 95465f871d3..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_mining.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_mining.mdx deleted file mode 100644 index 054673c702b..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_mining.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_mining -sidebar_label: eth_mining -description: Indicates whether client is mining on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_mining-description.mdx' - -# `eth_mining` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_mining-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_mining-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_mining-example.mdx' - - - -### Request - -import Request from './_eth_mining-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_mining-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_protocolversion.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index 1759e652217..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_protocolVersion -sidebar_label: eth_protocolVersion -description: Returns protocol version on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from './_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 9201cc7dac2..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/eth_syncing.mdx b/services/reference/polygon-pos/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 8bae21e52d1..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx deleted file mode 100644 index 007c7cb3abe..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx deleted file mode 100644 index 9d89ac9233c..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx deleted file mode 100644 index 79d7213fbf4..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx deleted file mode 100644 index a1984ceeedd..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx deleted file mode 100644 index 256b34b2bc5..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx deleted file mode 100644 index 28fa5a6c464..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_getFilterChanges -sidebar_label: eth_getFilterChanges -description: Returns Polygon PoS logs since last poll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx' - -# `eth_getFilterChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-example.mdx' - - - -### Request - -import Request from './_eth_getfilterchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx deleted file mode 100644 index a592e69bac0..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_getFilterLogs -sidebar_label: eth_getFilterLogs -description: Returns logs by filter ID on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx' - -# `eth_getFilterLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-example.mdx' - - - -### Request - -import Request from './_eth_getfilterlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_newblockfilter.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_newblockfilter.mdx deleted file mode 100644 index e65b98f70e4..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_newblockfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_newBlockFilter -sidebar_label: eth_newBlockFilter -description: Creates filter to notify of new blocks on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx' - -# `eth_newBlockFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newblockfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newblockfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newblockfilter-example.mdx' - - - -### Request - -import Request from './_eth_newblockfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newblockfilter-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_newfilter.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_newfilter.mdx deleted file mode 100644 index 9b05341f8df..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_newfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_newFilter -sidebar_label: eth_newFilter -description: Creates filter to notify of state changes on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx' - -# `eth_newFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newfilter-example.mdx' - - - -### Request - -import Request from './_eth_newfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newfilter-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx b/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx deleted file mode 100644 index 84084f430c9..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Polygon PoS eth_uninstallFilter -sidebar_label: eth_uninstallFilter -description: Uninstalls filter on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx' - -# `eth_uninstallFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-example.mdx' - - - -### Request - -import Request from './_eth_uninstallfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/filter-methods/index.md b/services/reference/polygon-pos/json-rpc-methods/filter-methods/index.md deleted file mode 100644 index 1310ebf742e..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/filter-methods/index.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Polygon PoS filter methods -sidebar_label: Filter methods -sidebar_key: polygon-pos-filter-methods -description: Polygon PoS filter methods ---- - -# Polygon PoS filter methods - -Infura supports the following filter methods over both HTTP and WebSocket. In both cases, the filter IDs -can be shared by any connection using the same API key. - -- [`eth_getFilterChanges`](eth_getfilterchanges.mdx) -- [`eth_getFilterLogs`](eth_getfilterlogs.mdx) -- [`eth_newBlockFilter`](eth_newblockfilter.mdx) -- [`eth_newFilter`](eth_newfilter.mdx) -- [`eth_uninstallFilter`](eth_uninstallfilter.mdx) - -Filters that are not polled using [`eth_getFilterChanges`](eth_getfilterchanges.mdx) automatically -expires after fifteen minutes of inactivity. diff --git a/services/reference/polygon-pos/json-rpc-methods/index.md b/services/reference/polygon-pos/json-rpc-methods/index.md deleted file mode 100644 index e6a28373d97..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/index.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -sidebar_label: JSON-RPC API -sidebar_key: polygon-pos-json-rpc-api ---- - -# Polygon PoS JSON-RPC API - -Polygon's Bor node API is based on Go Ethereum (Geth). - -The API supports the standard Ethereum JSON-RPC APIs, plus the Polygon Bor methods. Infura also provides access to -[archive data](../../../concepts/archive-data.md) for API calls that require access to data older than 128 blocks. - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful [subscriptions](subscription-methods/index.md). Stateless -HTTP WebSockets are also supported. - -::: diff --git a/services/reference/polygon-pos/json-rpc-methods/net_listening.mdx b/services/reference/polygon-pos/json-rpc-methods/net_listening.mdx deleted file mode 100644 index 5d3b56d53cb..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/net_listening.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS net_listening -sidebar_label: net_listening -description: Indicates whether client listening for network connections on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_listening-description.mdx' - -# `net_listening` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_net_listening-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_listening-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_listening-example.mdx' - - - -### Request - -import Request from './_net_listening-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_listening-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/net_peercount.mdx b/services/reference/polygon-pos/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 7a469ebb9b8..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/net_version.mdx b/services/reference/polygon-pos/json-rpc-methods/net_version.mdx deleted file mode 100644 index 19e2705640d..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS net_version -sidebar_label: net_version -description: Returns network ID on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/polygon-pos/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index 33fd7e39154..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,27 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics":["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}' -``` - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/polygon-pos/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index 5e6f02fab88..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,13 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://polygon-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - - diff --git a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/polygon-pos/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index 88f9f4697ad..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_subscribe -sidebar_label: eth_subscribe -description: Creates new subscription on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/polygon-pos/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index 00b4f378896..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/index.md b/services/reference/polygon-pos/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index daa585d4367..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: Polygon PoS subscription methods -sidebar_label: Subscription methods -sidebar_key: polygon-pos-subscription-methods -description: Polygon PoS subscription methods ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Polygon PoS subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/polygon-pos/json-rpc-methods/web3_clientversion.mdx b/services/reference/polygon-pos/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 3b6ec10e7b1..00000000000 --- a/services/reference/polygon-pos/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: Polygon PoS web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Polygon PoS. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -:::info For Growth and Custom service plans - -This JSON-RPC method allows a request to be forwarded to a partner service provider if Infura should -experience a service issue or outage. See [Failover protection](../../../concepts/failover-protection.md) -and [Enable API request forwarding](../../../how-to/enable-api-forwarding.md) -for complete details. - -If you would like failover protection but don't qualify under your current plan, then either -self-upgrade to the Growth plan or contact a sales representative to upgrade to a Custom plan. - -::: - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/polygon-pos/quickstart.md b/services/reference/polygon-pos/quickstart.md deleted file mode 100644 index 7811b330f70..00000000000 --- a/services/reference/polygon-pos/quickstart.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -description: Polygon quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Polygon PoS quickstart - -This quickstart guide will help you set up and make calls on the Polygon network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Polygon network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Polygon network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://polygon-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://polygon-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://polygon-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://polygon-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://polygon-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Polygon network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Polygon APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Arbitrum, Ethereum, Optimism, IPFS and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/scroll/index.md b/services/reference/scroll/index.md deleted file mode 100644 index e39c9fbf0d3..00000000000 --- a/services/reference/scroll/index.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -description: Scroll network information. ---- - -import CardList from '@site/src/components/CardList' - -# Scroll - -:::note Decentralized Infrastructure Network (DIN) - -Scroll is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -Infura provides Open Beta access to Scroll. During this period, there might be feature limitations. -Performance issues are not expected, but they are possible as we optimize and stabilize the service. - -::: - -Scroll is a general-purpose zero knowledge Ethereum Virtual Machine (zkEVM) rollup that uses the EVM for offchain computations. -This allows Scroll to scale the experience of Ethereum, ensuring cheaper and more accessible data while maintaining the robust security -inherent to Ethereum. - -Infura provides access to the [Scroll JSON-RPC API](json-rpc-methods/index.md) method library that interacts with the -Scroll blockchain. Methods include functionality for reading and writing data to the network, and executing smart contracts. - -:::info See also - -See the [official Scroll documentation](https://docs.scroll.io/en/home/) for more information. - -::: - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partners provide access to the Scroll network: - - - -- Everstake ([Terms of Use](https://everstake.one/terms-of-use), [Privacy Notice](https://everstake.one/privacy-notice)) -- Nodies ([Terms of Service](https://www.nodies.app/tos.txt), [Privacy Policy](https://www.nodies.app/privacy.txt)) -- Chainstack ([Terms of Service](https://chainstack.com/tos/), [Privacy Policy](https://chainstack.com/privacy/)) - diff --git a/services/reference/scroll/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index 66bf52da3da..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index fce4bb32090..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_call-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index 831ea53eb07..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 50ab9a800d3..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index 31ac3706870..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index 9a8ccc39560..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]]}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", []], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index daabb2201c9..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index df21cd90889..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index 178eb566b1b..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 7f99af30fca..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index dd602d9b31f..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 4ca4b83324e..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index 5f02b110215..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 5f126b9b877..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"],"id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 41b62d669bc..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params":[{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}],"id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index d9ab24c1a7b..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"],"id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index fd469dd6dcc..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 2abe8e7e94a..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index b1d6014d436..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55","0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55","0x0"],"id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index 1d4fc1d4d8d..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"],"id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 5a902e1d550..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f","0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f","0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index 9ed5f0de36f..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index a6b13157ab5..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx deleted file mode 100644 index 5634b561526..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c","0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c","0x0"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx deleted file mode 100644 index c13e313ad8b..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index 459139be22d..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 6622a21218e..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-call-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-call-parameters.mdx deleted file mode 100644 index 38638909773..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-call-parameters.mdx +++ /dev/null @@ -1,12 +0,0 @@ -- `from`: 20 bytes [_required_] Address the transaction is sent from. -- `to`: 20 bytes - Address the transaction is directed to. -- `gas`: Hexadecimal value of the gas provided for the transaction execution. `eth_call` consumes zero gas, but this parameter may be needed by some executions. -- `gasPrice`: Hexadecimal value of the `gasPrice` used for each paid gas. -- `maxPriorityFeePerGas`: Maximum fee, in wei, the sender is willing to pay per gas above the base fee. See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). -- `maxFeePerGas`: Maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). -- `value`: Hexadecimal of the value sent with this transaction. -- `data`: Hash of the method signature and encoded parameters. See [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-estimategas-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-estimategas-parameters.mdx deleted file mode 100644 index 8b12a59ea44..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-estimategas-parameters.mdx +++ /dev/null @@ -1,24 +0,0 @@ -- `TRANSACTION CALL OBJECT` _\[required]_ - - `from`: _\[optional]_ 20 Bytes - The address the transaction is sent from. - - `to`: 20 Bytes - The address the transaction is directed to. - - `gas`: _\[optional]_ Hexadecimal value of the gas provided for the transaction execution. `eth_estimateGas` consumes - zero gas, but this parameter may be needed by some executions. - - `gasPrice`: _\[optional]_ Hexadecimal value of the gas price used for each paid gas. - - `maxPriorityFeePerGas`: _\[optional]_ Maximum fee, in wei, the sender is willing to pay per gas - above the base fee. - See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). - - `maxFeePerGas`: _\[optional]_ Maximum total fee (base fee + priority fee), in wei, the sender is - willing to pay per gas. - See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). - - `value`: _\[optional]_ Hexadecimal value of the value sent with this transaction. - - `data`: _\[optional]_ Hash of the method signature and encoded parameters. See the - [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). - - `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, - `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: - -If no gas limit is specified, geth uses the block gas limit from the pending block as an upper bound. -As a result the returned estimate might not be enough to executed the call/transaction when the amount -of gas is higher than the pending block gas limit. diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getbalance-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getbalance-parameters.mdx deleted file mode 100644 index b95a578d543..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getbalance-parameters.mdx +++ /dev/null @@ -1,5 +0,0 @@ -- `address`: [_Required_] A string representing the address (20 bytes) to check for balance. -- `block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getblockbynumber-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getblockbynumber-parameters.mdx deleted file mode 100644 index 80255d945b7..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getblockbynumber-parameters.mdx +++ /dev/null @@ -1,5 +0,0 @@ -- `block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: -- `show transaction details flag`: [_Required_] If set to `true`, returns the full transaction objects. If `false` returns only the hashes of the transactions. diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getblocktransactioncountbynumber-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getblocktransactioncountbynumber-parameters.mdx deleted file mode 100644 index ab4a0d91ebb..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getblocktransactioncountbynumber-parameters.mdx +++ /dev/null @@ -1,4 +0,0 @@ -`block number`:[_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -:::warning -`safe` isn't supported. Use `finalized` instead. -::: diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getcode-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getcode-parameters.mdx deleted file mode 100644 index 020e1a822c5..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getcode-parameters.mdx +++ /dev/null @@ -1,5 +0,0 @@ -- `address`: [_Required_] A string representing the address (20 bytes) of the smart contract, from which the compiled byte code will be obtained. -- `block number`:[_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getlogs-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getlogs-parameters.mdx deleted file mode 100644 index aa9d323ce4f..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getlogs-parameters.mdx +++ /dev/null @@ -1,10 +0,0 @@ -A filter object containing the following: - -- `address`: [_optional_] Contract address (20 bytes) or a list of addresses from which logs should originate. -- `fromBlock`: _[optional, default is `latest`]_ A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: -- `toBlock`: _[optional, default is `latest`]_ A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- `topics`: _[optional]_ Array of 32 bytes DATA topics. Topics are order-dependent. -- `blockhash`: _[optional]_ Restricts the logs returned to the single block referenced in the 32-byte hash `blockHash`. Using `blockHash` is equivalent to setting `fromBlock` and `toBlock` to the block number referenced in the `blockHash`. If `blockHash` is present in the filter criteria, then neither `fromBlock` nor `toBlock` are allowed. diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getproof-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getproof-parameters.mdx deleted file mode 100644 index 0d286cbc09b..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getproof-parameters.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `address`: A string representing the address (20 bytes) to check for balance. -- `storageKeys`: An array of 32-byte storage keys to be proofed and included. -- `blockParameter`: (string) A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getstorageat-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getstorageat-parameters.mdx deleted file mode 100644 index 5aa4b9494a4..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getstorageat-parameters.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `address`: [_required_] A string representing the address (20 bytes) to check for balance. -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: -- `storage position`: [_required_] A hexadecimal code of the position in the storage. diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-gettransactionbyblocknumberandindex-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-gettransactionbyblocknumberandindex-parameters.mdx deleted file mode 100644 index 57657cd40c5..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-gettransactionbyblocknumberandindex-parameters.mdx +++ /dev/null @@ -1,5 +0,0 @@ -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: -- `transaction index position`: [_required_] A hexadecimal of the integer representing the position in the block. diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-gettransactioncount-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-gettransactioncount-parameters.mdx deleted file mode 100644 index fb2df3a1d2c..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-gettransactioncount-parameters.mdx +++ /dev/null @@ -1,5 +0,0 @@ -- `address`: [_Required_] A string representing the address (20 bytes). -- `block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getunclebyblocknumberandindex-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getunclebyblocknumberandindex-parameters.mdx deleted file mode 100644 index 9e969bf2033..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getunclebyblocknumberandindex-parameters.mdx +++ /dev/null @@ -1,5 +0,0 @@ -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: -- `uncle index position`: [_required_] A hexadecimal equivalent of the integer indicating the uncle's index position. diff --git a/services/reference/scroll/json-rpc-methods/_eth_scroll-getunclecountbyblocknumber-parameters.mdx b/services/reference/scroll/json-rpc-methods/_eth_scroll-getunclecountbyblocknumber-parameters.mdx deleted file mode 100644 index 440503c7e7b..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_scroll-getunclecountbyblocknumber-parameters.mdx +++ /dev/null @@ -1,4 +0,0 @@ -`block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -:::warning -`safe` isn't supported. Use `finalized` instead. -::: diff --git a/services/reference/scroll/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index e538964524a..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params":["0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/scroll/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index f97d5eb8e9b..00000000000 --- a/services/reference/scroll/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_net_listening-request.mdx b/services/reference/scroll/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index b3da10e7b86..00000000000 --- a/services/reference/scroll/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_net_peercount-request.mdx b/services/reference/scroll/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 63789071566..00000000000 --- a/services/reference/scroll/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_net_version-request.mdx b/services/reference/scroll/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 14481b09aed..00000000000 --- a/services/reference/scroll/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/scroll/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 2d09d3af904..00000000000 --- a/services/reference/scroll/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/scroll/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index 8ac2670c623..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/scroll/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/scroll/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index 426bdc8f3fb..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/scroll/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/scroll/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 1d384f95cd6..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/scroll/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/scroll/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index d566365d798..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/scroll/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/scroll/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index 7335d3b0ce3..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/scroll/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/bundler/index.md b/services/reference/scroll/json-rpc-methods/bundler/index.md deleted file mode 100644 index f0c8ae18ba6..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Scroll bundler methods -sidebar_label: Bundler methods -sidebar_key: scroll-bundler-methods -description: Scroll bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Scroll mainnet -and Sepolia: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/scroll/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/scroll/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index 4ee2faf03d3..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/scroll/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/scroll/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index cf0f0c21876..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/scroll/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/scroll/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index fc3bfbaef45..00000000000 --- a/services/reference/scroll/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/scroll/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/debug/_debug_traceblock-request.mdx b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblock-request.mdx deleted file mode 100644 index da834892de3..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/_debug_traceblock-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x'{"jsonrpc": "2.0", "method": "debug_traceBlock", "params": ["0xf90277f90208a05a41d0e66b4120775176c09fcf39e7c0520517a13d2b57b18d33d342df038bfca01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794e6a7a1d47ff21b6321162aea7c6cb457d5476bcaa00e0df2706b0a4fb8bd08c9246d472abbe850af446405d9eba1db41db18b4a169a04513310fcb9f6f616972a3b948dc5d547f280849a87ebb5af0191f98b87be598a0fe2bf2a941abf41d72637e5b91750332a30283efd40c424dc522b77e6f0ed8c4b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000860153886c1bbd82b44382520b8252088455c426598b657468706f6f6c2e6f7267a0b48c515a9dde8d346c3337ea520aa995a4738bb595495506125449c1149d6cf488ba4f8ecd18aab215f869f86780862d79883d2000825208945df9b87991262f6ba471f09758cde1c0fc1de734827a69801ca088ff6cf0fefd94db46111149ae4bfc179e9b94721fffd821d38d16464b3f71d0a045e0aff800961cfce805daef7016b9b675c137a6a41a548f7b60a3484c06a33ac0", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx deleted file mode 100644 index fe99b222aa0..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash", "params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceBlockByHash","params": ["0xcc4e47e5f5e82c12ccd511e97f6994b4c4f95808778323ed5cf0a56640b0a815", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx b/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx deleted file mode 100644 index 442745050ee..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/_debug_traceblockbynumber-request.mdx +++ /dev/null @@ -1,23 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ \ --x '{"method":"debug_traceBlockByNumber","params":["0x4d0c", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/debug/_debug_tracecall-request.mdx b/services/reference/scroll/json-rpc-methods/debug/_debug_tracecall-request.mdx deleted file mode 100644 index 048c457f8eb..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/_debug_tracecall-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "debug_traceCall", "params": [{"to": "0x6b175474e89094c44da98b954eedeac495271d0f", "data": "0x70a082310000000000000000000000006E0d01A76C3Cf4288372a29124A26D4353EE51BE"}, "latest", {"tracer": "callTracer"}], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblock.mdx b/services/reference/scroll/json-rpc-methods/debug/debug_traceblock.mdx deleted file mode 100644 index 2f58b8e0219..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/debug_traceblock.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return a full trace of all invoked opcodes of all transactions included in the block. -title: Mantle debug_traceBlock -sidebar_label: debug_traceBlock ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceBlock` - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblock-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_traceblock-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblock-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblock-example.mdx' - - - -### Request - -import Request from './_debug_traceblock-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblock-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.mdx b/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.mdx deleted file mode 100644 index 40986cd30ac..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the block specified by the block hash. -title: Mantle debug_traceBlockByHash -sidebar_label: debug_traceBlockByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceBlockByHash` - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-example.mdx' - - - -### Request - -import Request from './_debug_traceblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblockbyhash-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.mdx b/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.mdx deleted file mode 100644 index dd23dfcb7c4..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/debug_traceblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Return tracing results by executing all transactions in the specified block number. -title: Mantle debug_traceBlockByNumber -sidebar_label: debug_traceBlockByNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceBlockByNumber` - -import Description from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-example.mdx' - - - -### Request - -import Request from './_debug_traceblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_traceblockbynumber-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.mdx b/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.mdx deleted file mode 100644 index 1ad1ff45320..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/debug_tracecall.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -description: Returns the number of possible tracing results in the context of the given block execution. -title: Mantle debug_traceCall -sidebar_label: debug_traceCall ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `debug_traceCall` - -import Description from '/services/reference/_partials/debug-methods/_debug_tracecall-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/debug-methods/_debug_tracecall-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/debug-methods/_debug_tracecall-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/debug-methods/_debug_tracecall-example.mdx' - - - -### Request - -import Request from './_debug_tracecall-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/debug-methods/_debug_tracecall-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/debug/index.md b/services/reference/scroll/json-rpc-methods/debug/index.md deleted file mode 100644 index 66fff5771ab..00000000000 --- a/services/reference/scroll/json-rpc-methods/debug/index.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -description: Scroll debug methods. -sidebar_label: Debug methods -sidebar_key: scroll-debug-methods ---- - -# Scroll debug methods - -The debug API methods allow you to inspect and debug the network. Infura supports the following debug -methods on the Scroll network: - -- [`debug_traceBlock`](debug_traceblock.mdx) -- [`debug_traceBlockByHash`](debug_traceblockbyhash.mdx) -- [`debug_traceBlockByNumber`](debug_traceblockbynumber.mdx) -- [`debug_traceCall`](debug_tracecall.mdx) - -## Debug tracing types - -The debug methods support the `callTracer` and `prestateTracer` tracing types, which return different -results when specified in the supported debug methods. - -### `callTracer` - -The `callTracer` tracing type tracks all the call frames executed during a transaction, including the -initial call. It returns a nested list of call frames, resembling how the EVM works. They form a tree -with the top-level call at the root and sub-calls as children of the higher levels. - -The `callTracer` type returns an object with the following results: - -| Field | Type | Description | -| -------------- | ------ | -------------------------------------------------------------------------------------------------------------------- | -| `type` | string | The type of call. | -| `from` | string | The address the transaction is sent from. | -| `to` | string | The address the transaction is directed to. | -| `value` | string | The amount transferred in the call (hex-encoded). | -| `gas` | string | The amount of gas provided for the call (hex-encoded). | -| `gasUsed` | string | The amount of gas used by the call (hex-encoded). | -| `input` | string | The call data. | -| `output` | string | The return data. | -| `error` | string | If an error occurred during the call, this field will contain the error message. | -| `revertReason` | string | If the contract execution was reverted, this field will contain the reason for the revert (if provided by Solidity). | -| `calls` | array | Sub-calls made by the contract during the execution of the transaction. | - -### `prestateTracer` - -The `prestateTracer` tracing type records and tracks every change made to the state during the execution -of transactions. It generates an object that contains keys representing the addresses of the accounts -involved in the transactions. The corresponding values are objects that include specific fields related -to the state changes made during the transaction: - -| Field | Type | Description | -| --------- | ------ | ------------------------------------ | -| `balance` | string | The account balance. | -| `nonce` | uint64 | The nonce value for the transaction. | -| `code` | string | The hex-encoded bytecode. | -| `storage` | map | The storage slots of the contract. | diff --git a/services/reference/scroll/json-rpc-methods/eth_accounts.mdx b/services/reference/scroll/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index bcea2a8e989..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Scroll eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Scroll accounts. ---- - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_blocknumber.mdx b/services/reference/scroll/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 78212d68f4b..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Scroll block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_call.mdx b/services/reference/scroll/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 0f6c526af82..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_call -sidebar_label: eth_call -description: Executes a Scroll call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from './_eth_scroll-call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_chainid.mdx b/services/reference/scroll/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index f41741ad9c0..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_chainId -sidebar_label: eth_chainId -description: Returns the Scroll chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_estimategas.mdx b/services/reference/scroll/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index 1d1b4bec727..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Scroll transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from './_eth_scroll-estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_feehistory.mdx b/services/reference/scroll/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index 03e2c8fbee8..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical Scroll gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_gasprice.mdx b/services/reference/scroll/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 823b5fb4a35..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Scroll gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getbalance.mdx b/services/reference/scroll/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 01b645d0c4c..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Scroll address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from './_eth_scroll-getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/scroll/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index e24a323ec34..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Scroll block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/scroll/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index dbc498c8e91..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Scroll block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from './_eth_scroll-getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/scroll/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index 016f4df7890..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a block on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/scroll/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 0f7873bd02c..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/scroll/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index d5560b800af..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from './_eth_scroll-getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getcode.mdx b/services/reference/scroll/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 97505b80184..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from './_eth_scroll-getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getlogs.mdx b/services/reference/scroll/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 1f3cba90d42..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from './_eth_scroll-getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getproof.mdx b/services/reference/scroll/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 1e433f7172f..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from './_eth_scroll-getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getstorageat.mdx b/services/reference/scroll/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index a1e0dfffb24..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from './_eth_scroll-getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/scroll/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 981dcbfc2cc..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response-yparity.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/scroll/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 6230fe24c84..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from './_eth_scroll-gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response-yparity.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/scroll/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 309ef73cd14..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response-yparity.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/scroll/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 9765f5e601c..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from './_eth_scroll-gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/scroll/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 12dae101f9a..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/scroll/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index 266be73ded0..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/scroll/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index 6215310a8b1..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex -description: Gets uncle by block number on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from './_eth_scroll-getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/scroll/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 8acbc6fb133..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash -description: Gets uncle count by block hash on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/scroll/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index 0b5c9be9df7..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from './_eth_scroll-getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/scroll/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index 9c2f0cb3836..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/scroll/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index c1f1e082f10..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/eth_syncing.mdx b/services/reference/scroll/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index 52a7d2b35da..00000000000 --- a/services/reference/scroll/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx deleted file mode 100644 index 3850bda46c1..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_getfilterchanges-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterChanges", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx deleted file mode 100644 index fe86242318c..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_getfilterlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getFilterLogs", "params": ["0x10ff0bfbedb01f0dbd4106d14eb719ec38b6eb5b821c"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx deleted file mode 100644 index 66b1527a6d1..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_newblockfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newBlockFilter", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx deleted file mode 100644 index 6731dadd5c0..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_newfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_newFilter", "params": [{"topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx deleted file mode 100644 index f89bd9c049d..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/_eth_uninstallfilter-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_uninstallFilter", "params": ["0x10ff0bfba9472c87932c56632eef8f5cc70910e8e71d"], "id": 1}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx deleted file mode 100644 index c53098fd847..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/eth_getfilterchanges.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getFilterChanges -sidebar_label: eth_getFilterChanges -description: Returns Scroll logs since last poll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-description.mdx' - -# `eth_getFilterChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-example.mdx' - - - -### Request - -import Request from './_eth_getfilterchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterchanges-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx deleted file mode 100644 index 4df29bc0839..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/eth_getfilterlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_getFilterLogs -sidebar_label: eth_getFilterLogs -description: Returns logs by filter ID on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-description.mdx' - -# `eth_getFilterLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-example.mdx' - - - -### Request - -import Request from './_eth_getfilterlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_getfilterlogs-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/eth_newblockfilter.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/eth_newblockfilter.mdx deleted file mode 100644 index f1705f56d4a..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/eth_newblockfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_newBlockFilter -sidebar_label: eth_newBlockFilter -description: Creates filter to notify of new blocks on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newblockfilter-description.mdx' - -# `eth_newBlockFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newblockfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newblockfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newblockfilter-example.mdx' - - - -### Request - -import Request from './_eth_newblockfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newblockfilter-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/eth_newfilter.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/eth_newfilter.mdx deleted file mode 100644 index d86fdc11ad7..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/eth_newfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_newFilter -sidebar_label: eth_newFilter -description: Creates filter to notify of state changes on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_newfilter-description.mdx' - -# `eth_newFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_newfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_newfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_newfilter-example.mdx' - - - -### Request - -import Request from './_eth_newfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_newfilter-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx b/services/reference/scroll/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx deleted file mode 100644 index 70159bae71e..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/eth_uninstallfilter.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_uninstallFilter -sidebar_label: eth_uninstallFilter -description: Uninstalls filter on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-description.mdx' - -# `eth_uninstallFilter` - - - -## Parameters - -import Params from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-example.mdx' - - - -### Request - -import Request from './_eth_uninstallfilter-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/filter-methods/_eth_uninstallfilter-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/filter-methods/index.md b/services/reference/scroll/json-rpc-methods/filter-methods/index.md deleted file mode 100644 index 04c646841bf..00000000000 --- a/services/reference/scroll/json-rpc-methods/filter-methods/index.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Scroll filter methods -sidebar_label: Filter methods -sidebar_key: scroll-filter-methods -description: Scroll filter methods ---- - -# Scroll filter methods - -Infura supports the following filter methods over both HTTP and WebSocket. In both cases, the filter IDs can be shared by any connection using the same API key. - -Filters that are not polled using [`eth_getFilterChanges`](eth_getfilterchanges.mdx) will be automatically expired after fifteen minutes of inactivity. diff --git a/services/reference/scroll/json-rpc-methods/index.md b/services/reference/scroll/json-rpc-methods/index.md deleted file mode 100644 index a975df58f8a..00000000000 --- a/services/reference/scroll/json-rpc-methods/index.md +++ /dev/null @@ -1,152 +0,0 @@ ---- -sidebar_label: JSON-RPC API -sidebar_key: scroll-json-rpc-api ---- - -# Scroll JSON-RPC API - -Here you can find the JSON-RPC API endpoints. You [can call these APIs using a variety of tools](../quickstart.md). - -## Error codes - -You may encounter various errors when interacting with a network: - -- [**JSON-RPC errors**](#json-rpc-errors) - operations on the blockchain network. It means the server has successfully received the JSON-RPC - request but encountered an issue processing it. Causes might include invalid parameters, a method not - found, or execution errors related to the requested operation. - -- [**HTTP errors**](#http-errors): These happen at the transport layer during data transmission to the blockchain - network. They could stem from Infura-related issues like rate limits, API key problems, or - service availability issues. - -- [**Smart contract errors**](#smart-contract-errors): These arise during attempts to execute transactions in the EVM - involving smart contracts. - -### JSON-RPC errors - -Error codes returned by Infura's RPC service network APIs can vary slightly between implementations, but -they generally follow the [JSON-RPC 2.0 specification](https://www.jsonrpc.org/specification#error_object) -and Ethereum-specific conventions. - -Below is a table listing the error codes, their messages, and meanings. The "Standard" category includes -common JSON-RPC errors, while the "Non-standard" category encompasses server errors defined by the -implementation. - -| Code | Message | Meaning | Category | -| ------ | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -| -32700 | Parse error | The JSON request is invalid, this can be due to syntax errors. | Standard | -| -32600 | Invalid request | The JSON request is possibly malformed. | Standard | -| -32601 | Method not found | The method does not exist, often due to a typo in the method name or the method not being supported. | Standard | -| -32602 | Invalid argument | Invalid method parameters. For example, `"error":{"code":-32602,"message":"invalid argument 0: json: cannot unmarshal hex string without 0x prefix into Go value of type common.Hash"}` indicates the `0x` prefix is missing from the hexadecimal address. | Standard | -| -32603 | Internal error | An internal JSON-RPC error, often caused by a bad or invalid payload. | Standard | -| -32000 | Invalid input | Missing or invalid parameters, possibly due to server issues or a block not being processed yet. | Non-standard | -| -32001 | Resource not found | The requested resource cannot be found, possibly when calling an unsupported method. | Non-standard | -| -32002 | Resource unavailable | The requested resource is not available. | Non-standard | -| -32003 | Transaction rejected | The transaction could not be created. | Non-standard | -| -32004 | Method not supported | The requested method is not implemented. | Non-standard | -| -32005 | Limit exceeded | The request exceeds your request limit. | Non-standard | -| -32006 | JSON-RPC version not supported | The version of the JSON-RPC protocol is not supported. | Non-standard | - -Example error response: - -```json -{ - "id": 1337 - "jsonrpc": "2.0", - "error": { - "code": -32003, - "message": "Transaction rejected" - } -} -``` - -### HTTP errors - -Infura-specific error codes or messages could include errors for rate limits, API key issues, or -service availability problems. - -| Code | Message | Meaning | -| ---- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| 400 | Bad request | Incorrect HTTP Request type or invalid characters, ensure that your request body and format is correct. | -| 401 | Unauthorized | This can happen when one or multiple security requirements are not met. Example responses: `project id required in the url`, `invalid project id`, `invalid project id or project secret`, `invalid JWT`. | -| 403 | Forbidden | The request was intentionally refused due to specific settings mismatch, check your key settings. Example response: `"error":{"code":-32002,"message":"rejected due to project ID settings"}`. | -| 429 | Too Many Requests | The daily request total or request per second are higher than your plan allows. Refer to the [Avoid rate limiting](../../../how-to/avoid-rate-limiting.md) topic for more information. Example responses: `"error": {"code": -32005, "message": "daily request count exceeded, request rate limited"}`, `"error": {"code": -32005, "message": "project ID request rate exceeded"}`. | -| 500 | Internal Server Error | Error while processing the request on the server side. | -| 502 | Bad Gateway | Indicates a communication error which can have various causes, from networking issues to invalid response received from the server. | -| 503 | Service Unavailable | Indicates that the server is not ready to handle the request. | -| 504 | Gateway Timeout | The request ended with a timeout, it can indicate a networking issue or a delayed or missing response from the server. | - -### Smart contract errors - -When interacting with smart contracts, you might also encounter errors related to the execution of -transactions in the EVM: - -- **Out of gas**: The transaction does not have enough gas to complete. -- **Revert**: The transaction was reverted by the EVM, often due to a condition in the smart contract code. -- **Bad instruction**: The transaction tried to execute an invalid operation. -- **Bad jump destination**: A jump was made to an invalid location in the smart contract code. - -## Value encoding - -Specific types of values passed to and returned from Ethereum RPC methods require special encoding: - -### Quantity - -A `Quantity` (integer, number) must: - -- Be hex-encoded. -- Be `0x`-prefixed. -- Be expressed using the fewest possible hex digits per byte. -- Express zero as `0x0`. - -Examples `Quantity` values: - -| Value | Validity | Reason | -| -------- | --------- | ---------------------------------- | -| `0x` | `invalid` | Empty not a valid quantity. | -| `0x0` | `valid` | Interpreted as a quantity of zero. | -| `0x00` | `invalid` | Leading zeroes not allowed. | -| `0x41` | `valid` | Interpreted as a quantity of 65. | -| `0x400` | `valid` | Interpreted as a quantity of 1024. | -| `0x0400` | `invalid` | Leading zeroes not allowed. | -| `ff` | `invalid` | Values must be prefixed. | - -### Block identifier - -The RPC methods below take a default block identifier as a parameter. - -- `eth_getBalance` -- `eth_getStorageAt` -- `eth_getTransactionCount` -- `eth_getCode` -- `eth_call` -- `eth_getProof` - -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: - -| Property | Type | Description | -| ------------------ | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `[blockNumber]` | \{[`Quantity`](eth_blocknumber.mdx)\} | The block in the canonical chain with this number | -| 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. | -| `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. The default is `false`. | - -### Data - -A `Data` value (for example, byte arrays, account addresses, hashes, and bytecode arrays) must: - -- Be hex-encoded. -- Be "0x"-prefixed. -- Be expressed using two hex digits per byte. - -Examples `Data` values: - -| Value | Valid | Reason | -| ---------- | --------- | --------------------------------------------------- | -| `0x` | `valid` | Interpreted as empty data. | -| `0x0` | `invalid` | Each byte must be represented using two hex digits. | -| `0x00` | `valid` | Interpreted as a single zero byte. | -| `0x41` | `true` | Interpreted as a data value of 65. | -| `0x004200` | `true` | Interpreted as a data value of 16896. | -| `0xf0f0f` | `false` | Bytes require two hex digits. | -| `004200` | `false` | Values must be prefixed. | diff --git a/services/reference/scroll/json-rpc-methods/net_listening.mdx b/services/reference/scroll/json-rpc-methods/net_listening.mdx deleted file mode 100644 index 77c70a81470..00000000000 --- a/services/reference/scroll/json-rpc-methods/net_listening.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll net_listening -sidebar_label: net_listening -description: Indicates whether client listening for network connections on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_listening-description.mdx' - -# `net_listening` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_listening-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_listening-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_listening-example.mdx' - - - -### Request - -import Request from './_net_listening-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_listening-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/net_peercount.mdx b/services/reference/scroll/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 97796e4f9d2..00000000000 --- a/services/reference/scroll/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/net_version.mdx b/services/reference/scroll/json-rpc-methods/net_version.mdx deleted file mode 100644 index 09cc2d2cb1c..00000000000 --- a/services/reference/scroll/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll net_version -sidebar_label: net_version -description: Returns network ID on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_subscribe-parameters-no-pending.mdx b/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_subscribe-parameters-no-pending.mdx deleted file mode 100644 index d8232c44c22..00000000000 --- a/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_subscribe-parameters-no-pending.mdx +++ /dev/null @@ -1,9 +0,0 @@ -Specify one of the following subscription events: - -- `newHeads`: Subscribing to this returns a notification each time a new header is appended to the chain, including chain reorganizations. In a chain reorganization, the subscription emits all new headers for the new chain. Therefore the subscription can emit multiple headers at the same height. -- `logs`: Returns logs that are included in new imported blocks and match the given filter criteria. In case of a chain reorganization, previously sent logs that are on the old chain are resent with the removed property set to `true`. Logs from transactions that ended up in the new chain are emitted. Therefore a subscription can emit logs for the same transaction multiple times. This parameter has the following fields: - - `address`: (_optional_) Either an address or an array of addresses. Only logs that are created from these addresses are returned. - - `topics`: (_optional_) Only logs that match these specified topics are returned. - :::tip Infura Recommendation - We strongly recommend specifying a filter (`address` or `topics` or both) when subscribing to the `logs` event. - ::: diff --git a/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index 9aadec43568..00000000000 --- a/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,19 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics":["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - diff --git a/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index 6ed85b057d4..00000000000 --- a/services/reference/scroll/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,13 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - - diff --git a/services/reference/scroll/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/scroll/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index 71d5dcc900c..00000000000 --- a/services/reference/scroll/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_subscribe -sidebar_label: eth_subscribe -description: Creates new subscription on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from './_eth_subscribe-parameters-no-pending.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response-no-pending.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/scroll/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index a6d3e62324f..00000000000 --- a/services/reference/scroll/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/subscription-methods/index.md b/services/reference/scroll/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index cff5a0d81c9..00000000000 --- a/services/reference/scroll/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -title: Scroll subscription methods -sidebar_label: Subscription methods -sidebar_key: scroll-subscription-methods ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Scroll subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/scroll/json-rpc-methods/web3_clientversion.mdx b/services/reference/scroll/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 9032f87cde4..00000000000 --- a/services/reference/scroll/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Scroll web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Scroll. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/scroll/json-rpc-methods/web3_sha3.mdx b/services/reference/scroll/json-rpc-methods/web3_sha3.mdx deleted file mode 100644 index bee3d072558..00000000000 --- a/services/reference/scroll/json-rpc-methods/web3_sha3.mdx +++ /dev/null @@ -1,66 +0,0 @@ ---- -title: Scroll web3_sha3 -sidebar_label: web3_sha3 ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `web3_sha3` - -Returns a [SHA3](https://en.wikipedia.org/wiki/SHA-3) hash of the specified data. The result value is a [Keccak-256](https://keccak.team/keccak.html) hash, not the standardized SHA3-256. - -## Parameters - -`data`: [Required] _string_ - data to convert to a SHA3 hash. - -## Returns - -`result`: _string_ - SHA3 result of the input data. - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - - - - - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_sha3", "params":["0x68656c6c6f20776f726c00"], "id": 1}' -``` - - - - -```bash - wscat -c wss://scroll-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method":web3_sha3", "params":["0x68656c6c6f20776f726c00"], "id": 1}' -``` - - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x5e39a0a66544c0668bde22d61c47a8710000ece931f13b84d3b2feb44ec96d3f" -} -``` - - - - diff --git a/services/reference/scroll/quickstart.md b/services/reference/scroll/quickstart.md deleted file mode 100644 index 86cedffc3e5..00000000000 --- a/services/reference/scroll/quickstart.md +++ /dev/null @@ -1,247 +0,0 @@ ---- -description: Scroll quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Scroll quickstart - -This quickstart guide will help you set up and make calls on the Scroll network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Scroll network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api/) with the Scroll network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://scroll-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -:::note - -In Windows Powershell, quotations in `curl` commands can behave differently than expected. We recommend using Postman on Windows systems. - -::: - -### Postman - -Call the JSON-RPC methods using [Postman](https://learning.postman.com/docs/getting-started/introduction/). - -Click **Run in Postman** to fork the collection and make requests. - -[![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/8171681-49bfbc10-85ae-466c-8cf0-91eba9298b12?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D8171681-49bfbc10-85ae-466c-8cf0-91eba9298b12%26entityType%3Dcollection%26workspaceId%3Db8156083-f4da-481f-84fa-72dcc26cb146) - -:::info - -Set the correct [variables](https://learning.postman.com/docs/sending-requests/variables/#understanding-variables) for your API key and network before running requests. - -::: - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://scroll-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://scroll-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://scroll-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Web3.js - -1. In your project folder, [install the latest version of the web3.js library](https://www.npmjs.com/package/web3?activeTab=versions) - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - var { Web3 } = require('web3') - var provider = 'https://scroll-mainnet.infura.io/v3/' - var web3Provider = new Web3.providers.HttpProvider(provider) - var web3 = new Web3(web3Provider) - - web3.eth.getBlockNumber().then(result => { - console.log('Latest Scroll Block is ', result) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://scroll-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {'content-type': 'application/json'} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Scroll network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Scroll APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Arbitrum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats/) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/sei/index.md b/services/reference/sei/index.md deleted file mode 100644 index 6f0de48d791..00000000000 --- a/services/reference/sei/index.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -description: Sei network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Sei - -:::note Decentralized Infrastructure Network (DIN) - -Sei is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -::: - -Sei is a Layer 1 blockchain designed for trading and exchange-focused applications. It features a -parallelized EVM architecture, native order matching, and subsystems that address latency and scalability -limitations while maintaining Ethereum compatibility. - -:::info See also -Refer to the [official Sei documentation](https://docs.sei.io/) for more information. -::: - -Select an option below to get started with the Sei network. - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill -your API request. This means that Infura's partner service provider can service your request, but not -store the content of your request. - -The following partners provide access to the Sei network: - - - -- BlockPI ([Terms of Use](https://blockpi.io/terms-of-use), [Privacy Policy](https://blockpi.io/privacy-policy)) -- Nodefleet ([Privacy Policy](https://nodefleet.org/#/privacy-policy)) -- Nodies ([Terms of Service](https://www.nodies.app/tos.txt), [Privacy Policy](https://www.nodies.app/privacy.txt)) - diff --git a/services/reference/sei/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/sei/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index b8e6bb6dc68..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_call-request.mdx b/services/reference/sei/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index e2e2fb28989..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xBEFcda6d33bC7876827Dd8EC11719cFED9b1a113", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/sei/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index c45a463c618..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/sei/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index dcb29456548..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0xBEFcda6d33bC7876827Dd8EC11719cFED9b1a113", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/sei/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index 7f74a9f5ca4..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]] }' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/sei/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 8079d6261bc..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index 023e021eeb3..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index f227322d5c0..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0x196C64BD2E8E4E3C17EDCB61ABEFEF613E59C2F00E99FDCE4CDBBA164FC591D7", false], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 200c7b4d8d6..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55",false], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index 9d48c71c7ab..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index e1a450616a5..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0x196C64BD2E8E4E3C17EDCB61ABEFEF613E59C2F00E99FDCE4CDBBA164FC591D7"], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index e0ef82ad7ca..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,16 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 3b21482fef5..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x6cAfAD6AAf5F3EAB6a7a31472A8B577d5eCF8777", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 56065f606c6..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"address": "0x6cAfAD6AAf5F3EAB6a7a31472A8B577d5eCF8777", "blockhash": "0x39f66b313cec316249c2933702bbca771d85845896d794008e482ca63bc045b1"}], "id":1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/sei/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 24a586459a2..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/sei/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 5b71aab92da..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/sei/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index 9ac452ab91f..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/sei/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index 4ff293f24d1..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/sei/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index 6f542d2833a..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/sei/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index 21238b1b7e8..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/sei/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index d8b2df3252a..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/sei/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 2c20fcd71d1..00000000000 --- a/services/reference/sei/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_net_version-request.mdx b/services/reference/sei/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 7f71ca40a4e..00000000000 --- a/services/reference/sei/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/sei/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 11c8bffac3c..00000000000 --- a/services/reference/sei/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/sei/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/sei/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index a3529cd9545..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/sei/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/sei/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index d7d1f926600..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/sei/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/sei/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 78ecc687371..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/sei/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/sei/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index 65777c2f7db..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/sei/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/sei/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index fef2a004233..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/sei/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/bundler/index.md b/services/reference/sei/json-rpc-methods/bundler/index.md deleted file mode 100644 index 81744b3b449..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Sei bundler methods -sidebar_label: Bundler methods -sidebar_key: sei-bundler-methods -description: Sei bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Sei mainnet -and testnet: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/sei/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/sei/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index c544831c7e4..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/sei/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/sei/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index b4c5b7d39e6..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/sei/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/sei/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index 119ee298880..00000000000 --- a/services/reference/sei/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/sei/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_blocknumber.mdx b/services/reference/sei/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 738de43c354..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_blockNumber' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_call.mdx b/services/reference/sei/json-rpc-methods/eth_call.mdx deleted file mode 100644 index eca77bd3ab5..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_call' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_chainid.mdx b/services/reference/sei/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index e3e172b4a83..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_chainId' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_estimategas.mdx b/services/reference/sei/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index ae2ab2ed2c2..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_estimateGas' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_feehistory.mdx b/services/reference/sei/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index f62323cded8..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_feeHistory' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_gasprice.mdx b/services/reference/sei/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 4435c3e3234..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_gasPrice' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getbalance.mdx b/services/reference/sei/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index 87b1b0c1342..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getBalance' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/sei/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 6cb8323c2b8..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getBlockByHash' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/sei/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 0acdc53ca2f..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getBlockByNumber' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/sei/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index 45def3acf0a..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Arbitrum eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for an Arbitrum block. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/sei/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 98218c967ce..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getBlockTransactionCountByHash' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/sei/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 5b1c731e607..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getBlockTransactionCountByNumber' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getcode.mdx b/services/reference/sei/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index 930209786b0..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getCode' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getlogs.mdx b/services/reference/sei/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index e7f73969fee..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getLogs' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_getstorageat.mdx b/services/reference/sei/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 74c220778de..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getStorageAt' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/sei/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 0bfe127b19d..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getTransactionByBlockHashAndIndex' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/sei/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 7857c3387fa..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getTransactionByBlockNumberAndIndex' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/sei/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index 476921e8974..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getTransactionByHash' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/sei/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 25804a79952..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getTransactionCount' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/sei/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 90f3791e5df..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_getTransactionReceipt' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/sei/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index f532dca2571..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_maxPriorityFeePerGas' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/sei/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 4f2dc92e6d4..00000000000 --- a/services/reference/sei/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'eth_sendRawTransaction' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/index.md b/services/reference/sei/json-rpc-methods/index.md deleted file mode 100644 index 9c22e755c84..00000000000 --- a/services/reference/sei/json-rpc-methods/index.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: 'JSON-RPC methods' -description: Supported standard Ethereum methods on Sei network. -sidebar_key: sei-json-rpc-api ---- - -# JSON-RPC API - -The standard Ethereum methods documented in this section are supported by Infura on the Sei network. - -:::info See also -Refer to the [official Sei documentation](https://docs.sei.io/) for more information. -::: diff --git a/services/reference/sei/json-rpc-methods/net_version.mdx b/services/reference/sei/json-rpc-methods/net_version.mdx deleted file mode 100644 index 5710fccf752..00000000000 --- a/services/reference/sei/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'net_version' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/sei/json-rpc-methods/web3_clientversion.mdx b/services/reference/sei/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 83762388ebb..00000000000 --- a/services/reference/sei/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,40 +0,0 @@ ---- -title: 'web3_clientVersion' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/sei/quickstart.md b/services/reference/sei/quickstart.md deleted file mode 100644 index 8f3cdba12c2..00000000000 --- a/services/reference/sei/quickstart.md +++ /dev/null @@ -1,201 +0,0 @@ ---- -description: Sei quickstart guide -sidebar_position: 2 ---- - -import Banner from '@site/src/components/Banner' - -# Quickstart - -This quickstart guide will help you set up and make calls on the Sei network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Sei network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Sei network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://sei-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://sei-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://sei-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://sei-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://sei-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Sei network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Sei APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/solana/index.md b/services/reference/solana/index.md deleted file mode 100644 index fae6c79a465..00000000000 --- a/services/reference/solana/index.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -description: Solana network documentation. ---- - -import CardList from '@site/src/components/CardList' - -# Solana - -:::note Decentralized Infrastructure Network (DIN) - -Solana is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -::: - -Solana provides a high-performance network that is utilized for a range of use cases, including finance, NFTs, payments, and gaming. -Solana operates as a single global state machine and is open and interoperable. - -:::info See also - -- See the [official Solana documentation](https://solana.com/docs) for more information. - ::: - -Select an option below to get started with the Solana network. - - - -## Partners and privacy policies - -The following partners provide access to the Solana network: - - - -- Everstake ([Terms of Use](https://everstake.one/terms-of-use), [Privacy Notice](https://everstake.one/privacy-notice)) -- Triton One ([Terms of Service and Privacy Policy](https://triton.one/policies)) - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getasset.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getasset.mdx deleted file mode 100644 index 4e6eb7a7ec8..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getasset.mdx +++ /dev/null @@ -1,257 +0,0 @@ ---- -title: 'getAsset' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAsset` - -Returns the metadata information of a compressed or standard asset. - -## Parameters - -- `id`: (string) _[required]_ - The `base58` encoded public key of the asset to query. -- `config`: (object) _[optional]_ - Optional flags to return additional information about the asset: - - `showFungible`: (boolean) - Whether to return the `token_info` object about the asset. - - `showUnverifiedCollections`: (boolean) - Whether to return an asset from an unverified collection. - - `showCollectionMetadata`: (boolean) - Whether to return the collection metadata. - -## Returns - -`result` - An object with the following fields: - -- `interface` - The interface type of the asset. Return types - include: `V1_NFT`, `V1_PRINT`, `LEGACY_NFT`, `V2_NFT`, `FungibleAsset`, `FungibleToken`, `Custom`, `Identity`, `Executable`, `ProgrammableNFT`. -- `id` - The ID of the asset. -- `content` - Metadata and content information: - - `$schema` - The schema URI. - - `json_uri` - The URI pointing to the asset's JSON metadata. - - `files` - List of associated files with `uri`, `mime`, and optional `contexts`. - - `metadata` - Metadata fields: - - `name` - The name of the asset. - - `symbol` - The symbol of the asset. - - `description` - A description of the asset. - - `attributes` - List of attributes with `trait_type` and `value`. - - `token_standard` - The token standard of the asset. -- `ownership` - An object containing the ownership details: - - `owner` - The owner's public key. - - `frozen` - Whether the asset is frozen. - - `delegated` - Whether the asset is delegated. - - `delegate` - The delegate's public key. - - `ownership_model` - The ownership model, for example `single` or `token`. -- `compression` - An object containing the asset compression details: - - `eligible` - Whether the asset is eligible for compression. - - `compressed` - Whether the asset is compressed. - - `data_hash` - The data hash of the asset. - - `creator_hash` - The creator hash of the asset. - - `asset_hash` - The asset hash. - - `tree` - The Merkle tree ID. - - `seq` - The sequence number. - - `leaf_id` - The leaf ID. -- `royalty` - An object containing the royalty details: - - `royalty_model` - The royalty model (`creators`, `fanout`, or `single`). - - `target` - The target address for royalties. - - `percent` - The royalty percentage. - - `basis_points` - The royalty in basis points. - - `primary_sale_happened` - Whether the primary sale has occurred. - - `locked` - Whether the royalty is locked. -- `creators` - List of creators: - - `address` - The creator's public key. - - `share` - The creator's share percentage. - - `verified` - Whether the creator is verified. -- `grouping` - Grouping details: - - `group_key` - The group key (for example, `collection`). - - `group_value` - The group value. -- `uses` - An object containing the usage details: - - `use_method` - The usage method (`burn`, `multiple`, or `single`). - - `remaining` - The remaining uses. - - `total` - The total uses. -- `supply` - Supply details: - - `print_max_supply` - The maximum supply for prints. - - `print_current_supply` - The current supply for prints. - - `edition_nonce` - The edition nonce. -- `mutable` - Whether the asset is mutable. -- `burnt` - Whether the asset is burnt. -- `token_info` - Additional token info which is returned via the `showFungible` parameter: - - `supply` - The supply of the asset. - - `decimals` - The decimals supported by the asset. - - `token_program` - The token program of the asset. - - `mint_authority` - The mint authority of the asset. - - `freeze_authority` - The freeze authority of the asset. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getAsset", "params": ["GEciJX32EwG7DeHrXgosvpDAgjiuPo3uSEUAfJPLoSBD"]}' -``` - - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "interface": "Custom", - "id": "GEciJX32EwG7DeHrXgosvpDAgjiuPo3uSEUAfJPLoSBD", - "content": { - "$schema": "https://schema.metaplex.com/nft1.0.json", - "json_uri": "https://arweave.net/I657C0VaPHIN7G4iL8Lr_8nctJhoIecFIyzlMCVF6IQ", - "files": [ - { - "uri": "https://arweave.net/IxZAe2W4quFYdtae3d_NFZ8kAAcledOkK6_C7H352es", - "mime": "image/png" - }, - { - "uri": "https://arweave.net/IxZAe2W4quFYdtae3d_NFZ8kAAcledOkK6_C7H352es?ext=png", - "mime": "image/png" - } - ], - "metadata": { - "attributes": [ - { - "value": "Green", - "trait_type": "Background" - }, - { - "value": "Green / Green", - "trait_type": "Fur / Skin" - }, - { - "value": "Policeman's Cap", - "trait_type": "Head" - }, - { - "value": "Sandwich", - "trait_type": "Mouth" - }, - { - "value": "No Traits", - "trait_type": "Teeth" - }, - { - "value": "Police Uniform", - "trait_type": "Clothing" - }, - { - "value": "No Traits", - "trait_type": "Eyewear" - }, - { - "value": 1, - "trait_type": "generation", - "display_type": "number" - }, - { - "value": 2463, - "trait_type": "sequence", - "display_type": "number" - } - ], - "description": "Deep in the heart of Dingus Forest echoes the sleepless cries of a troop of 10,000 apes. These aren't just regular apes, however. These are degenerate apes.", - "name": "Degen Ape #2463", - "symbol": "DAPE" - }, - "links": { - "external_url": "", - "image": "https://arweave.net/IxZAe2W4quFYdtae3d_NFZ8kAAcledOkK6_C7H352es" - } - }, - "authorities": [ - { - "address": "DC2mkgwhy56w3viNtHDjJQmc7SGu2QX785bS4aexojwX", - "scopes": [ - "full" - ] - } - ], - "compression": { - "eligible": false, - "compressed": false, - "data_hash": "", - "creator_hash": "", - "asset_hash": "", - "tree": "", - "seq": 0, - "leaf_id": 0 - }, - "grouping": [ - { - "group_key": "collection", - "group_value": "DSwfRF1jhhu6HpSuzaig1G19kzP73PfLZBPLofkw6fLD" - } - ], - "royalty": { - "royalty_model": "creators", - "target": null, - "percent": 0.042, - "basis_points": 420, - "primary_sale_happened": true, - "locked": false - }, - "creators": [ - { - "address": "9BKWqDHfHZh9j39xakYVMdr6hXmCLHH5VfCpeq2idU9L", - "share": 39, - "verified": false - }, - { - "address": "9FYsKrNuEweb55Wa2jaj8wTKYDBvuCG3huhakEj96iN9", - "share": 25, - "verified": false - }, - { - "address": "HNGVuL5kqjDehw7KR63w9gxow32sX6xzRNgLb8GkbwCM", - "share": 25, - "verified": false - }, - { - "address": "7FzXBBPjzrNJbm9MrZKZcyvP3ojVeYPUG2XkBPVZvuBu", - "share": 10, - "verified": false - }, - { - "address": "DC2mkgwhy56w3viNtHDjJQmc7SGu2QX785bS4aexojwX", - "share": 1, - "verified": true - } - ], - "ownership": { - "frozen": false, - "delegated": false, - "delegate": null, - "ownership_model": "single", - "owner": "1BWutmTvYPwDtmw9abTkS4Ssr8no61spGAvW1X6NDix" - }, - "supply": { - "print_max_supply": 0, - "print_current_supply": 0, - "edition_nonce": 255 - }, - "mutable": false, - "burnt": false - }, - "id": 0 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetproof.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetproof.mdx deleted file mode 100644 index 1d50f17c4c7..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetproof.mdx +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: 'getAssetProof' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAssetProof` - -Returns the Merkle tree proof information for a compressed asset. - -## Parameters - -- `id`: (string) _[required]_ - The `base58` encoded public key of the asset to query. - -## Returns - -`result` - An object containing the following fields: - -- `root` - The root hash of the Merkle tree. -- `proof` - An array of hashes representing the Merkle proof. -- `node_index` - The index of the node in the Merkle tree. -- `leaf` - The hash of the leaf node. -- `tree_id` - The ID of the Merkle tree. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getAssetProof", "params": ["Bu1DEKeawy7txbnCEJE4BU3BKLXaNAKCYcHR4XhndGss"]}' -``` - - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "root": "2o6Y6EiY3WXhoaEpei2pHmHLYnHDcEQVhgD89GrGHDBH", - "proof": [ - "EmJXiXEAhEN3FfNQtBa5hwR8LC5kHvdLsaGCoERosZjK", - "7NEfhcNPAwbw3L87fjsPqTz2fQdd1CjoLE138SD58FDQ", - "6dM3VyeQoYkRFZ74G53EwvUPbQC6LsMZge6c7S1Ds4ks", - "A9AACJ5m7UtaVz4HxzhDxGjYaY88rc2XPoFvnoTvgYBj", - "2VG5cKeBZdqozwhHGGzs13b9tzy9TXt9kPfN8MzSJ1Sm", - "3E1uFze4pi6BnTZXMsQbeh3jQCeDi966Zax9aMbYgg2D", - "Bx9PdctdWCeC1WfU6dwP49idsXCYhqyxbRLyLwwGhr61", - "HSbJ8quT4vuXFgf5FnjzeUuFfAtLKsq6W1Frj8y1qrif", - "GJMLzL4F4hY9yFHY1EY6XRmW4wpuNGeBZTiv7vM2mYra", - "FYPtEiqmRx6JprHQvWeEWEuVp3WA7DPRCE4VbhFRVuAj", - "6MJKrpnK1GbYsnEzwMRWStNGkTjAZF23NhzTQSQVXsD3", - "HjnrJn5vBUUzpCxzjjM9ZnCPuXei2cXKJjX468B9yWD7", - "4YCF1CSyTXm1Yi9W9JeYevawupkomdgy2dLxEBHL9euq", - "E3oMtCuPEauftdZLX8EZ8YX7BbFzpBCVRYEiLxwPJLY2" - ], - "node_index": 16384, - "leaf": "6YdZXw49M97mfFTwgQb6kxM2c6eqZkHSaW9XhhoZXtzv", - "tree_id": "2kuTFCcjbV22wvUmtmgsFR7cas7eZUzAu96jzJUvUcb7" - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetproofbatch.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetproofbatch.mdx deleted file mode 100644 index bb34e54d0d2..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetproofbatch.mdx +++ /dev/null @@ -1,85 +0,0 @@ ---- -title: 'getAssetProofBatch' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAssetProofBatch` - -Returns the Merkle tree proof information for multiple compressed assets. - -## Parameters - -- `ids`: (array of strings) _[required]_ - An array of `base58` encoded public keys of the assets to query. - -## Returns - -`result` - An object where each key is an asset ID, and the value is an object containing the following fields: - -- `root` - The root hash of the Merkle tree. -- `proof` - An array of hashes representing the Merkle proof. -- `node_index` - The index of the node in the Merkle tree. -- `leaf` - The hash of the leaf node. -- `tree_id` - The ID of the Merkle tree. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getAssetProofBatch", "params": [["D85MZkvir9yQZFDHt8U2ZmS7D3LXKdiSjvw2MBdscJJa", "ELDjRRs5Wb478K4h3B5bMPEhqFD8FvoET5ctHku5uiYi"]]}' -``` - - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "ELDjRRs5Wb478K4h3B5bMPEhqFD8FvoET5ctHku5uiYi": null, - "D85MZkvir9yQZFDHt8U2ZmS7D3LXKdiSjvw2MBdscJJa": { - "root": "HscyoK57Grh1CGHi7HDDGaQRqe3CtetqgwZCBjw6E73t", - "proof": [ - "4EVwURnyVehgq4LhPfJFmPngfuNvreJgBGX1jbojcg7p", - "89KmAg6NuRkwbSmpEU2fH8tJmuoGkwAwkV7MZaTRuRyE", - "DD34gSoVzcDJKK4FcQx6RPDBmjwsWJ2JyL9Poch9i6Hm", - "F9oTuKohez7fbLjXXfqurqNG4KhVn2RgnC7o85Z4qgnm", - "HSfwLLiVjmhtFFFaLF6VFQZ7NrWZW9qoZDGWTPnU8Trw", - "CyFfjtkvg1HfexcekN6cCrUYmUwqtoeFGaTWeyPGxqmj", - "3Rv9v5r97j6vudzjVF8idGQdeu7jJdHgm75pTAeiN9ce", - "6mr5hmD2nkPU76irs6duAYekRgPxDWh8JMuunua4Whra", - "HxDaLgV8UrMq4G3YtXfcCx4UXm511hWSxPTeAfcD39vG", - "EvxphsdRErrDMs9nhFfF4nzq8i1C2KSogA7uB96TPpPR", - "HpMJWAzQv9HFgHBqY1o8V1B27sCYPFHJdGivDA658jEL", - "GcUfCg1P6XhSXzW34YmgXspCYaT7ujHSNmDK2CDEA3dy", - "4YCF1CSyTXm1Yi9W9JeYevawupkomdgy2dLxEBHL9euq", - "E3oMtCuPEauftdZLX8EZ8YX7BbFzpBCVRYEiLxwPJLY2" - ], - "node_index": 18559, - "leaf": "91eAJoZoXMmLbxCGWo7tdfHT7ZDYZMLgJRaGi2ocPxwL", - "tree_id": "5i1rrMFvFfwCkR15cf66bEXM2LmtfffDfYegQ3qdWgcF" - } - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassets.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getassets.mdx deleted file mode 100644 index f65cde08bc8..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassets.mdx +++ /dev/null @@ -1,325 +0,0 @@ ---- -title: 'getAssets' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAssets` - -Returns the metadata information of multiple compressed or standard assets. - -## Parameters - -- `ids`: (array of strings) _[required]_ - The `base58` encoded public keys of the assets to query. -- `config`: (object) _[optional]_ - Optional flags to return additional information about the asset: - - `showFungible`: (boolean) - Whether to return the `token_info` object about the asset. - - `showCollectionMetadata`: (boolean) - Whether to return the collection metadata. - -## Returns - -`result` - An array of objects, where each object contains the following fields: - -- `interface` - The interface type of the asset. Return types include: `V1_NFT`, `V1_PRINT`, `LEGACY_NFT`, `V2_NFT`, `FungibleAsset`, `FungibleToken`, `Custom`, `Identity`, `Executable`, `ProgrammableNFT`. -- `id` - The ID of the asset. -- `content` - Metadata and content information: - - `$schema` - The schema URI. - - `json_uri` - The URI pointing to the asset's JSON metadata. - - `files` - List of associated files with `uri`, `mime`, and optional `contexts`. - - `metadata` - Metadata fields: - - `name` - The name of the asset. - - `symbol` - The symbol of the asset. - - `description` - A description of the asset. - - `attributes` - List of attributes with `trait_type` and `value`. - - `token_standard` - The token standard of the asset. -- `ownership` - An object containing the ownership details: - - `owner` - The owner's public key. - - `frozen` - Whether the asset is frozen. - - `delegated` - Whether the asset is delegated. - - `delegate` - The delegate's public key. - - `ownership_model` - The ownership model, for example `single` or `token`. -- `compression` - An object containing the asset compression details: - - `eligible` - Whether the asset is eligible for compression. - - `compressed` - Whether the asset is compressed. - - `data_hash` - The data hash of the asset. - - `creator_hash` - The creator hash of the asset. - - `asset_hash` - The asset hash. - - `tree` - The Merkle tree ID. - - `seq` - The sequence number. - - `leaf_id` - The leaf ID. -- `royalty` - An object containing the royalty details: - - `royalty_model` - The royalty model (`creators`, `fanout`, or `single`). - - `target` - The target address for royalties. - - `percent` - The royalty percentage. - - `basis_points` - The royalty in basis points. - - `primary_sale_happened` - Whether the primary sale has occurred. - - `locked` - Whether the royalty is locked. -- `creators` - List of creators: - - `address` - The creator's public key. - - `share` - The creator's share percentage. - - `verified` - Whether the creator is verified. -- `grouping` - Grouping details: - - `group_key` - The group key (for example, `collection`). - - `group_value` - The group value. -- `uses` - An object containing the usage details: - - `use_method` - The usage method (`burn`, `multiple`, or `single`). - - `remaining` - The remaining uses. - - `total` - The total uses. -- `supply` - Supply details: - - `print_max_supply` - The maximum supply for prints. - - `print_current_supply` - The current supply for prints. - - `edition_nonce` - The edition nonce. -- `mutable` - Whether the asset is mutable. -- `burnt` - Whether the asset is burnt. -- `token_info` - Additional token info which is returned via the `showFungible` flag: - - `supply` - The supply of the asset. - - `decimals` - The decimals supported by the asset. - - `token_program` - The token program of the asset. - - `mint_authority` - The mint authority of the asset. - - `freeze_authority` - The freeze authority of the asset. - -## Example - -Replace `` with your API key. - -### Request - - - - -````bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "id": 1, - "method": "getAssets", - "params": [["GEciJX32EwG7DeHrXgosvpDAgjiuPo3uSEUAfJPLoSBD", "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"]] - }' - ``` - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": [ - { - "interface": "Custom", - "id": "GEciJX32EwG7DeHrXgosvpDAgjiuPo3uSEUAfJPLoSBD", - "content": { - "$schema": "https://schema.metaplex.com/nft1.0.json", - "json_uri": "https://arweave.net/I657C0VaPHIN7G4iL8Lr_8nctJhoIecFIyzlMCVF6IQ", - "files": [ - { - "uri": "https://arweave.net/IxZAe2W4quFYdtae3d_NFZ8kAAcledOkK6_C7H352es", - "mime": "image/png" - }, - { - "uri": "https://arweave.net/IxZAe2W4quFYdtae3d_NFZ8kAAcledOkK6_C7H352es?ext=png", - "mime": "image/png" - } - ], - "metadata": { - "attributes": [ - { - "value": "Green", - "trait_type": "Background" - }, - ... - { - "value": 2463, - "trait_type": "sequence", - "display_type": "number" - } - ], - "description": "Deep in the heart of Dingus Forest echoes the sleepless cries of a troop of 10,000 apes. These aren't just regular apes, however. These are degenerate apes.", - "name": "Degen Ape #2463", - "symbol": "DAPE" - }, - "links": { - "image": "https://arweave.net/IxZAe2W4quFYdtae3d_NFZ8kAAcledOkK6_C7H352es", - "external_url": "" - } - }, - "authorities": [ - { - "address": "DC2mkgwhy56w3viNtHDjJQmc7SGu2QX785bS4aexojwX", - "scopes": [ - "full" - ] - } - ], - "compression": { - "eligible": false, - "compressed": false, - "data_hash": "", - "creator_hash": "", - "asset_hash": "", - "tree": "", - "seq": 0, - "leaf_id": 0 - }, - "grouping": [ - { - "group_key": "collection", - "group_value": "DSwfRF1jhhu6HpSuzaig1G19kzP73PfLZBPLofkw6fLD" - } - ], - "royalty": { - "royalty_model": "creators", - "target": null, - "percent": 0.042, - "basis_points": 420, - "primary_sale_happened": true, - "locked": false - }, - "creators": [ - { - "address": "9BKWqDHfHZh9j39xakYVMdr6hXmCLHH5VfCpeq2idU9L", - "share": 39, - "verified": false - }, - { - "address": "9FYsKrNuEweb55Wa2jaj8wTKYDBvuCG3huhakEj96iN9", - "share": 25, - "verified": false - }, - { - "address": "HNGVuL5kqjDehw7KR63w9gxow32sX6xzRNgLb8GkbwCM", - "share": 25, - "verified": false - }, - { - "address": "7FzXBBPjzrNJbm9MrZKZcyvP3ojVeYPUG2XkBPVZvuBu", - "share": 10, - "verified": false - }, - { - "address": "DC2mkgwhy56w3viNtHDjJQmc7SGu2QX785bS4aexojwX", - "share": 1, - "verified": true - } - ], - "ownership": { - "frozen": false, - "delegated": false, - "delegate": null, - "ownership_model": "single", - "owner": "1BWutmTvYPwDtmw9abTkS4Ssr8no61spGAvW1X6NDix" - }, - "supply": { - "print_max_supply": 0, - "print_current_supply": 0, - "edition_nonce": 255 - }, - "mutable": false, - "burnt": false - }, - { - "interface": "ProgrammableNFT", - "id": "exMUf3JuFQMBUc3p6osuqJRFQWr9wgQWBGiuzXmHJTa", - "content": { - "$schema": "https://schema.metaplex.com/nft1.0.json", - "json_uri": "https://arweave.net/4yDL8qbv-j58hjv3imAnC_nP-2VKmjy7bNMNPsdUDZQ", - "files": [ - { - "uri": "https://arweave.net/qAr3txiC4QwJk5Na9_0bJbEiPlUeRvVDH4-YzOALK44", - "mime": "image/png" - } - ], - "metadata": { - "attributes": [ - { - "value": "Cream", - "trait_type": "Background" - }, - ... - { - "value": "Hooded Cardigan", - "trait_type": "Clothes" - } - ], - "description": "Okay Bears is a culture shift. A clean collection of 10,000 diverse bears building a virtuous community that will transcend the internet into the real world.", - "name": "Okay Bear #6261", - "symbol": "OKB", - "token_standard": "ProgrammableNonFungible" - }, - "links": { - "external_url": "https://www.okaybears.com/", - "image": "https://arweave.net/qAr3txiC4QwJk5Na9_0bJbEiPlUeRvVDH4-YzOALK44" - } - }, - "authorities": [ - { - "address": "4zj22pu8yRyenFHwLmue28CqVmGFgVQt5FmVvwdP5fLa", - "scopes": [ - "full" - ] - } - ], - "compression": { - "eligible": false, - "compressed": false, - "data_hash": "", - "creator_hash": "", - "asset_hash": "", - "tree": "", - "seq": 0, - "leaf_id": 0 - }, - "grouping": [ - { - "group_key": "collection", - "group_value": "3saAedkM9o5g1u5DCqsuMZuC4GRqPB4TuMkvSsSVvGQ3" - } - ], - "royalty": { - "royalty_model": "creators", - "target": null, - "percent": 0.05, - "basis_points": 500, - "primary_sale_happened": true, - "locked": false - }, - "creators": [ - { - "address": "3xVDoLaecZwXXtN59o6T3Gfxwjcgf8Hc9RfoqBn995P9", - "share": 0, - "verified": true - }, - { - "address": "7zL7HVn85F5yFT6XM3BsJcQF7PBcNE7R2BT5GyfunpKe", - "share": 100, - "verified": false - } - ], - "ownership": { - "frozen": true, - "delegated": false, - "delegate": null, - "ownership_model": "single", - "owner": "1BWutmTvYPwDtmw9abTkS4Ssr8no61spGAvW1X6NDix" - }, - "supply": { - "print_max_supply": 0, - "print_current_supply": 0, - "edition_nonce": 254 - }, - "mutable": true, - "burnt": false - } - ], - "id": 1 -} -```` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbyauthority.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbyauthority.mdx deleted file mode 100644 index 8a04d9ad949..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbyauthority.mdx +++ /dev/null @@ -1,232 +0,0 @@ ---- -title: 'getAssetsByAuthority' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAssetsByAuthority` - -Returns the list of assets given an authority address. - -## Parameters - -- `authorityAddress`: (string) _[required]_ - The `base58` encoded public key of the authority of the assets. -- `sortBy`: (object) _[optional]_ - Sorting criteria for the results: - - `sortBy` - The field to sort by. Possible values: `created`, `updated`, `recent_action`, `id`, `none`. - - `sortDirection` - The sort direction. Possible values: `asc`, `desc`. -- `limit`: (number) _[optional]_ - The maximum number of assets to retrieve. -- `page`: (number) _[optional]_ - The index of the page to retrieve. -- `before`: (string) _[optional]_ - Retrieve assets before the specified ID. -- `after`: (string) _[optional]_ - Retrieve assets after the specified ID. - -## Returns - -`result` - An object containing the following fields: - -- `total` - The total number of assets matching the query. -- `limit` - The maximum number of assets returned in this response. -- `items` - An array of asset objects. Each asset object contains: - - `interface` - The interface type of the asset. Return types include: `V1_NFT`, `V1_PRINT`, `LEGACY_NFT`, - `V2_NFT`, `FungibleAsset`, `FungibleToken`, `Custom`, `Identity`, `Executable`, `ProgrammableNFT`. - - `id` - The ID of the asset. - - `content` - An object containing the metadata and content information: - - `$schema` - The schema URI. - - `json_uri` - The URI pointing to the asset's JSON metadata. - - `files` - List of associated files with `uri`, `mime`, and optional `contexts`. - - `metadata` - An object containing the metadata information: - - `name` - The name of the asset. - - `symbol` - The symbol of the asset. - - `description` - A description of the asset. - - `attributes` - List of attributes with `trait_type` and `value`. - - `token_standard` - The token standard of the asset. - - `ownership` - An object containing the ownership details: - - `owner` - The owner's public key. - - `frozen` - Whether the asset is frozen. - - `delegated` - Whether the asset is delegated. - - `delegate` - The delegate's public key. - - `ownership_model` - The ownership model, for example `single` or `token`. - - `compression` - An object containing the asset compression details: - - `eligible` - Whether the asset is eligible for compression. - - `compressed` - Whether the asset is compressed. - - `data_hash` - The data hash of the asset. - - `creator_hash` - The creator hash of the asset. - - `asset_hash` - The asset hash. - - `tree` - The Merkle tree ID. - - `seq` - The sequence number. - - `leaf_id` - The leaf ID. - - `royalty` - An object containing the royalty details: - - `royalty_model` - The royalty model (`creators`, `fanout`, or `single`). - - `target` - The target address for royalties. - - `percent` - The royalty percentage. - - `basis_points` - The royalty in basis points. - - `primary_sale_happened` - Whether the primary sale has occurred. - - `locked` - Whether the royalty is locked. - - `creators` - List of creators: - - `address` - The creator's public key. - - `share` - The creator's share percentage. - - `verified` - Whether the creator is verified. - - `grouping` - Grouping details: - - `group_key` - The group key (for example, `collection`). - - `group_value` - The group value. - - `uses` - An object containing the usage details: - - `use_method` - The usage method (`burn`, `multiple`, or `single`). - - `remaining` - The remaining uses. - - `total` - The total uses. - - `mutable` - Whether the asset is mutable. - - `burnt` - Whether the asset is burnt. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getAssetsByAuthority", "params": ["3pMvTLUA9NzZQd4gi725p89mvND1wRNQM3C8XEv1hTdA", {"sortBy": "created", "sortDirection": "desc"}, 50, 1, null, null]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "total": 50, - "limit": 50, - "page": 1, - "items": [ - { - "interface": "V1_NFT", - "id": "AMBvgj2Zcjg7wpo5Vfzy1ruXUWmYHS2fZkrqSwQEtpJz", - "content": { - "$schema": "https://schema.metaplex.com/nft1.0.json", - "json_uri": "https://famousfoxes.com/metadata/9712.json", - "files": [ - { - "uri": "https://famousfoxes.com/hd/9712.png", - "mime": "image/png" - } - ], - "metadata": { - "attributes": [ - { - "value": "Straw", - "trait_type": "Background" - }, - { - "value": "Jacket Denim", - "trait_type": "Outfit" - }, - { - "value": "Natural", - "trait_type": "Skin" - }, - { - "value": "Vixen", - "trait_type": "Eyes" - }, - { - "value": "UwU", - "trait_type": "Mouth" - }, - { - "value": "Cap Purple", - "trait_type": "Head" - }, - { - "value": "True", - "trait_type": "Summoned" - } - ], - "description": "The Famous Fox Federation, an independent organization of the most fabulously famous foxes on the Blockchain.", - "name": "Fox #9712", - "symbol": "FFF", - "token_standard": "NonFungible" - }, - "links": { - "external_url": "https://famousfoxes.com", - "image": "https://famousfoxes.com/hd/9712.png" - } - }, - "authorities": [ - { - "address": "3pMvTLUA9NzZQd4gi725p89mvND1wRNQM3C8XEv1hTdA", - "scopes": [ - "full" - ] - } - ], - "compression": { - "eligible": false, - "compressed": false, - "data_hash": "", - "creator_hash": "", - "asset_hash": "", - "tree": "", - "seq": 0, - "leaf_id": 0 - }, - "grouping": [ - { - "group_key": "collection", - "group_value": "BUjZjAS2vbbb65g7Z1Ca9ZRVYoJscURG5L3AkVvHP9ac" - } - ], - "royalty": { - "royalty_model": "creators", - "target": null, - "percent": 0.042, - "basis_points": 420, - "primary_sale_happened": true, - "locked": false - }, - "creators": [ - { - "address": "442t3gHbw55CqiEAtoSWasVQ3eAhmYW2gPy5jqJNTdcw", - "share": 0, - "verified": true - }, - { - "address": "3pMvTLUA9NzZQd4gi725p89mvND1wRNQM3C8XEv1hTdA", - "share": 100, - "verified": false - } - ], - "ownership": { - "frozen": false, - "delegated": false, - "delegate": null, - "ownership_model": "single", - "owner": "91GBiM6pBxVsANodJd4nGjnKBDE8XRJbcvQD9C1Phpyb" - }, - "supply": { - "print_max_supply": 0, - "print_current_supply": 0, - "edition_nonce": 255 - }, - "mutable": true, - "burnt": false - }, - ... - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbycreator.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbycreator.mdx deleted file mode 100644 index 42b62bed543..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbycreator.mdx +++ /dev/null @@ -1,228 +0,0 @@ ---- -title: 'getAssetsByCreator' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAssetsByCreator` - -Returns the list of assets given a creator address. - -## Parameters - -- `creatorAddress`: (string) _[required]_ - The `base58` encoded public key of the creator of the assets. -- `onlyVerified`: (boolean) _[optional]_ - Indicates whether to retrieve only verified assets. -- `sortBy`: (object) _[optional]_ - Sorting criteria for the results: - - `sortBy` - The field to sort by. Possible values: `created`, `updated`, `recent_action`, `id`, `none`. - - `sortDirection` - The sort direction. Possible values: `asc`, `desc`. -- `limit`: (number) _[optional]_ - The maximum number of assets to retrieve. -- `page`: (number) _[optional]_ - The index of the page to retrieve. -- `before`: (string) _[optional]_ - Retrieve assets before the specified ID. -- `after`: (string) _[optional]_ - Retrieve assets after the specified ID. - -## Returns - -`result` - An object containing the following fields: - -- `total` - The total number of assets matching the query. -- `limit` - The maximum number of assets returned in this response. -- `items` - An array of asset objects. Each asset object contains: - - `interface` - The interface type of the asset. Return types include: `V1_NFT`, `V1_PRINT`, `LEGACY_NFT`, - `V2_NFT`, `FungibleAsset`, `FungibleToken`, `Custom`, `Identity`, `Executable`, `ProgrammableNFT`. - - `id` - The ID of the asset. - - `content` - An object containing the metadata and content information: - - `$schema` - The schema URI. - - `json_uri` - The URI pointing to the asset's JSON metadata. - - `files` - List of associated files with `uri`, `mime`, and optional `contexts`. - - `metadata` - An object containing the metadata information: - - `name` - The name of the asset. - - `symbol` - The symbol of the asset. - - `description` - A description of the asset. - - `attributes` - List of attributes with `trait_type` and `value`. - - `token_standard` - The token standard of the asset. - - `ownership` - An object containing the ownership details: - - `owner` - The owner's public key. - - `frozen` - Whether the asset is frozen. - - `delegated` - Whether the asset is delegated. - - `delegate` - The delegate's public key. - - `ownership_model` - The ownership model, for example `single` or `token`. - - `compression` - An object containing the asset compression details: - - `eligible` - Whether the asset is eligible for compression. - - `compressed` - Whether the asset is compressed. - - `data_hash` - The data hash of the asset. - - `creator_hash` - The creator hash of the asset. - - `asset_hash` - The asset hash. - - `tree` - The Merkle tree ID. - - `seq` - The sequence number. - - `leaf_id` - The leaf ID. - - `royalty` - An object containing the royalty details: - - `royalty_model` - The royalty model (`creators`, `fanout`, or `single`). - - `target` - The target address for royalties. - - `percent` - The royalty percentage. - - `basis_points` - The royalty in basis points. - - `primary_sale_happened` - Whether the primary sale has occurred. - - `locked` - Whether the royalty is locked. - - `creators` - List of creators: - - `address` - The creator's public key. - - `share` - The creator's share percentage. - - `verified` - Whether the creator is verified. - - `grouping` - Grouping details: - - `group_key` - The group key (for example, `collection`). - - `group_value` - The group value. - - `uses` - An object containing the usage details: - - `use_method` - The usage method (`burn`, `multiple`, or `single`). - - `remaining` - The remaining uses. - - `total` - The total uses. - - `mutable` - Whether the asset is mutable. - - `burnt` - Whether the asset is burnt. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getAssetsByCreator", "params": ["D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3", true, {"sortBy": "created", "sortDirection": "desc"}, 50, 1, null, null]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "total": 50, - "limit": 50, - "page": 1, - "items": [ - { - "interface": "Custom", - "id": "H5soVfY8CD5Pcdmud6HUdW6N4GN7amE7zAxgDjWtMux6", - "content": { - "$schema": "https://schema.metaplex.com/nft1.0.json", - "json_uri": "https://famousfoxes.com/metadata/7616.json", - "files": [ - { - "uri": "https://famousfoxes.com/hd/7616.png", - "mime": "image/png" - } - ], - "metadata": { - "attributes": [ - { - "value": "Straw", - "trait_type": "Background" - }, - { - "value": "Hoodie Light", - "trait_type": "Outfit" - }, - { - "value": "Natural", - "trait_type": "Skin" - }, - { - "value": "Smirk", - "trait_type": "Mouth" - }, - { - "value": "None", - "trait_type": "Head" - }, - { - "value": "Scar", - "trait_type": "Eyes" - } - ], - "description": "The Famous Fox Federation, an independent organization of the most fabulously famous foxes on the Blockchain.", - "name": "Fox #7616", - "symbol": "FFF" - }, - "links": { - "external_url": "https://famousfoxes.com", - "image": "https://famousfoxes.com/hd/7616.png" - } - }, - "authorities": [ - { - "address": "3pMvTLUA9NzZQd4gi725p89mvND1wRNQM3C8XEv1hTdA", - "scopes": [ - "full" - ] - } - ], - "compression": { - "eligible": false, - "compressed": false, - "data_hash": "", - "creator_hash": "", - "asset_hash": "", - "tree": "", - "seq": 0, - "leaf_id": 0 - }, - "grouping": [ - { - "group_key": "collection", - "group_value": "BUjZjAS2vbbb65g7Z1Ca9ZRVYoJscURG5L3AkVvHP9ac" - } - ], - "royalty": { - "royalty_model": "creators", - "target": null, - "percent": 0.042, - "basis_points": 420, - "primary_sale_happened": true, - "locked": false - }, - "creators": [ - { - "address": "D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3", - "share": 0, - "verified": true - }, - { - "address": "3pMvTLUA9NzZQd4gi725p89mvND1wRNQM3C8XEv1hTdA", - "share": 100, - "verified": true - } - ], - "ownership": { - "frozen": true, - "delegated": true, - "delegate": "3fn29NJqUuKJgwHKmk9n54TbaXG9DgWvLAqajxZLUi22", - "ownership_model": "single", - "owner": "3ZsZsjVDjMh6rrEdFi13TnBgh9W9vLyCYcY4yzApzrdK" - }, - "supply": { - "print_max_supply": 0, - "print_current_supply": 0, - "edition_nonce": 254 - }, - "mutable": true, - "burnt": false - }, - ... - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbygroup.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbygroup.mdx deleted file mode 100644 index ac56c0caa56..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbygroup.mdx +++ /dev/null @@ -1,233 +0,0 @@ ---- -title: 'getAssetsByGroup' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAssetsByGroup` - -Returns the list of assets given a group (key, value) pair. - -## Parameters - -- `groupKey`: (string) _[required]_ - The key of the group (for example `collection`). -- `groupValue`: (string) _[required]_ - The value of the group. -- `sortBy`: (object) _[optional]_ - Sorting criteria for the results: - - `sortBy` - The field to sort by. Possible values: `created`, `updated`, `recent_action`, `id`, `none`. - - `sortDirection` - The sort direction. Possible values: `asc`, `desc`. -- `limit`: (number) _[optional]_ - The maximum number of assets to retrieve. -- `page`: (number) _[optional]_ - The index of the page to retrieve. -- `before`: (string) _[optional]_ - Retrieve assets before the specified ID. -- `after`: (string) _[optional]_ - Retrieve assets after the specified ID. - -## Returns - -`result` - An object containing the following fields: - -- `total` - The total number of assets matching the query. -- `limit` - The maximum number of assets returned in this response. -- `items` - An array of asset objects. Each asset object contains: - - `interface` - The interface type of the asset. Return types include: `V1_NFT`, `V1_PRINT`, `LEGACY_NFT`, - `V2_NFT`, `FungibleAsset`, `FungibleToken`, `Custom`, `Identity`, `Executable`, `ProgrammableNFT`. - - `id` - The ID of the asset. - - `content` - An object containing the metadata and content information: - - `$schema` - The schema URI. - - `json_uri` - The URI pointing to the asset's JSON metadata. - - `files` - List of associated files with `uri`, `mime`, and optional `contexts`. - - `metadata` - An object containing the metadata information: - - `name` - The name of the asset. - - `symbol` - The symbol of the asset. - - `description` - A description of the asset. - - `attributes` - List of attributes with `trait_type` and `value`. - - `token_standard` - The token standard of the asset. - - `ownership` - An object containing the ownership details: - - `owner` - The owner's public key. - - `frozen` - Whether the asset is frozen. - - `delegated` - Whether the asset is delegated. - - `delegate` - The delegate's public key. - - `ownership_model` - The ownership model, for example `single` or `token`. - - `compression` - An object containing the asset compression details: - - `eligible` - Whether the asset is eligible for compression. - - `compressed` - Whether the asset is compressed. - - `data_hash` - The data hash of the asset. - - `creator_hash` - The creator hash of the asset. - - `asset_hash` - The asset hash. - - `tree` - The Merkle tree ID. - - `seq` - The sequence number. - - `leaf_id` - The leaf ID. - - `royalty` - An object containing the royalty details: - - `royalty_model` - The royalty model (`creators`, `fanout`, or `single`). - - `target` - The target address for royalties. - - `percent` - The royalty percentage. - - `basis_points` - The royalty in basis points. - - `primary_sale_happened` - Whether the primary sale has occurred. - - `locked` - Whether the royalty is locked. - - `creators` - List of creators: - - `address` - The creator's public key. - - `share` - The creator's share percentage. - - `verified` - Whether the creator is verified. - - `grouping` - Grouping details: - - `group_key` - The group key (for example, `collection`). - - `group_value` - The group value. - - `uses` - An object containing the usage details: - - `use_method` - The usage method (`burn`, `multiple`, or `single`). - - `remaining` - The remaining uses. - - `total` - The total uses. - - `mutable` - Whether the asset is mutable. - - `burnt` - Whether the asset is burnt. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getAssetsByGroup", "params": ["collection", "BUjZjAS2vbbb65g7Z1Ca9ZRVYoJscURG5L3AkVvHP9ac", {"sortBy": "created", "sortDirection": "desc"}, 50, 1, null, null]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "total": 50, - "limit": 50, - "page": 1, - "items": [ - { - "interface": "V1_NFT", - "id": "An7sN8sjhd7bBzsNoryPYtrRdgjPixT4FFsSxPSxnf5g", - "content": { - "$schema": "https://schema.metaplex.com/nft1.0.json", - "json_uri": "https://famousfoxes.com/metadata/9713.json", - "files": [ - { - "uri": "https://famousfoxes.com/hd/9713.png", - "mime": "image/png" - } - ], - "metadata": { - "attributes": [ - { - "value": "Cream", - "trait_type": "Background" - }, - { - "value": "Jacket Red", - "trait_type": "Outfit" - }, - { - "value": "Natural", - "trait_type": "Skin" - }, - { - "value": "Blue", - "trait_type": "Eyes" - }, - { - "value": "Toothy", - "trait_type": "Mouth" - }, - { - "value": "Cap Fire", - "trait_type": "Head" - }, - { - "value": "True", - "trait_type": "Summoned" - } - ], - "description": "The Famous Fox Federation, an independent organization of the most fabulously famous foxes on the Blockchain.", - "name": "Fox #9713", - "symbol": "FFF", - "token_standard": "NonFungible" - }, - "links": { - "image": "https://famousfoxes.com/hd/9713.png", - "external_url": "https://famousfoxes.com" - } - }, - "authorities": [ - { - "address": "3pMvTLUA9NzZQd4gi725p89mvND1wRNQM3C8XEv1hTdA", - "scopes": [ - "full" - ] - } - ], - "compression": { - "eligible": false, - "compressed": false, - "data_hash": "", - "creator_hash": "", - "asset_hash": "", - "tree": "", - "seq": 0, - "leaf_id": 0 - }, - "grouping": [ - { - "group_key": "collection", - "group_value": "BUjZjAS2vbbb65g7Z1Ca9ZRVYoJscURG5L3AkVvHP9ac" - } - ], - "royalty": { - "royalty_model": "creators", - "target": null, - "percent": 0.042, - "basis_points": 420, - "primary_sale_happened": true, - "locked": false - }, - "creators": [ - { - "address": "442t3gHbw55CqiEAtoSWasVQ3eAhmYW2gPy5jqJNTdcw", - "share": 0, - "verified": true - }, - { - "address": "3pMvTLUA9NzZQd4gi725p89mvND1wRNQM3C8XEv1hTdA", - "share": 100, - "verified": false - } - ], - "ownership": { - "frozen": false, - "delegated": false, - "delegate": null, - "ownership_model": "single", - "owner": "BJL17Qr3cKSMXWBFqvWN58FhRqZPqdJCXU9MJykUuS7w" - }, - "supply": { - "print_max_supply": 0, - "print_current_supply": 0, - "edition_nonce": 255 - }, - "mutable": true, - "burnt": false - }, - ... - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbyowner.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbyowner.mdx deleted file mode 100644 index 97b9fb03200..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsbyowner.mdx +++ /dev/null @@ -1,188 +0,0 @@ ---- -title: 'getAssetsByOwner' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAssetsByOwner` - -Returns the list of assets given an owner address. - -## Parameters - -- `ownerAddress`: (string) _[required]_ - The `base58` encoded public key of the owner of the assets. -- `sortBy`: (object) _[optional]_ - Sorting criteria for the results: - - `sortBy` - The field to sort by. Possible values: `created`, `updated`, `recent_action`, `id`, `none`. - - `sortDirection` - The sort direction. Possible values: `asc`, `desc`. -- `limit`: (number) _[optional]_ - The maximum number of assets to retrieve. -- `page`: (number) _[optional]_ - The index of the page to retrieve. -- `before`: (string) _[optional]_ - Retrieve assets before the specified ID. -- `after`: (string) _[optional]_ - Retrieve assets after the specified ID. - -## Returns - -`result` - An object containing the following fields: - -- `total` - The total number of assets matching the query. -- `limit` - The maximum number of assets returned in this response. -- `items` - An array of asset objects. Each asset object contains: - - `interface` - The interface type of the asset. Return types include: `V1_NFT`, `V1_PRINT`, `LEGACY_NFT`, - `V2_NFT`, `FungibleAsset`, `FungibleToken`, `Custom`, `Identity`, `Executable`, `ProgrammableNFT`. - - `id` - The ID of the asset. - - `content` - An object containing the metadata and content information: - - `$schema` - The schema URI. - - `json_uri` - The URI pointing to the asset's JSON metadata. - - `files` - List of associated files with `uri`, `mime`, and optional `contexts`. - - `metadata` - An object containing the metadata information: - - `name` - The name of the asset. - - `symbol` - The symbol of the asset. - - `description` - A description of the asset. - - `attributes` - List of attributes with `trait_type` and `value`. - - `token_standard` - The token standard of the asset. - - `ownership` - An object containing the ownership details: - - `owner` - The owner's public key. - - `frozen` - Whether the asset is frozen. - - `delegated` - Whether the asset is delegated. - - `delegate` - The delegate's public key. - - `ownership_model` - The ownership model, for example `single` or `token`. - - `compression` - An object containing the asset compression details: - - `eligible` - Whether the asset is eligible for compression. - - `compressed` - Whether the asset is compressed. - - `data_hash` - The data hash of the asset. - - `creator_hash` - The creator hash of the asset. - - `asset_hash` - The asset hash. - - `tree` - The Merkle tree ID. - - `seq` - The sequence number. - - `leaf_id` - The leaf ID. - - `royalty` - An object containing the royalty details: - - `royalty_model` - The royalty model (`creators`, `fanout`, or `single`). - - `target` - The target address for royalties. - - `percent` - The royalty percentage. - - `basis_points` - The royalty in basis points. - - `primary_sale_happened` - Whether the primary sale has occurred. - - `locked` - Whether the royalty is locked. - - `creators` - List of creators: - - `address` - The creator's public key. - - `share` - The creator's share percentage. - - `verified` - Whether the creator is verified. - - `grouping` - Grouping details: - - `group_key` - The group key (for example, `collection`). - - `group_value` - The group value. - - `uses` - An object containing the usage details: - - `use_method` - The usage method (`burn`, `multiple`, or `single`). - - `remaining` - The remaining uses. - - `total` - The total uses. - - `mutable` - Whether the asset is mutable. - - `burnt` - Whether the asset is burnt. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getAssetsByOwner", "params": ["4cbnLyRoowAXtxLN6sEYrdYTFUkzodRyNFG7g4FKWBBA", {"sortBy": "created", "sortDirection": "desc"}, 50, 1, null, null]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "total": 46, - "limit": 50, - "page": 1, - "items": [ - { - "interface": "V1_NFT", - "id": "6rZXazDDvM8RU1UDwunkqdhw1nXVFWRuk2Dh1ThJYLTH", - "content": { - "$schema": "https://schema.metaplex.com/nft1.0.json", - "json_uri": "https://cloudflare-ipfs.com/ipfs/QmctZUaANofFr1BLgWQchwjcUMYEX2ZSx2LpDSHSRtQj5m", - "files": [], - "metadata": { - "name": "Key", - "symbol": "", - "token_standard": "NonFungible" - }, - "links": {} - }, - "authorities": [ - { - "address": "9NFLyt33NWcidPYbPyVW7yWpAM1RKepNVMYAhCSpSM3w", - "scopes": [ - "full" - ] - } - ], - "compression": { - "eligible": false, - "compressed": true, - "data_hash": "5ZUYsZn64hubvRVCpnVxX9iBmEbEt1N8v5kbtoSS3L2K", - "creator_hash": "8i3JU72aZtimFTFFQtZCGkzrnLbibBDYVycCn3yrKc5e", - "asset_hash": "37fJAak3P8dFCJX4HijBtqEG6PjoXr74g86xaW4bPfjB", - "tree": "EpGN5mjMwAdWAQHZSHrjGcB7zewEw2KrRezZchSq9W6B", - "seq": 238234, - "leaf_id": 225357 - }, - "grouping": [ - { - "group_key": "collection", - "group_value": "BZNai1KJr17myQUUSfcU6FGHxtp4UwMPawkszXmihyiJ" - } - ], - "royalty": { - "royalty_model": "creators", - "target": null, - "percent": 0, - "basis_points": 0, - "primary_sale_happened": false, - "locked": false - }, - "creators": [ - { - "address": "HeUwVyLufyPMiUnRe6Fo9iUvSBXtFYszAkG6q2WLCikD", - "share": 100, - "verified": false - } - ], - "ownership": { - "frozen": false, - "delegated": false, - "delegate": null, - "ownership_model": "single", - "owner": "4cbnLyRoowAXtxLN6sEYrdYTFUkzodRyNFG7g4FKWBBA" - }, - "supply": { - "print_max_supply": 0, - "print_current_supply": 0, - "edition_nonce": null - }, - "mutable": true, - "burnt": false - }, - ... - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsignatures.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsignatures.mdx deleted file mode 100644 index d10af680a47..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getassetsignatures.mdx +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: 'getAssetSignatures' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAssetSignatures` - -Retrieve a list of transaction signatures linked to a compressed asset. - -This method supports only compressed assets created by the -[Metaplex Bubblegum program](https://developers.metaplex.com/bubblegum). - -## Parameters - -- `id`: (string) _[required]_ - The `base58` encoded public key of the asset. -- `owner`: (string) _[optional]_ - The `base58` encoded public key of the asset owner. -- `page`: (number) _[optional]_ - The current pagination page. -- `limit`: (number) _[optional]_ - The number of results per page. -- `cursor`: (string) _[optional]_ - Optional pagination cursor. -- `before`: (string) _[optional]_ - Return results before the specified signature. -- `after`: (string) _[optional]_ - Return results after the specified signature. - -## Returns - -`result` - An object containing the following fields: - -- `total` - The total number of transaction signatures matching the query. -- `limit` - The maximum number of transaction signatures returned in this response. -- `page` - The current pagination page. -- `items` - An array of transaction signature objects. Each object contains: - - `signature` - The transaction signature. - - `type` - The type of the signature. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "id": 1, - "method": "getAssetSignatures", - "params": [ - "D85MZkvir9yQZFDHt8U2ZmS7D3LXKdiSjvw2MBdscJJa", - null, - 1, - null, - null, - null, - null - ] - }' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "total": 1, - "limit": 1000, - "page": 1, - "items": [ - [ - "3b52uoDvGTkJKk7ygozyK38gfrU8iruz2VPRZPFJKY1zUgWCA8df1ZZUFf5zwokwhEinsofHxiY7mMMuFsik6bjW", - "MintToCollectionV1" - ] - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/getnfteditions.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/getnfteditions.mdx deleted file mode 100644 index 6274ac2a36b..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/getnfteditions.mdx +++ /dev/null @@ -1,97 +0,0 @@ ---- -title: 'getNftEditions' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getNftEditions` - -Retrieves all printable editions for a parent edition NFT mint. - -## Parameters - -- `mint`: (string) _[required]_ - The mint address of the parent edition. -- `page`: (number) _[optional]_ - The current pagination page. -- `limit`: (number) _[optional]_ - The number of results per page. -- `cursor`: (string) _[optional]_ - Optional pagination cursor. -- `before`: (string) _[optional]_ - Return results before the cursor. -- `after`: (string) _[optional]_ - Return results after the cursor. - -## Returns - -`result` - An object containing the following fields: - -- `total` - The total number of printable editions. -- `limit` - The maximum number of editions returned in this response. -- `page` - The current pagination page. -- `master_edition_address` - The address of the parent edition. -- `supply` - The current supply of editions. -- `max_supply` - The maximum supply of editions. -- `editions` - An array of edition objects. Each edition object contains: - - `mint` - The mint address of the edition. - - `edition_address` - The address of the edition. - - `edition` - The edition number. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "id": 1, - "method": "getNftEditions", - "params": [ - "Ey2Qb8kLctbchQsMnhZs5DjY32To2QtPuXNwWvk4NosL", - 1, - null, - null, - null, - null - ] - }' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "total": 66, - "limit": 100, - "page": 1, - "master_edition_address": "8SHfqzJYABeGfiG1apwiEYt6TvfGQiL1pdwEjvTKsyiZ", - "supply": 57, - "max_supply": 69, - "editions": [ - { - "mint": "GJvFDcBWf6aDncd1TBzx2ou1rgLFYaMBdbYLBa9oTAEw", - "edition_address": "AoxgzXKEsJmUyF5pBb3djn9cJFA26zh2SQHvd9EYijZV", - "edition": 1 - }, - ... - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/gettokenaccounts.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/gettokenaccounts.mdx deleted file mode 100644 index 882ce742334..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/gettokenaccounts.mdx +++ /dev/null @@ -1,108 +0,0 @@ ---- -title: 'getTokenAccounts' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getTokenAccounts` - -Retrieves information about all token accounts for a specific mint or an owner. - -## Parameters - -- `mint`: (string) _[optional]_ - The address of the associated mint. -- `owner`: (string) _[optional]_ - The owner address of the tokens. -- `page`: (integer) _[optional]_ - The index of the page to retrieve. The page parameter starts at `1` -- `limit`: (integer) _[optional]_ - The number of results per page. -- `cursor`: (string) _[optional]_ - Optional pagination cursor. -- `before`: (string) _[optional]_ - Return results before the cursor. -- `after`: (string) _[optional]_ - Return results after the cursor. - -## Returns - -`result` - An object containing the following fields: - -- `total` - The total number of token accounts matching the query. -- `limit` - The maximum number of token accounts returned in this response. -- `page` - The current pagination page. -- `token_accounts` - An array of token account objects. Each token account object contains: - - `address` - The address of the token account. - - `mint` - The mint address associated with the token account. - - `owner` - The owner address of the token account. - - `frozen` - Whether the token account is frozen. - - `amount` - The amount of tokens held in the account. - - `delegate` - The delegate address, if any. - - `close_authority` - The address that can close the token account, if any. - - `extensions` - Additional information about the token account, if any. - - `delegated_amount` - The amount of tokens delegated, if any. -- `errors` - An array of error objects, if any errors occurred during the request. -- `cursor` - The pagination cursor for the next page of results. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "id": 1, - "method": "getTokenAccounts", - "params": [ - "So11111111111111111111111111111111111111112", - null, - 1, - 50, - null, - null, - null - ] - }' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "total": 1, - "limit": 1, - "page": 50, - "token_accounts": [ - { - "address": "DgeCdQBqsoAWhJtewsSN4Pcz9okEGBTebEZcrcGhPXDE", - "mint": "5fgwRW94H1KavvaGEanNZc2AnEGKkFaJWkZzAuvaxRNH", - "amount": 100000000, - "owner": "So11111111111111111111111111111111111111112", - "frozen": false, - "delegate": null, - "delegated_amount": 0, - "close_authority": null, - "extensions": null - } - ], - "cursor": null, - "errors": [] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/index.md b/services/reference/solana/json-rpc-methods/digital-asset-standard/index.md deleted file mode 100644 index bd262250f64..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/index.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: Digital Asset Standard (DAS) API ---- - -The DAS API provides an interface for interacting with digital assets such as fungible tokens, regular -NFTs, and compressed NFTs. - -Use the pagination and sort options available to some API methods that return a large amount on data. - -## Supported DAS methods - -Infura supports the following DAS API methods: - -- [`getAsset`](./getasset.mdx) -- [`getAssetProof`](./getassetproof.mdx) -- [`getAssetProofBatch`](./getassetproofbatch.mdx) -- [`getAssets`](./getassets.mdx) -- [`getAssetsByAuthority`](./getassetsbyauthority.mdx) -- [`getAssetsByCreator`](./getassetsbycreator.mdx) -- [`getAssetsByGroup`](./getassetsbygroup.mdx) -- [`getAssetsByOwner`](./getassetsbyowner.mdx) -- [`getAssetSignatures`](./getassetsignatures.mdx) -- [`getNftEditions`](./getnfteditions.mdx) -- [`getTokenAccounts`](./gettokenaccounts.mdx) -- [`searchAssets`](./searchassets.mdx) - -## Pagination options - -Use pagination to manage large result sets and control how data is returned. - -- **By page**: Use when you want to access results in fixed-size pages (for example, when - displaying data in a paged UI). Requires the `page` parameter and can be combined with a `limit`. -- **By cursor**: Use for efficient pagination through a large or frequently changing dataset. - Requires a `cursor` value from a previous response. -- **By range**: Use when you need to retrieve results within a specific time or ID range. - Requires `before` or `after` parameters. Useful for narrowing a query. - -## Sorting options - -Control the order in which results are returned. Sorting may affect performance. - -- **`id`**: Sorts results by ID. Useful when IDs are incremental and correlate with creation order. -- **`created`**: Sorts results by creation timestamp. Use this to get the oldest or newest records - first. -- **`recent_action`**: Sorts by the timestamp of the most recent update or event. Helpful when - tracking activity or status changes. -- **`none`**: No sorting applied. Use for faster responses when order doesn't matter. - -## Sort direction - -Define how sorted results are ordered. - -- **`asc`**: Sorts in ascending order (for example, from oldest to newest). -- **`desc`**: Sorts in descending order (for example, from newest to oldest). Often used to show the most recent results first. diff --git a/services/reference/solana/json-rpc-methods/digital-asset-standard/searchassets.mdx b/services/reference/solana/json-rpc-methods/digital-asset-standard/searchassets.mdx deleted file mode 100644 index 2e8ed9db7eb..00000000000 --- a/services/reference/solana/json-rpc-methods/digital-asset-standard/searchassets.mdx +++ /dev/null @@ -1,238 +0,0 @@ ---- -title: 'searchAssets' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `searchAssets` - -Returns the list of assets based on the specified search criteria. - -## Parameters - -- `negate`: (boolean) _[optional]_ - Indicates whether the search criteria should be inverted. -- `conditionType`: (string) _[optional]_ - Indicates whether to retrieve all or any asset that matches the search criteria. - Valid options are: `all`, `any`. -- `interface`: (string) _[optional]_ - The interface of the asset. - Valid options are: `V1_NFT`, `V1_PRINT`, `LEGACY_NFT`, `V2_NFT`, `FungibleAsset`, `Custom`, `Identity`, `Executable`. -- `ownerAddress`: (string) _[optional]_ - The `base58` encoded public key of the owner. -- `ownerType`: (string) _[optional]_ - The type of ownership. Valid options are: `single`, `token`. -- `creatorAddress`: (string) _[optional]_ - The `base58` encoded public key of the creator. -- `creatorVerified`: (boolean) _[optional]_ - Indicates whether the creator must be verified. -- `authorityAddress`: (string) _[optional]_ - The `base58` encoded public key of the authority. -- `grouping`: (array) _[optional]_ - A group (key, value) pair. -- `delegateAddress`: (string) _[optional]_ - The `base58` encoded public key of the delegate. -- `frozen`: (boolean) _[optional]_ - Indicates whether the asset is frozen. -- `supply`: (number) _[optional]_ - The supply of the asset. -- `supplyMint`: (string) _[optional]_ - The `base58` encoded public key of the supply mint. -- `compressed`: (boolean) _[optional]_ - Indicates whether the asset is compressed. -- `compressible`: (boolean) _[optional]_ - Indicates whether the asset is compressible. -- `royaltyTargetType`: (string) _[optional]_ - The type of royalty. Valid options are: `creators`, `fanout`, `single`. -- `royaltyTarget`: (string) _[optional]_ - The target address for royalties. -- `royaltyAmount`: (number) _[optional]_ - The royalties amount. -- `burnt`: (boolean) _[optional]_ - Indicates whether the asset is burnt. -- `sortBy`: (object) _[optional]_ - Sorting criteria for the results: - - `sortBy` - The field to sort by. Valid options are: `created`, `updated`, `recent_action`, `id`, `none`. - - `sortDirection` - The sort direction. Valid options are: `asc`, `desc`. -- `limit`: (number) _[optional]_ - The maximum number of assets to retrieve. -- `page`: (number) _[optional]_ - The index of the page to retrieve. -- `before`: (string) _[optional]_ - Retrieve assets before the specified ID. -- `after`: (string) _[optional]_ - Retrieve assets after the specified ID. -- `jsonUri`: (string) _[optional]_ - The value for the JSON URI. - -## Returns - -`result` - An object containing the following fields: - -- `total` - The total number of assets matching the query. -- `limit` - The maximum number of assets returned in this response. -- `items` - An array of asset objects. Each asset object contains: - - `interface` - The interface type of the asset. Valid options are: `V1_NFT`, `V1_PRINT`, `LEGACY_NFT`, `V2_NFT`, `FungibleAsset`, `FungibleToken`, `Custom`, `Identity`, `Executable`, `ProgrammableNFT`. - - `id` - The ID of the asset. - - `content` - An object containing the metadata and content information: - - `$schema` - The schema URI. - - `json_uri` - The URI pointing to the asset's JSON metadata. - - `files` - List of associated files with `uri`, `mime`, and optional `contexts`. - - `metadata` - An object containing the metadata information: - - `name` - The name of the asset. - - `symbol` - The symbol of the asset. - - `description` - A description of the asset. - - `attributes` - List of attributes with `trait_type` and `value`. - - `token_standard` - The token standard of the asset. - - `ownership` - An object containing the ownership details: - - `owner` - The owner's public key. - - `frozen` - Whether the asset is frozen. - - `delegated` - Whether the asset is delegated. - - `delegate` - The delegate's public key. - - `ownership_model` - The ownership model, for example `single` or `token`. - - `compression` - An object containing the asset compression details: - - `eligible` - Whether the asset is eligible for compression. - - `compressed` - Whether the asset is compressed. - - `data_hash` - The data hash of the asset. - - `creator_hash` - The creator hash of the asset. - - `asset_hash` - The asset hash. - - `tree` - The Merkle tree ID. - - `seq` - The sequence number. - - `leaf_id` - The leaf ID. - - `royalty` - An object containing the royalty details: - - `royalty_model` - The royalty model (`creators`, `fanout`, or `single`). - - `target` - The target address for royalties. - - `percent` - The royalty percentage. - - `basis_points` - The royalty in basis points. - - `primary_sale_happened` - Whether the primary sale has occurred. - - `locked` - Whether the royalty is locked. - - `creators` - List of creators: - - `address` - The creator's public key. - - `share` - The creator's share percentage. - - `verified` - Whether the creator is verified. - - `grouping` - Grouping details: - - `group_key` - The group key (for example, `collection`). - - `group_value` - The group value. - - `uses` - An object containing the usage details: - - `use_method` - The usage method (`burn`, `multiple`, or `single`). - - `remaining` - The remaining uses. - - `total` - The total uses. - - `mutable` - Whether the asset is mutable. - - `burnt` - Whether the asset is burnt. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ --X POST \ --H "Content-Type: application/json" \ --d '{ - "jsonrpc": "2.0", - "id": 1, - "method": "searchAssets", - "params": [ - false, - "all", - "V1_NFT", - "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW", - "single", - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - { "sortBy": "created", "sortDirection": "desc" }, - 50, - 1, - null, - null, - null - ] -}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "total": 50, - "limit": 50, - "page": 1, - "items": [ - { - "interface": "V1_NFT", - "id": "2SiYEckvp5MHz63ybheoehgk7YYPGZksKcxyT7MsJvDS", - "content": { - "$schema": "https://schema.metaplex.com/nft1.0.json", - "json_uri": "https://ipfs.io/ipfs/QmUWytohB2ecUqbor12sm7ozDrVzgbwnCtqF66m9abMLWG", - "files": [], - "metadata": { - "name": "5000 TO 50000 #54", - "symbol": "", - "token_standard": "NonFungible" - }, - "links": {} - }, - "authorities": [ - { - "address": "7GaUkgafjv7uxni4GuvBFp8b1qFVRyZAmwNHzjeFbmTt", - "scopes": [ - "full" - ] - } - ], - "compression": { - "eligible": false, - "compressed": true, - "data_hash": "8uwkK3ydNdnGUbSGTfHjmw8uQ8HheerdEB1RmiL7xyvD", - "creator_hash": "9FiGqDmyw6peu9uZk3XekNC3S7KjaTV6oxC476gPCHLz", - "asset_hash": "9g5DrQ3ndkzLo2mfN74hqhzHG8suKyAetrgJZ4KG4xb8", - "tree": "2xZ7XN9wkUuMRj9RiCbBLXYMofAyHsrEKpWbA3xwxPfG", - "seq": 1038593, - "leaf_id": 1037754 - }, - "grouping": [ - { - "group_key": "collection", - "group_value": "71zrEGzfv4oX3uhc96trWayxdF3xm2kD9WWWoiMZkHAR" - } - ], - "royalty": { - "royalty_model": "creators", - "target": null, - "percent": 0.055, - "basis_points": 550, - "primary_sale_happened": false, - "locked": false - }, - "creators": [ - { - "address": "4AuVuuzh7NA8b8jCcJzARdUALum4MxG9tPYA7QxTPHqo", - "share": 100, - "verified": false - } - ], - "ownership": { - "frozen": false, - "delegated": false, - "delegate": null, - "ownership_model": "single", - "owner": "2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW" - }, - "supply": { - "print_max_supply": 0, - "print_current_supply": 0, - "edition_nonce": null - }, - "mutable": true, - "burnt": false - }, - ... - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getaccountinfo.mdx b/services/reference/solana/json-rpc-methods/getaccountinfo.mdx deleted file mode 100644 index 375a167a2d2..00000000000 --- a/services/reference/solana/json-rpc-methods/getaccountinfo.mdx +++ /dev/null @@ -1,94 +0,0 @@ ---- -title: 'getAccountInfo' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getAccountInfo` - -Returns information associated with the account of the specified address. - -## Parameters - -- `address`: (string) _[required]_ - The `base-58` encoded public key of the account to query. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58`, `base64`, `base64+zstd`, - or `jsonParsed` - - `dataSlice`: (object) _[optional]_ - A slice of the account data to return. Only available for `base58`, `base64`, - or `base64+zstd` encoding. This is an object with two properties: - - `offset` - The starting byte offset of the slice. - - `length` - The length of the slice in bytes. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - `null` when the account doesn't exist, or an object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object containing the following keys: - - `data` - The account data, encoded in the specified format. - - `executable` - A boolean indicating whether the account is executable. - - `lamports` - The number of lamports in the account. - - `owner` - The public key of the program that owns the account. - - `rentEpoch` - The epoch in which the account will next be due for rent. - - `space` - The size of the account data in bytes. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "getAccountInfo", "params": ["F5a3ExamplePubkeyABCDEFGH", {"encoding": "jsonParsed"}],"id": 1}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.2.3", - "slot": 371626267 - }, - "value": { - "data": [ - "", - "base58" - ], - "executable": false, - "lamports": 88859014690252, - "owner": "11111111111111111111111111111111", - "rentEpoch": 18446744073709552000, - "space": 0 - } - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getbalance.mdx b/services/reference/solana/json-rpc-methods/getbalance.mdx deleted file mode 100644 index 18d19ef283f..00000000000 --- a/services/reference/solana/json-rpc-methods/getbalance.mdx +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: 'getBalance' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getBalance` - -Returns the balance of the specified address in lamports. - -## Parameters - -- `address`: (string) _[required]_ - The `base-58` encoded public key of the account to query. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: (integer) _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - `null` when the account doesn't exist, or an object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - The balance of the account in lamports. - -## Example - -Replace `` with your API key. - -### Request - - - - -````bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getBalance", "params": ["83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri"]}' - ``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { "slot": 1 }, - "value": 0 - }, - "id": 1 -} -```` - - - diff --git a/services/reference/solana/json-rpc-methods/getblock.mdx b/services/reference/solana/json-rpc-methods/getblock.mdx deleted file mode 100644 index c6c02c84a8d..00000000000 --- a/services/reference/solana/json-rpc-methods/getblock.mdx +++ /dev/null @@ -1,197 +0,0 @@ ---- -title: 'getBlock' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getBlock` - -Returns the identity and transaction information about a confirmed block. - -## Parameters - -- `slot`: (integer) _[required]_ - The slot number of the block to query. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `transactionDetails`: (string) _[optional]_ - The level of transaction details to include in the response. Possible values are: - - `none` - No transaction details. - - `accounts` - Transaction details only include signatures and an annotated list of accounts in each transaction. - - `signatures` - Only the signatures of the transactions. - - `full` - Full transaction details. This is the default option. - - `rewards`: (boolean) _[optional]_ - Whether to include rewards information in the response. The default is `false`. - - `encoding`: (string) _[optional]_ - The encoding format to use for the block data. Can be one - of `base58`, `base64`, `jsonParsed`, or `json` - - Returns the block data as a JSON object. - - `commitment`: (string) _[optional]_ The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `maxSupportedTransactionVersion`: (integer) _[optional]_ - The maximum supported transaction version to return. - If the requested block contains a transaction with a higher version, an error will be returned. If this parameter - is omitted, only legacy transactions will be returned, and a block containing any versioned transaction will prompt an error. - -## Returns - -`result` - `null` when the block doesn't exist, or an object with the following fields: - -- `blockHeight` - The number of blocks before this block. -- `blockTime` - The estimated production time, as Unix timestamp (seconds since the Unix epoch). It's `null` if not available. -- `blockhash` - The hash of the block encoded as a `base58` string. -- `parentSlot` - The slot index of this block's parent. -- `previousBlockhash` - The block hash of this block's parent encoded as `base58` string; if the parent block - is not available due to ledger cleanup, the field returns `11111111111111111111111111111111`. -- `transactions` - If full transaction details are requested, returns an array of JSON objects with the following fields: - - `meta` - The transaction status metadata object, which contains additional information about the block and its - transactions. The meta object can be `null`, or it may contain the following fields: - - `err` - Error code if the transaction failed, or `null` if the transaction succeeds. - - `fee` - The total fees paid by all transactions in the block encoded as `u64` integer. - - `innerInstructions` - An array of objects representing the inner instructions of all transactions in the - block (omitted if inner instruction recording is disabled). Each object has the following fields: - - `logMessages` - An array of strings containing any log messages generated by the block's transactions - (omitted if inner instruction recording is disabled). - - `postBalances` - An array of lamport balances for each account in the block after the transactions were processed. - - `postTokenBalances` - An array of token balances for each token account in the block after the transactions were - processed (omitted if inner instruction recording is disabled). - - `preBalances` - An array of lamport balances for each account in the block before the transactions were processed. - - `preTokenBalances` - An array of token balances for each token account in the block before the transactions were - processed (omitted if inner instruction recording is disabled). - - `rewards` - An object containing information about the rewards earned by the block's validators - (only present if the rewards are requested). It has the following fields: - - `pubkey` - The public key of the account that received the award encoded as a `base58` string. - - `lamports` - The number of reward lamports credited or debited by the account. - - `postBalance` - The account balance in lamports after the reward was applied. - - `rewardType` - The type of reward. It could be `fee`, `rent`, `voting`, or `staking`. - - `commission` - The vote account commission when the reward was credited, only present for voting and staking rewards. - - `status` - The status of the transaction. It returns `Ok` if the transaction was successful, and `Err` - if the transaction failed. - - `transaction` - The transaction object. It could be either JSON format or encoded binary data, depending on the encoding parameter. - - `message` - An array of transactions objects included in the block: - - `accountKeys` - An array of public keys associated with the accounts that were accessed during - the execution of transactions in the block. - - `pubkey` - The public key associated with the block producer that created the block. - - `signer` - Indicates if the account is a required transaction signer. It can also be used to identify the signers - involved in the block's transactions and to verify the authenticity of the signatures. - - `source` - Identifies the accounts that provided the funds for the block's transactions. - - `writable` - A boolean value that indicates whether the accounts associated with the given public keys - were modified by the transactions or not. - - `instructions` - An array of instructions that were executed in the block's transactions - - `parsed` - An array of parsed instructions that were executed in the block's transactions - - `info` - An array of information objects that provide additional details about the transactions in the block. - - `clockSysvar` - Provides information about the current state of the blockchain. - - `slotHashesSysvar` - Provides information about the hashes of recent slots. - - `vote` - An array of vote accounts that were involved in the block's transactions. - - `hash` - The hash of the block. It can be used to uniquely identify the block and to verify the authenticity - of the block's contents. - - `slots` - An array of slot numbers that correspond to the transactions in the block. - - `timestamp` - The Unix timestamp of the block's creation. - - `voteAccount` - A vote account to identify the validator that produced the block and to verify the validity of their vote. - - `voteAuthority` - An authority associated with the vote account used to produce the block. - - `type` - The type of the block. It can be used to differentiate between regular blocks and special - blocks such as snapshot or transaction confirmation blocks. - - `program` - The data associated with the program that was executed in the block's transactions. - - `programId` - The public key of the program that was executed in the block's transactions. - - `stackHeight` - The current depth of the execution stack. - - `recentBlockhash` - The recent block hash for the account's cluster. - - `signatures` - The list of transaction signatures contained within a particular block. -- `version` - The transaction version. Returns `undefined` if` maxSupportedTransactionVersion` is not set in the requested parameters. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getBlock", "params": [333290000, {"encoding": "json", "maxSupportedTransactionVersion": 0, "transactionDetails": "full", "rewards": false}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "blockHeight": 359639279, - "blockTime": 1743651773, - "blockhash": "6m5rEYueCyWK54JQ9tNLJ7ZLMYQsQ5HFjySZgt2FjaV2", - "parentSlot": 371661599, - "previousBlockhash": "AGX8AvrjGJouXLwAoqEVLABfHMqeyGdVHw8zacsG4Dit", - "transactions": [ - { - "meta": { - "computeUnitsConsumed": 2100, - "err": null, - "fee": 5000, - "innerInstructions": [], - "loadedAddresses": { - "readonly": [], - "writable": [] - }, - "logMessages": [ - "Program Vote111111111111111111111111111111111111111 invoke [1]", - "Program Vote111111111111111111111111111111111111111 success" - ], - "postBalances": [ - 7221320288943, - 10172781085509212, - 1 - ], - "postTokenBalances": [], - "preBalances": [ - 7221320293943, - 10172781085509212, - 1 - ], - "preTokenBalances": [], - "rewards": null, - "status": { - "Ok": null - } - }, - "transaction": { - "message": { - "accountKeys": [ - "dv1ZAGvdsz5hHLwWXsVnM94hWf1pjbKVau1QVkaMJ92", - "5ZWgXcyqrrNpQHCme5SdC5hCeYb2o3fEJhF7Gok3bTVN", - "Vote111111111111111111111111111111111111111" - ], - "header": { - "numReadonlySignedAccounts": 0, - "numReadonlyUnsignedAccounts": 1, - "numRequiredSignatures": 1 - }, - "instructions": [ - { - "accounts": [1, 0], - "data": "67MGmzAKuQPwzeYjrCpiDrjsgJk2cKGAWHeYYXr5hJVLwo11193dCcRDeWHENT2mB8qxgRnFXXpyXdm2WR7c9R2Gdn1ZTJiC4s7voQNfLo5hEiGrHbW5C15Ru6W9zSx7tLJSBgdUVeeNa6cp3FhJtfA5vChhLo54eVuQERTEfU3YSaSRAyCciNpEXUVmiWtrVY9fDEznum", - "programIdIndex": 2, - "stackHeight": null - } - ], - "recentBlockhash": "AGX8AvrjGJouXLwAoqEVLABfHMqeyGdVHw8zacsG4Dit" - }, - "signatures": [ - "4LYx3ESTTTiD3DSJ8TmDrEHQNEJHM9WWbKw4bz6GrguJ7Eon4MAepRWZZyaaJ57agxhss9HeaUhgXVurDCp3pi8H" - ] - }, - "version": "legacy" - ... - } - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getblockcommitment.mdx b/services/reference/solana/json-rpc-methods/getblockcommitment.mdx deleted file mode 100644 index cac781fb6ae..00000000000 --- a/services/reference/solana/json-rpc-methods/getblockcommitment.mdx +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: 'getBlockCommitment' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getBlockCommitment` - -Returns the commitment for a block identified by the given slot number. - -## Parameters - -`slot`: (integer) _[required]_ - The slot number of the block to query. - -## Returns - -`result` - An object with the following fields: - -- `commitment` - The commitment values for the block. Returns either: - - `null` if the block is not found. - - Array of `u64` integers logging the amount of cluster stake in lamports that has voted on the - block at each depth from `0` to `MAX_LOCKOUT_HISTORY`. -- `totalStake` - The total number of lamports being used by validators to participate in the block production - and voting process - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getBlockCommitment", "params": [5]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "commitment": [ - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 10, 32 - ], - "totalStake": 42 - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getblockheight.mdx b/services/reference/solana/json-rpc-methods/getblockheight.mdx deleted file mode 100644 index 65ab712244a..00000000000 --- a/services/reference/solana/json-rpc-methods/getblockheight.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: 'getBlockHeight' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getBlockHeight` - -Returns the current block height. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result`: (integer) - The current block height in `u64` format. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getBlockHeight", "params": []}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": 359660979, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getblockproduction.mdx b/services/reference/solana/json-rpc-methods/getblockproduction.mdx deleted file mode 100644 index 640c5a3d36a..00000000000 --- a/services/reference/solana/json-rpc-methods/getblockproduction.mdx +++ /dev/null @@ -1,91 +0,0 @@ ---- -title: 'getBlockProduction' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getBlockProduction` - -Returns recent block production information from the current or previous epoch. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `range`: (array) _[optional]_ - Slot range to return block production for. If not provided, defaults to current epoch. - - `firstSlot`: (integer) _[optional]_ - The first slot in the range. - - `lastSlot`: (integer) _[optional]_ - The last slot in the range. - - `identity`: (string) _[optional]_ - Only return results for this `base58` encoded validator identity. - -## Returns - -`result` - An object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object containing block production information: - - `byIdentity` - A dictionary of validator identities, as `base58` encoded strings. This is a two - element array containing the number of leader slots and the number of blocks produced. - - `range` - The block production slot range: - - `firstSlot` - The first slot of the block production information (inclusive). - - `lastSlot` - The last slot of the block production information (inclusive). - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getBlockProduction", "params": []}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.2.3", - "slot": 371687291 - }, - "value": { - "byIdentity": { - "3zvXem8vqvDYos6BKu66FV84tmDdQwgLxYSempy8tSrs": [ - 584, - 584 - ], - ... - "dv4ACNkpYPcE3aKmYDqZm9G5EB3J4MRoeE7WNDRBVJB": [ - 40400, - 40400 - ] - }, - "range": { - "firstSlot": 371520000, - "lastSlot": 371687291 - } - } - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getblocks.mdx b/services/reference/solana/json-rpc-methods/getblocks.mdx deleted file mode 100644 index 90780adef85..00000000000 --- a/services/reference/solana/json-rpc-methods/getblocks.mdx +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: 'getBlocks' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getBlocks` - -Returns a list of confirmed blocks between two given slots. - -## Parameters - -- `startSlot`: (integer) _[required]_ - The starting slot number for the range of blocks to query. -- `endSlot`: (integer) _[optional]_ - The ending slot number for the range of blocks to query. - Must be no more than 500,000 blocks higher than `startSlot`. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - -## Returns - -`result`: (integer) - An array of `u64` integers representing the block numbers within the specified range. If `endSlot` is not -provided, the method will return blocks starting from `startSlot` to the most recent block. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id":1, "method":"getBlocks", "params":[371661723, 371661733]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result":[371661723,371661724,371661725,371661726,371661727,371661728,371661729,371661730,371661731,371661732,371661733], - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getblockswithlimit.mdx b/services/reference/solana/json-rpc-methods/getblockswithlimit.mdx deleted file mode 100644 index 97cc7f0549a..00000000000 --- a/services/reference/solana/json-rpc-methods/getblockswithlimit.mdx +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: 'getBlocksWithLimit' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getBlocksWithLimit` - -Returns a list of confirmed blocks starting at the given slot, up to the specified limit. - -## Parameters - -- `startSlot`: (integer) _[required]_ - The starting slot number for the range of blocks to query. -- `limit`: (integer) _[required]_ - The maximum number of confirmed blocks to return, starting from the specified slot. - Must be no more than 500,000 blocks higher than `startSlot`. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - -## Returns - -`result`: (integer) - An array of `u64` integers representing the block numbers from the `startSlot` up to the specified `limit`. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id":1, "method":"getBlocksWithLimit", "params":[371661723, 10]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result":[371661723,371661724,371661725,371661726,371661727,371661728,371661729,371661730,371661731,371661732], - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getclusternodes.mdx b/services/reference/solana/json-rpc-methods/getclusternodes.mdx deleted file mode 100644 index 818cbafc4c0..00000000000 --- a/services/reference/solana/json-rpc-methods/getclusternodes.mdx +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: 'getClusterNodes' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getClusterNodes` - -Returns information about all the nodes participating in the cluster. - -## Parameters - -None - -## Returns - -`result`: An array of objects with the following fields: - -- `featureSet` - The unique identifier of the node's feature set. -- `gossip` - The gossip network address for the node. -- `pubkey` - The public key of the node encoded as `base58` string. -- `rpc` -The IP address and port number of the node's JSON-RPC service. `nul`` if the JSON-RPC service is disabled. -- `shredVersion` - The version of the data structure used by this node to store and transmit blocks. -- `tpu` - The TPU network address for the node. -- `version` - The software version of the node. `null` if the version information is unavailable. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id":1, "method":"getClusterNodes"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": [ - { - "featureSet": 3294202862, - "gossip": "208.91.107.3:8001", - "pubkey": "8GFyFHMa8oobGzK6Bab1qdExMqjvQoFeHYTpkfJiR8NH", - "pubsub": null, - "rpc": null, - "serveRepair": "208.91.107.3:8013", - "shredVersion": 2405, - "tpu": "208.91.107.3:8004", - "tpuForwards": "208.91.107.3:8005", - "tpuForwardsQuic": "208.91.107.3:8011", - "tpuQuic": "208.91.107.3:8010", - "tpuVote": "208.91.107.3:8006", - "tvu": "208.91.107.3:8002", - "version": "2.2.3" - }, - ... - ], - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getepochinfo.mdx b/services/reference/solana/json-rpc-methods/getepochinfo.mdx deleted file mode 100644 index 7f9240d03df..00000000000 --- a/services/reference/solana/json-rpc-methods/getepochinfo.mdx +++ /dev/null @@ -1,70 +0,0 @@ ---- -title: 'getEpochInfo' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getEpochInfo` - -Returns information about the current epoch. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: (integer) _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result`: An array of objects with the following fields: - -- `absoluteSlot` - The current slot. -- `blockHeight` - The current block height. -- `epoch` - The current epoch. -- `slotIndex` - The current slot relative to the start of the current epoch. -- `slotsInEpoch` - The number of slots in this epoch. -- `transactionCount` The total number of transactions processed during the current epoch. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getEpochInfo"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "absoluteSlot": 371857300, - "blockHeight": 359834889, - "epoch": 860, - "slotIndex": 337300, - "slotsInEpoch": 432000, - "transactionCount": 15448034599 - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getepochschedule.mdx b/services/reference/solana/json-rpc-methods/getepochschedule.mdx deleted file mode 100644 index 05417bd88fb..00000000000 --- a/services/reference/solana/json-rpc-methods/getepochschedule.mdx +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: 'getEpochSchedule' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getEpochSchedule` - -Returns epoch schedule information from the cluster's genesis configuration. - -## Parameters - -None - -## Returns - -`result` - An object with the following fields: - -- `firstNormalEpoch` - The first normal length epoch. Calculated as `log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH)`. -- `firstNormalSlot` - The slot number of the first normal slot. Calculated as `MINIMUM_SLOTS_PER_EPOCH * (2.pow(firstNormalEpoch) - 1)`. -- `leaderScheduleSlotOffset` - The number of slots before starting an epoch to calculate a leader schedule for that epoch. -- `slotsPerEpoch` - The maximum number of slots in each epoch. -- `warmup` - Whether epochs start shorter and grow in length. During warmup (`true`) the epoch schedule starts small and - gradually increases to ease the network into normal operation, whereas without warmup (`false`), epochs have a - consistent length from the start. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getEpochSchedule"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "firstNormalEpoch": 0, - "firstNormalSlot": 0, - "leaderScheduleSlotOffset": 432000, - "slotsPerEpoch": 432000, - "warmup": false - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getfeeformessage.mdx b/services/reference/solana/json-rpc-methods/getfeeformessage.mdx deleted file mode 100644 index 3ca9129d8b6..00000000000 --- a/services/reference/solana/json-rpc-methods/getfeeformessage.mdx +++ /dev/null @@ -1,68 +0,0 @@ ---- -title: 'getFeeForMessage' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getFeeForMessage` - -Returns the fee the network will charge for a specified message. - -## Parameters - -- `message`: (string) _[required]_ - The `base64` encoded transaction message. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: (integer) _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - `null` when the block doesn't exist, or an object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - `null`, or the fee for the specified message. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getFeeForMessage", "params": ["AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBAQAA", {"commitment": "processed"}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.1.11", - "slot": 320142245 - }, - "value": null - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getfirstavailableblock.mdx b/services/reference/solana/json-rpc-methods/getfirstavailableblock.mdx deleted file mode 100644 index ced30f0d81d..00000000000 --- a/services/reference/solana/json-rpc-methods/getfirstavailableblock.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: 'getFirstAvailableBlock' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getFirstAvailableBlock` - -Returns the slot of the lowest confirmed block that has not been purged from the ledger. - -## Parameters - -None - -## Returns - -`result`: (integer) - The slot of the lowest confirmed block as a 64-bit unsigned integer. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getFirstAvailableBlock"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result":116113408, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getgenesishash.mdx b/services/reference/solana/json-rpc-methods/getgenesishash.mdx deleted file mode 100644 index 6c4e1dd24ad..00000000000 --- a/services/reference/solana/json-rpc-methods/getgenesishash.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: 'getGenesisHash' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getGenesisHash` - -Returns the genesis hash for the network. - -## Parameters - -None - -## Returns - -`result`: (string) - The hash encoded as a `base58` string. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getGenesisHash"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result":"EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG", - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/gethealth.mdx b/services/reference/solana/json-rpc-methods/gethealth.mdx deleted file mode 100644 index 4d963266302..00000000000 --- a/services/reference/solana/json-rpc-methods/gethealth.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: 'getHealth' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getHealth` - -Returns the health of the node. - -## Parameters - -None - -## Returns - -`result`: (string) - `Ok` if the node is healthy, or a JSON-RPC error response if the node is unhealthy. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getHealth"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result": "ok", - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/gethighestsnapshotslot.mdx b/services/reference/solana/json-rpc-methods/gethighestsnapshotslot.mdx deleted file mode 100644 index 672cdbe2911..00000000000 --- a/services/reference/solana/json-rpc-methods/gethighestsnapshotslot.mdx +++ /dev/null @@ -1,59 +0,0 @@ ---- -title: 'getHighestSnapshotSlot' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getHighestSnapshotSlot` - -Returns information for the highest slot that the node has a snapshot for. - -This will find the highest full snapshot slot, and the highest incremental snapshot slot based on the -full snapshot slot, if there is one. - -## Parameters - -None - -## Returns - -`result` - An object with the following fields: - -- `full`: - The highest full snapshot slot encoded as a `u64` integer. -- `incremental`: The highest incremental snapshot slot derived from the full snapshot. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getHighestSnapshotSlot"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result": { - "full":372722782, - "incremental":372732282 - }, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getidentity.mdx b/services/reference/solana/json-rpc-methods/getidentity.mdx deleted file mode 100644 index c188f485e19..00000000000 --- a/services/reference/solana/json-rpc-methods/getidentity.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: 'getIdentity' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getIdentity` - -Returns the public key identity of the current node. - -## Parameters - -None - -## Returns - -`result` - An object with the following fields: - -- `identity` - The public key identity as a `base58` encoded string. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getIdentity"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result": { - "identity":"5UHT2MnFvARGe5mGbKZth5Yh546UWmPtucQYBGTYsi4n" - }, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getinflationgovernor.mdx b/services/reference/solana/json-rpc-methods/getinflationgovernor.mdx deleted file mode 100644 index 70dcae54ef1..00000000000 --- a/services/reference/solana/json-rpc-methods/getinflationgovernor.mdx +++ /dev/null @@ -1,68 +0,0 @@ ---- -title: 'getInflationGovernor' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getInflationGovernor` - -Returns the current inflation governor, which controls the inflation rate in the network. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - -## Returns - -`result` - An object with the following fields: - -- `foundation` - The proportion of total inflation allocated to the foundation. -- `foundationTerm` - The period in years during which the foundation allocation will be paid out. -- `initial` - The initial inflation percentage from time (`0`). -- `taper` - The period in years during which the inflation rate will gradually decrease from the - initial rate to the final rate. -- `terminal` - The terminal inflation percentage. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getInflationGovernor"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result": { - "foundation":0.0, - "foundationTerm":0.0, - "initial":0.08, - "taper":0.15, - "terminal":0.015 - }, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getinflationrate.mdx b/services/reference/solana/json-rpc-methods/getinflationrate.mdx deleted file mode 100644 index ae0a289170a..00000000000 --- a/services/reference/solana/json-rpc-methods/getinflationrate.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: 'getInflationRate' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getInflationRate` - -Returns the specific inflation values for the current epoch. - -## Parameters - -None - -## Returns - -`result` - An object with the following fields: - -- `epoch` - The epoch during which these values remain valid. -- `foundation` - The proportion of total inflation allocated to the foundation. -- `total` - The total inflation. -- `validator` - The portion of inflation designated for validators. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getInflationRate"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result": { - "epoch":862, - "foundation":0.0, - "total":0.0385971617307845, - "validator":0.0385971617307845 - }, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getinflationreward.mdx b/services/reference/solana/json-rpc-methods/getinflationreward.mdx deleted file mode 100644 index 2b81427f76f..00000000000 --- a/services/reference/solana/json-rpc-methods/getinflationreward.mdx +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: 'getInflationReward' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getInflationReward` - -Returns the inflation (staking) rewards for a list of addresses for an epoch. - -## Parameters - -- `array`: (string) _[requiredl]_ - An array of `base58` encoded addresses to query. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `epoch`: (integer) _[optional]_ - The epoch for which to query the rewards. If not specified, the current epoch is used. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - An object with the following fields: - -- `epoch` - The epoch during which the reward was received. -- `effectiveSlot` - The slot at which the rewards become active. -- `amount` - The reward value in lamports. -- `postBalance` - The account balance after the transaction in lamports. -- `commission` - The commission rate of the vote account at the time the reward was credited. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method": "getInflationReward", "params": [["6dmNQ5jwLeLk5REvio1JcMshcbvkYMwy26sJ8pbkvStu", "BGsqMegLpV6n6Ve146sSX2dTjUMj3M92HnU8BbNRMhF2"], {"epoch": 2}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": [ - { - "epoch": 2, - "effectiveSlot": 224, - "amount": 2500, - "postBalance": 499999442500 - }, - null - ], - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getlargestaccounts.mdx b/services/reference/solana/json-rpc-methods/getlargestaccounts.mdx deleted file mode 100644 index f8aacd156b0..00000000000 --- a/services/reference/solana/json-rpc-methods/getlargestaccounts.mdx +++ /dev/null @@ -1,75 +0,0 @@ ---- -title: 'getLargestAccounts' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getLargestAccounts` - -Returns the 20 largest accounts, by lamport balance. Results may be cached up to two hours. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `filter`: (string) _[optional]_ - Filters results by account type. Supported options are `circulating` and `nonCirculating`. - -## Returns - -`result` - `null` when the account doesn't exist, or an object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object containing the following keys: - - `address` - The `base58` encoded account address. - - `lamports` - The number of lamports in the account. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method": "getLargestAccounts", "params": []}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { "slot": 54 }, - "value": [ - { - "address": "99P8ZgtJYe1buSK8JXkvpLh8xPsCFuLYhz9hQFNw93WJ", - "lamports": 999974 - }, - { - "address": "uPwWLo16MVehpyWqsLkK3Ka8nLowWvAHbBChqv2FZeL", - "lamports": 42 - } - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getlatestblockhash.mdx b/services/reference/solana/json-rpc-methods/getlatestblockhash.mdx deleted file mode 100644 index 1d12d4d6659..00000000000 --- a/services/reference/solana/json-rpc-methods/getlatestblockhash.mdx +++ /dev/null @@ -1,72 +0,0 @@ ---- -title: 'getLatestBlockhash' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getLatestBlockhash` - -Returns the latest block hash. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - An object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object containing the following keys: - - `blockhash` - The `base58` encoded block hash. - - `lastValidBlockHeight` - The last block height at which the block hash will be valid. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method": "getLatestBlockhash", "params": []}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.2.3", - "slot": 372758352 - }, - "value": { - "blockhash": "4zuGA4EyEjaN25qMVnwwij4UMRWcmEpFn1txrzMMk5xw", - "lastValidBlockHeight": 360735720 - } - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getleaderschedule.mdx b/services/reference/solana/json-rpc-methods/getleaderschedule.mdx deleted file mode 100644 index 812cbc26718..00000000000 --- a/services/reference/solana/json-rpc-methods/getleaderschedule.mdx +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: 'getLeaderSchedule' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getLeaderSchedule` - -Returns the leader schedule for an epoch. - -## Parameters - -- `slot`: (integer) _[optional]_ - The slot number to query. The method returns the leader schedule - for the epoch that corresponds to the provided slot. If unspecified, returns the leader schedule for - the current epoch. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `identity`: (string) _[optional]_ - Only return results for this `base58` encoded validator identity. - -## Returns - -`result` - `null` if the requested epoch is not found; otherwise, an object of `base58` encoded validator -identities, and their corresponding leader slot indices as values (indices are relative to the first slot in the requested epoch). - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":1, "method":"getLeaderSchedule", "params":[{"identity":"3zvXem8vqvDYos6BKu66FV84tmDdQwgLxYSempy8tSrs"}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "3zvXem8vqvDYos6BKu66FV84tmDdQwgLxYSempy8tSrs": [ - 2816, - 2817, - 2818, - ... - 430998, - 430999 - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getmaxretransmitslot.mdx b/services/reference/solana/json-rpc-methods/getmaxretransmitslot.mdx deleted file mode 100644 index ad4168a2e38..00000000000 --- a/services/reference/solana/json-rpc-methods/getmaxretransmitslot.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: 'getMaxRetransmitSlot' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getMaxRetransmitSlot` - -Get the highest slot that the node has processed and retransmitted. - -## Parameters - -None - -## Returns - -`result` - The slot number as a 64-bit unsigned integer. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getMaxRetransmitSlot"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": 372797611, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getmaxshredinsertslot.mdx b/services/reference/solana/json-rpc-methods/getmaxshredinsertslot.mdx deleted file mode 100644 index 92dec56da62..00000000000 --- a/services/reference/solana/json-rpc-methods/getmaxshredinsertslot.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: 'getMaxShredInsertSlot' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getMaxShredInsertSlot` - -Get the maximum slot visible from after the shred insert. - -## Parameters - -None - -## Returns - -`result` - The slot number as a 64-bit unsigned integer. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getMaxShredInsertSlot"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result":372942171, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getminimumbalanceforrentexemption.mdx b/services/reference/solana/json-rpc-methods/getminimumbalanceforrentexemption.mdx deleted file mode 100644 index d55560c68c4..00000000000 --- a/services/reference/solana/json-rpc-methods/getminimumbalanceforrentexemption.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: 'getMinimumBalanceForRentExemption' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getMinimumBalanceForRentExemption` - -Returns the minimum balance (in lamports) required to make an account exempt from rent. - -## Parameters - -- `usize`: (integer) _[required]_ - The account's data length. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - -## Returns - -`result` - The minimum lamports required in an account to remain rent free. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":1, "method":"getMinimumBalanceForRentExemption", "params":[60]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result":1308480, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getmultipleaccounts.mdx b/services/reference/solana/json-rpc-methods/getmultipleaccounts.mdx deleted file mode 100644 index 8e40b08fe97..00000000000 --- a/services/reference/solana/json-rpc-methods/getmultipleaccounts.mdx +++ /dev/null @@ -1,108 +0,0 @@ ---- -title: 'getMultipleAccounts' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getMultipleAccounts` - -Returns information associated with a list of accounts. - -## Parameters - -- `array`: (string) _[required]_ - An array of `base58` encoded account public keys to query. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58`, `base64`, `base64+zstd`, - or `jsonParsed` - - `dataSlice`: (object) _[optional]_ - A slice of the account data to return. Only available for `base58`, `base64`, - or `base64+zstd` encoding. This is an object with two properties: - - `offset` - The starting byte offset of the slice. - - `length` - The length of the slice in bytes. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - An object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - List of account objects. Returns `null` if the account doesn't exist, or an object containing - the following keys for the requested account: - - `data` - The account data, encoded in the specified format. - - `executable` - A boolean indicating whether the account is executable. - - `lamports` - The number of lamports in the account. - - `owner` - The public key of the program that owns the account. - - `rentEpoch` - The epoch in which the account will next be due for rent. - - `space` - The size of the account data in bytes. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getMultipleAccounts", "params": [["7cVfgArCheMR6Cs4t6vz5rfnqd56vZq4ndaBrY5xkxXy", "ANVUJaJoVaJZELtV2AvRp7V5qPV1B84o29zAwDhPj1c2"], {"encoding": "base58"}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.2.3", - "slot": 372957980 - }, - "value": [ - { - "data": [ - "", - "base58" - ], - "executable": false, - "lamports": 6000000000, - "owner": "11111111111111111111111111111111", - "rentEpoch": 18446744073709552000, - "space": 0 - }, - { - "data": [ - "", - "base58" - ], - "executable": false, - "lamports": 3248020787, - "owner": "11111111111111111111111111111111", - "rentEpoch": 18446744073709552000, - "space": 0 - } - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getprogramaccounts.mdx b/services/reference/solana/json-rpc-methods/getprogramaccounts.mdx deleted file mode 100644 index 2c4f0ac922e..00000000000 --- a/services/reference/solana/json-rpc-methods/getprogramaccounts.mdx +++ /dev/null @@ -1,90 +0,0 @@ ---- -title: 'getProgramAccounts' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getProgramAccounts` - -Returns all accounts owned by the provided program public key. - -## Parameters - -- `address`: (string) _[required]_ - The `base-58` encoded public key of the program to query. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58`, `base64`, `base64+zstd`, - or `jsonParsed` - - `dataSlice`: (object) _[optional]_ - A slice of the account data to return. Only available for `base58`, `base64`, - or `base64+zstd` encoding. This is an object with two properties: - - `offset` - The starting byte offset of the slice. - - `length` - The length of the slice in bytes. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - - `withContext`: (boolean). Wraps the result in a JSON object. - - `filters` - Filter results using an array of up to 4 filter objects. - -## Returns - -`result` - An object with the following fields: - -- `pubkey` - The public key of the node encoded as `base58` string. -- `account` - An object with the following fields: - - `data` - The account data, encoded in the specified format. - - `executable` - A boolean indicating whether the account is executable. - - `lamports` - The number of lamports assigned to the account. - - `owner` - The public key of the program that owns the account. - - `rentEpoch` - The epoch in which the account will next be due for rent. - - `space` - The size of the account data in bytes. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getProgramAccounts", "params": ["4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T", {"filters": [{"dataSize": 17}, {"memcmp": {"offset": 4, "bytes": "3Mc6vR"}}]}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": [ - { - "account": { - "data": "2R9jLfiAQ9bgdcw6h8s44439", - "executable": false, - "lamports": 15298080, - "owner": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T", - "rentEpoch": 28, - "space": 42 - }, - "pubkey": "CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY" - } - ], - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getrecentperformancesamples.mdx b/services/reference/solana/json-rpc-methods/getrecentperformancesamples.mdx deleted file mode 100644 index df809e31c6a..00000000000 --- a/services/reference/solana/json-rpc-methods/getrecentperformancesamples.mdx +++ /dev/null @@ -1,86 +0,0 @@ ---- -title: 'getRecentPerformanceSamples' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getRecentPerformanceSamples` - -Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds -and include the number of transactions and slots that occur in a given time window. - -## Parameters - -- `limit`: (integer) - The number of samples to return (maximum 720). - -## Returns - -`result` - An object with the following fields: - -- `numNonVoteTransactions` - The number of non-vote transactions during the specified sample period. -- `numSlots` - The number of slots in the sample. -- `numTransactions` - The number of transactions in the sample. -- `samplePeriodSecs` - The number of seconds in the sample window. -- `slot` - The slot in which the sample was taken at. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":1, "method":"getRecentPerformanceSamples", "params": [4]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": [ - { - "numNonVoteTransactions": 4255, - "numSlots": 156, - "numTransactions": 6751, - "samplePeriodSecs": 60, - "slot": 372969680 - }, - { - "numNonVoteTransactions": 5486, - "numSlots": 156, - "numTransactions": 7980, - "samplePeriodSecs": 60, - "slot": 372969524 - }, - { - "numNonVoteTransactions": 4069, - "numSlots": 154, - "numTransactions": 6532, - "samplePeriodSecs": 60, - "slot": 372969368 - }, - { - "numNonVoteTransactions": 3760, - "numSlots": 155, - "numTransactions": 6224, - "samplePeriodSecs": 60, - "slot": 372969214 - } - ], - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getrecentprioritizationfees.mdx b/services/reference/solana/json-rpc-methods/getrecentprioritizationfees.mdx deleted file mode 100644 index cdb5f8f014a..00000000000 --- a/services/reference/solana/json-rpc-methods/getrecentprioritizationfees.mdx +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: 'getRecentPrioritizationFees' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getRecentPrioritizationFees` - -Returns a list of prioritization fees from recent blocks. - -## Parameters - -- `address`: (array) _[optional]_ - Array of account addresses (up to a maximum of 128 addresses), as `base58` encoded strings. - -## Returns - -`result` - An array of objects with the following fields: - -- `prioritizationFee` - The prioritization fee value. -- `slot` - The slot number associated with the prioritization fee. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":1, "method":"getRecentPrioritizationFees", "params": [["CxELquR1gPP8wHe33gZ4QxqGB3sZ9RSwsJ2KshVewkFY"]]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": [ - { - "prioritizationFee": 0, - "slot": 372976610 - }, - ... - { - "prioritizationFee": 0, - "slot": 372976759 - } - ], - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getsignaturesforaddress.mdx b/services/reference/solana/json-rpc-methods/getsignaturesforaddress.mdx deleted file mode 100644 index b39407d500b..00000000000 --- a/services/reference/solana/json-rpc-methods/getsignaturesforaddress.mdx +++ /dev/null @@ -1,84 +0,0 @@ ---- -title: 'getSignaturesForAddress' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getSignaturesForAddress` - -Returns signatures for confirmed transactions that include the specified address in the `accountKeys` list. -Results are returned in reverse chronological order, starting from the provided signature or the most recent confirmed block. - -## Parameters - -- `address`: (string) _[required]_ - The `base-58` encoded public key of the account to query. - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - - `limit`: (number) _[optional]_ - The maximum number of signatures to return (between `1` and `1000`). - The default is `1000`. - - `before`: (string) _[optional]_ - Starts searching backward from the specified transaction signature. - If not provided, the search begins from the most recent confirmed block. - - `until`: (string) _[optional]_ - The signature to end the query at (if found before reaching `limit`). - -## Returns - -`result` - An object with the following fields: - -- `blockTime` - The estimated production time, as Unix timestamp (seconds since the Unix epoch). `null` if not available. -- `confirmationStatus` - The transaction's cluster confirmation status. The status can be `processed`, `confirmed`, or `finalized`. -- `err` - Error code if the transaction failed, or `null` if the transaction succeeds. -- `memo` - The memo associated with the transaction, or `null` if no memo is present. -- `signature` - The `base58` encoded signature of the transaction. -- `slot` - The slot number in which the transaction was confirmed. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getSignaturesForAddress", "params": ["Vote111111111111111111111111111111111111111", {"limit": 1}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": [ - { - "blockTime": 1744177112, - "confirmationStatus": "finalized", - "err": null, - "memo": null, - "signature": "2QYQGurkeT9CwdMTnMNTETbqwU4NiLoB8kqA4KxVUu4vV1BWxw79YfzWAWpPduqA2zmxgbunyrPZtCbDR7LCmTZr", - "slot": 373019515 - } - ], - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getsignaturestatuses.mdx b/services/reference/solana/json-rpc-methods/getsignaturestatuses.mdx deleted file mode 100644 index e573cfb841b..00000000000 --- a/services/reference/solana/json-rpc-methods/getsignaturestatuses.mdx +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: 'getSignatureStatuses' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getSignatureStatuses` - -Returns the statuses of a list of signatures. Unless the `searchTransactionHistory` configuration parameter -is included, this method only searches the recent status cache of signatures, which retains statuses for -all active slots plus `MAX_RECENT_BLOCKHASHES` rooted slots. - -## Parameters - -- `txSignatures`: (array of strings) _[required]_ - An array of `base58` encoded transaction signatures to confirm. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `searchTransactionHistory`: boolean - If `true`, the search includes the entire transaction - history. If `false`, the search only includes recent transactions in the latest confirmed block. - The default is `false`. - -## Returns - -`result` - An object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An array of objects containing the following keys, or `null` if the signature is not found: - - `confirmationStatus` - The transaction's cluster confirmation status. It can either be `processed`, `confirmed`, or `finalized`. - - `confirmations` - The number of confirmations a transaction has received. If the transaction is - `finalized` (confirmed at the highest level of commitment), the value will be `null`. - - `err` - Error code if the transaction failed, or `null` if the transaction succeeds. - - `slot` - The slot number in which the transaction was confirmed. - - `status` - The processing status of the transaction. It returns `Ok` if the transaction was successful - and `Err` if the transaction failed. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getSignatureStatuses", "params": [["5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW"], {"searchTransactionHistory": true}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.2.3", - "slot": 373170033 - }, - "value": [null] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getslot.mdx b/services/reference/solana/json-rpc-methods/getslot.mdx deleted file mode 100644 index 8ac35e5daf6..00000000000 --- a/services/reference/solana/json-rpc-methods/getslot.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: 'getSlot' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getSlot` - -Returns the latest slot that has reached the commitment level. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result`: (integer) - The current slot. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getSlot", "params": []}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result":373175194, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getslotleader.mdx b/services/reference/solana/json-rpc-methods/getslotleader.mdx deleted file mode 100644 index 277a5a51797..00000000000 --- a/services/reference/solana/json-rpc-methods/getslotleader.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: 'getSlotLeader' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getSlotLeader` - -Returns the current slot leader. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result`: (string) - The slot leader's `base58` encoded public key address. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getSlotLeader", "params": []}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result":"dv4ACNkpYPcE3aKmYDqZm9G5EB3J4MRoeE7WNDRBVJB", - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getslotleaders.mdx b/services/reference/solana/json-rpc-methods/getslotleaders.mdx deleted file mode 100644 index e31b371796a..00000000000 --- a/services/reference/solana/json-rpc-methods/getslotleaders.mdx +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: 'getSlotLeaders' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getSlotLeaders` - -Returns the slot leaders for a given slot range. - -## Parameters - -- `startSlot`: (integer) _[required]_ - The starting slot number for the query.` -- `limit`: (integer) _[required]_ - The maximum number of slot leaders to return (`1` to `5000`). - -## Returns - -`result`: (array of strings) - An array of `base58` encoded public key addresses identifying the slot leaders. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getSlotLeaders", "params": [373184397, 5]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": [ - "dv3qDFk1DTF36Z62bNvrCXe9sKATA6xvVy6A798xxAS", - "dv3qDFk1DTF36Z62bNvrCXe9sKATA6xvVy6A798xxAS", - "dv3qDFk1DTF36Z62bNvrCXe9sKATA6xvVy6A798xxAS", - "dv2eQHeP4RFrJZ6UeiZWoc3XTtmtZCUKxxCApCDcRNV", - "dv2eQHeP4RFrJZ6UeiZWoc3XTtmtZCUKxxCApCDcRNV" - ], - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getstakeminimumdelegation.mdx b/services/reference/solana/json-rpc-methods/getstakeminimumdelegation.mdx deleted file mode 100644 index d46ff8ff095..00000000000 --- a/services/reference/solana/json-rpc-methods/getstakeminimumdelegation.mdx +++ /dev/null @@ -1,66 +0,0 @@ ---- -title: 'getStakeMinimumDelegation' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getStakeMinimumDelegation` - -Returns the minimum number of lamports required to delegate a stake account. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - -## Returns - -`result` - An object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - The minimum number of lamports required to delegate a stake account. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","id":1,"method":"getStakeMinimumDelegation","params":[]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.2.3", - "slot": 373193193 - }, - "value": 1 - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getsupply.mdx b/services/reference/solana/json-rpc-methods/getsupply.mdx deleted file mode 100644 index 295499f3f53..00000000000 --- a/services/reference/solana/json-rpc-methods/getsupply.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -title: 'getSupply' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getSupply` - -Returns information about the current token supply. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - -## Returns - -`result` - An object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object with the following fields: - - `total` - The total supply of lamports in the network. - - `circulating` - The circulating supply of lamports in the network. - - `nonCirculating` - The non-circulating supply of lamports in the network. - - `nonCirculatingAccounts` - An array of account addresses that hold non-circulating lamports. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getSupply", "params": []}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.2.3", - "slot": 373204187 - }, - "value": { - "circulating": 967687939079885400, - "nonCirculating": 315864946585692700, - "nonCirculatingAccounts": [ - "Bzr4raUumaTNeqhMjvWYaF2Zm2gQwgFCDbVwcCNjNcT8", - "9NFMpkv65d2G7UMMFYHeXrBAaB6rVD3BgQ95bKiwr448", - ... - "3RQvfXbzQQBT4PymcwrBPtSLVuEpK79NuPAt8k4PhrXe" - ], - "total": 1283552885665578200 - } - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/gettokenaccountbalance.mdx b/services/reference/solana/json-rpc-methods/gettokenaccountbalance.mdx deleted file mode 100644 index d2b67900460..00000000000 --- a/services/reference/solana/json-rpc-methods/gettokenaccountbalance.mdx +++ /dev/null @@ -1,80 +0,0 @@ ---- -title: 'getTokenAccountBalance' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getTokenAccountBalance` - -Returns the token balance of an SPL token account. - -## Parameters - -- `address`: (string) _[required]_ - The `base-58` encoded public key of the token account to query. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - -## Returns - -`result` - An object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object with the following fields: - - `amount` - The raw total token supply without decimals, a string representation of a 64-bit unsigned integer. - - `decimals` - An integer value representing the number of decimal places used by the token. - - `uiAmount` - Deprecated. The total token supply using mint-prescribed decimals. - - `uiAmountString` - The total token supply as a string using mint-prescribed decimals. - -## Example - -Replace `` with your API key. - -### Request - - - - -````bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getTokenAccountBalance", "params": ["3emsAVdmGKERbHjmGfQ6oZ1e35dkf5iYcS6U4CPKFVaa"]}' - ``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.1.16", - "slot": 332462945 - }, - "value": { - "amount": "344068629195906", - "decimals": 6, - "uiAmount": 344068629.195906, - "uiAmountString": "344068629.195906" - } - }, - "id": 1 -} -```` - - - diff --git a/services/reference/solana/json-rpc-methods/gettokenaccountsbydelegate.mdx b/services/reference/solana/json-rpc-methods/gettokenaccountsbydelegate.mdx deleted file mode 100644 index 4bb9e315d59..00000000000 --- a/services/reference/solana/json-rpc-methods/gettokenaccountsbydelegate.mdx +++ /dev/null @@ -1,138 +0,0 @@ ---- -title: 'getTokenAccountsByDelegate' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getTokenAccountsByDelegate` - -Retrieves all SPL token accounts for which a specified delegate has been approved. - -## Parameters - -- `address`: (string) _[required]_ - The `base58` encoded public key of the delegate account to query. -- `accountDetails`: (object) _[required]_ - An object containing one the following fields: - - `mint`: (string) _[optional]_ - The `base58` encoded public key of the mint account. - - `programId`: (string) _[optional]_ - The `base58` encoded public key of the token program that owns the account. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58`, `base64`, `base64+zstd`, - or `jsonParsed` - - `dataSlice`: (object) _[optional]_ - A slice of the account data to return. Only available for `base58`, `base64`, - or `base64+zstd` encoding. This is an object with two properties: - - `offset` - The starting byte offset of the slice. - - `length` - The length of the slice in bytes. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - An array of objects with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object with the following fields: - - `pubkey` - The `base58` encoded public key of the token account. - - `account` - An object containing the address used to store assets: - - `data` - An object containing token state data associated with the account, either as - encoded binary data or in JSON format: - - `program` The program that manages the token. - - `parsed` - An array of parsed instructions that were executed in the block's transactions: - - `info` - An array of objects that provide additional details about the transactions in the block: - - `tokenAmount` - The balance of the token in the token account. - - `amount` - The raw total token supply without decimals, a string representation of a u64 integer. - - `decimals` - An integer value representing the number of decimal places used by the token. - - `uiAmount` - The total token supply using mint-prescribed decimals (DEPRECATED). - - `uiAmountString` - The total token supply as a string using mint-prescribed decimals. - - `isNative` - A boolean value indicating whether the token is a native token of the Solana blockchain. - - `mint` - Provides information about the creation of new tokens. - - `owner` - The base-58 encoded Pubkey of the program this account has been assigned to. - - `state` - The current state of the token account. - - `type` - The type of the block. It can be used to differentiate between regular blocks and special blocks such as snapshot or transaction confirmation blocks. - - `space` - The amount of storage space required to store the token account. - - `executable` - A boolean indicating whether the account is executable. - - `lamports` - The number of lamports in the account. - - `owner` - The public key of the program that owns the account. - - `rentEpoch` - The epoch in which the account will next be due for rent. - - `space` - The size of the account data in bytes. - -## Example - -Replace `` with your API key. - -### Request - - - - -````bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getTokenAccountsByDelegate", "params": ["4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T", {"programId":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"}, {"encoding": "jsonParsed"}]}' - ``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { "slot": 1114 }, - "value": [ - { - "pubkey": "28YTZEwqtMHWrhWcvv34se7pjS7wctgqzCPB3gReCFKp", - "account": { - "data": { - "program": "spl-token", - "parsed": { - "info": { - "tokenAmount": { - "amount": "1", - "decimals": 1, - "uiAmount": 0.1, - "uiAmountString": "0.1" - }, - "delegate": "4Nd1mBQtrMJVYVfKf2PJy9NZUZdTAsp7D4xWLs4gDB4T", - "delegatedAmount": { - "amount": "1", - "decimals": 1, - "uiAmount": 0.1, - "uiAmountString": "0.1" - }, - "state": "initialized", - "isNative": false, - "mint": "3wyAj7Rt1TWVPZVteFJPLa26JmLvdb1CAKEFZm3NY75E", - "owner": "CnPoSPKXu7wJqxe59Fs72tkBeALovhsCxYeFwPCQH9TD" - }, - "type": "account" - }, - "space": 165 - }, - "executable": false, - "lamports": 1726080, - "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "rentEpoch": 4, - "space": 165 - } - } - ] - }, - "id": 1 -} -```` - - - diff --git a/services/reference/solana/json-rpc-methods/gettokenaccountsbyowner.mdx b/services/reference/solana/json-rpc-methods/gettokenaccountsbyowner.mdx deleted file mode 100644 index df15beaf778..00000000000 --- a/services/reference/solana/json-rpc-methods/gettokenaccountsbyowner.mdx +++ /dev/null @@ -1,137 +0,0 @@ ---- -title: 'getTokenAccountsByOwner' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getTokenAccountsByOwner` - -Retrieves all SPL token accounts for the specified token owner. - -## Parameters - -- `address`: (string) _[required]_ - The `base58` encoded public key of the account owner to query. -- `accountDetails`: (object) _[required]_ - An object containing one the following fields: - - `mint`: (string) _[optional]_ - The `base58` encoded public key of the mint account. - - `programId`: (string) _[optional]_ - The `base58` encoded public key of the token program that owns the account. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58`, `base64`, `base64+zstd`, - or `jsonParsed` - - `dataSlice`: (object) _[optional]_ - A slice of the account data to return. Only available for `base58`, `base64`, - or `base64+zstd` encoding. This is an object with two properties: - - `offset` - The starting byte offset of the slice. - - `length` - The length of the slice in bytes. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - An array of objects with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object with the following fields: - - `pubkey` - The `base58` encoded public key of the account. - - `account` - An object containing the address used to store assets: - - `data` - An object containing state data associated with the account, either as - encoded binary data or in JSON format: - - `program` The program that manages the token. - - `parsed` - An array of parsed instructions that were executed in the block's transactions: - - `info` - An array of objects that provide additional details about the transactions in the block: - - `tokenAmount` - The balance of the token in the account. - - `amount` - The raw total token supply without decimals, a string representation of a u64 integer. - - `decimals` - An integer value representing the number of decimal places used by the token. - - `uiAmount` - The total token supply using mint-prescribed decimals (DEPRECATED). - - `uiAmountString` - The total token supply as a string using mint-prescribed decimals. - - `delegate` - The public address of the delegate from which the account tokens are to be retrieved encoded as base-58 string. - - `delegateAmount` The configuration object with the following fields: - - `amount` - The raw total token supply without decimals, a string representation of a u64 integer. - - `decimals` - An integer value representing the number of decimal places used by the token. - - `uiAmount` - The total token supply using mint-prescribed decimals (DEPRECATED). - - `uiAmountString` - The total token supply as a string using mint-prescribed decimals. - - `isNative` - A boolean value indicating whether the token is a native token of the Solana blockchain. - - `mint` - Provides information about the creation of new tokens. - - `owner` - The base-58 encoded Pubkey of the program this account has been assigned to. - - `state` - The current state of the token account. - - `type` - The type of the block. It can be used to differentiate between regular blocks and special blocks such as snapshot or transaction confirmation blocks. - - `space` - The amount of storage space required to store the token account. - - `executable` - A boolean indicating whether the account is executable. - - `lamports` - The number of lamports in the account. - - `owner` - The public key of the program that owns the account. - - `rentEpoch` - The epoch in which the account will next be due for rent. - - `space` - The size of the account data in bytes. - -## Example - -Replace `` with your API key. - -### Request - - - - -````bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "getTokenAccountsByOwner", "params": ["A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd", {"programId":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"}, {"encoding": "jsonParsed"}]}' - ``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { "apiVersion": "2.0.15", "slot": 341197933 }, - "value": [ - { - "pubkey": "BGocb4GEpbTFm8UFV2VsDSaBXHELPfAXrvd4vtt8QWrA", - "account": { - "data": { - "program": "spl-token", - "parsed": { - "info": { - "isNative": false, - "mint": "2cHr7QS3xfuSV8wdxo3ztuF4xbiarF6Nrgx3qpx3HzXR", - "owner": "A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd", - "state": "initialized", - "tokenAmount": { - "amount": "420000000000000", - "decimals": 6, - "uiAmount": 420000000.0, - "uiAmountString": "420000000" - } - }, - "type": "account" - }, - "space": 165 - }, - "executable": false, - "lamports": 2039280, - "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "rentEpoch": 18446744073709551615, - "space": 165 - } - } - ] - }, - "id": 1 -} -```` - - - diff --git a/services/reference/solana/json-rpc-methods/gettokenlargestaccounts.mdx b/services/reference/solana/json-rpc-methods/gettokenlargestaccounts.mdx deleted file mode 100644 index 531c9a6caa5..00000000000 --- a/services/reference/solana/json-rpc-methods/gettokenlargestaccounts.mdx +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: 'getTokenLargestAccounts' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getTokenLargestAccounts` - -Returns the 20 largest accounts holding a specified SPL token type. - -## Parameters - -- `address`: (string) _[required]_ - The `base58` encoded public key of the token mint to query. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - -## Returns - -`result` - An array of objects with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object with the following fields: - - `address` - The address of the token account. - - `amount` - The raw total token supply without decimals, a string representation of a `u64` integer. - - `decimals` - An integer value representing the number of decimal places used by the token. - - `uiAmount` - Deprecated. The total token supply using mint-prescribed decimals. - - `uiAmountString` - The total token supply as a string using mint-prescribed decimals. - -## Example - -Replace `` with your API key. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":1, "method":"getTokenLargestAccounts", "params": ["1YDQ35V8g68FGvcT85haHwAXv1U7XMzuc4mZeEXfrjE"]}' -``` - - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.1.16", - "slot": 332646796 - }, - "value": [ - { - "address": "GFpkRJXUBNDWXENKAJ1dkYq4kYpHyNmgbifZbHsXXz4x", - "amount": "12", - "decimals": 0, - "uiAmount": 12, - "uiAmountString": "12" - }, - ... - { - "address": "GrxprwFYdFV4kdHjQDTWsdDFn9KtFn1p35rSZYDFgMkD", - "amount": "3", - "decimals": 0, - "uiAmount": 3, - "uiAmountString": "3" - } - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/gettokensupply.mdx b/services/reference/solana/json-rpc-methods/gettokensupply.mdx deleted file mode 100644 index 66001c6fa65..00000000000 --- a/services/reference/solana/json-rpc-methods/gettokensupply.mdx +++ /dev/null @@ -1,76 +0,0 @@ ---- -title: 'getTokenSupply' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getTokenSupply` - -Returns the total supply of an SPL token. - -## Parameters - -- `pubKey`: (string) _[required]_ - The `base58` encoded public key of the token mint. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - -## Returns - -`result`- An object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object with the following fields: - - `amount` - The raw total token supply without decimals, a string representation of a `u64` integer. - - `decimals` - An integer value representing the number of decimal places used by the token. - - `uiAmount` - Deprecated. The total token supply using mint-prescribed decimals. - - `uiAmountString` - The total token supply as a string using mint-prescribed decimals. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":1, "method":"getTokenSupply", "params": ["7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { - "apiVersion": "2.1.16", - "slot": 332678924 - }, - "value": { - "amount": "5736490108605186363", - "decimals": 9, - "uiAmount": 5736490108.605186, - "uiAmountString": "5736490108.605186363" - } - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/gettransaction.mdx b/services/reference/solana/json-rpc-methods/gettransaction.mdx deleted file mode 100644 index bacf33e01d2..00000000000 --- a/services/reference/solana/json-rpc-methods/gettransaction.mdx +++ /dev/null @@ -1,407 +0,0 @@ ---- -title: 'getTransaction' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getTransaction` - -Returns transaction details for a confirmed transaction. - -## Parameters - -- `address`: (string) _[required]_ - The `base58` encoded program public key. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `maxSupportedTransactionVersion`: (integer) _[optional]_ - The maximum supported transaction version to return. - If the requested transaction contains a transaction with a higher version, an error will be returned. If this parameter - is omitted, only legacy transactions will be returned, and any versioned transaction will return an error. - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58`, `base64`, `json`, and `jsonParsed`. The - default is `json`. - -## Returns - -`result`- `null` if the transaction is not found or not confirmed, otherwise returns an object containing: - -- `slot` - The slot this transaction was processed in. -- `blockTime` - The block time of the transaction as Unix timestamp (seconds since the Unix epoch). `null` if not available. - - `meta` - The transaction status metadata object, which contains additional information about the block and its - transactions. The meta object can be `null`, or it may contain the following fields: - - `err` - Error code if the transaction failed, or `null` if the transaction succeeds. - - `fee` - The total fees paid by all transactions in the block encoded as `u64` integer. - - `innerInstructions` - An array of objects representing the inner instructions of all transactions in the - block (omitted if inner instruction recording is disabled). Each object has the following fields: - - `logMessages` - An array of strings containing any log messages generated by the block's transactions - (omitted if inner instruction recording is disabled). - - `postBalances` - An array of lamport balances for each account in the block after the transactions were processed. - - `postTokenBalances` - An array of token balances for each token account in the block after the transactions were - processed (omitted if inner instruction recording is disabled): - - `accountIndex` - The index of an account within a transaction. - - `mint` - The mint address of the token. - - `owner` - The `base58` encoded public key of the program this account has been assigned to. - - `uiTokenAmount` - The amount of a token transfer. - - `amount` - The amount of the token transferred. - - `decimals` - The number of decimal places used by the token. - - `uiAmount` - The amount of the token transferred in the smallest unit of the token. - - `uiAmountString` - The amount of the token transferred with the appropriate number of decimal places for the token. - - `preBalances` - An array of lamport balances for each account in the block before the transactions were processed. - - `preTokenBalances` - An array of token balances for each token account in the block before the transactions were - processed (omitted if inner instruction recording is disabled): - - `accountIndex` - The index of an account within a transaction. - - `mint` - The mint address of the token. - - `owner` - The `base58` encoded public key of the program this account has been assigned to. - - `uiTokenAmount` - The amount of a token transfer. - - `amount` - The amount of the token transferred. - - `decimals` - The number of decimal places used by the token. - - `uiAmount` - The amount of the token transferred in the smallest unit of the token. - - `uiAmountString` - The amount of the token transferred with the appropriate number of decimal places for the token. - - `rewards` - An object containing information about the rewards earned by the block's validators - (only present if the rewards are requested). It has the following fields: - - `pubkey` - The public key of the account that received the award encoded as a `base58` string. - - `lamports` - The number of reward lamports credited or debited by the account. - - `postBalance` - The account balance in lamports after the reward was applied. - - `rewardType` - The type of reward. It could be `fee`, `rent`, `voting`, or `staking`. - - `commission` - The vote account commission when the reward was credited, only present for voting and staking rewards. - - `status` - The status of the transaction. It returns `Ok` if the transaction was successful, and `Err` - if the transaction failed. - - `transaction` - The transaction object. It could be either JSON format or encoded binary data, depending on the encoding parameter. - - `message` - An array of transaction objects included in the block: - - `accountKeys` - An array of public keys associated with the accounts that were accessed during - the execution of transactions in the block. - - `pubkey` - The public key associated with the block producer that created the block. - - `signer` - Indicates if the account is a required transaction signer. It can also be used to identify the signers - involved in the block's transactions and to verify the authenticity of the signatures. - - `source` - Identifies the accounts that provided the funds for the block's transactions. - - `writable` - A boolean value that indicates whether the accounts associated with the given public keys - were modified by the transactions or not. - - `instructions` - An array of instructions that were executed in the block's transactions - - `parsed` - An array of parsed instructions that were executed in the block's transactions - - `info` - An array of information objects that provide additional details about the transactions in the block. - - `clockSysvar` - Provides information about the current state of the blockchain. - - `slotHashesSysvar` - Provides information about the hashes of recent slots. - - `vote` - An array of vote accounts that were involved in the block's transactions. - - `hash` - The hash of the block. It can be used to uniquely identify the block and to verify the authenticity - of the block's contents. - - `slots` - An array of slot numbers that correspond to the transactions in the block. - - `timestamp` - The Unix timestamp of the block's creation. - - `voteAccount` - A vote account to identify the validator that produced the block and to verify the validity of their vote. - - `voteAuthority` - An authority associated with the vote account used to produce the block. - - `type` - The type of the block. It can be used to differentiate between regular blocks and special - blocks such as snapshot or transaction confirmation blocks. - - `program` - The data associated with the program that was executed in the block's transactions. - - `programId` - The public key of the program that was executed in the block's transactions. - - `stackHeight` - The current depth of the execution stack. - - `recentBlockhash` - The recent block hash for the account's cluster. - - `signatures` - The list of transaction signatures contained within a particular block. -- `version` - The version of the transaction. Returns `undefined` if `maxSupportedTransactionVersion` is not specified in the request. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0","id": 1,"method": "getTransaction","params": ["bVwuWqLs5wbHMHMavFfpK6zrg3mGY6AWVTNgdeDuWi1PxmFgvQYQJBMMcYp16fmJE9hwg4nNjDFok4rxmxQ6j5e",{"encoding": "jsonParsed","maxSupportedTransactionVersion":0}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "blockTime": 1744593547, - "meta": { - "computeUnitsConsumed": 52018, - "err": null, - "fee": 10000, - "innerInstructions": [ - { - "index": 2, - "instructions": [ - { - "parsed": { - "info": { - "authority": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA", - "destination": "EXp2FCTRX9tPyyjLneE7K6YRgh9qpqKnQLecXdRFMQFL", - "mint": "So11111111111111111111111111111111111111112", - "source": "GscCpwDVJfJ9Qv1svzLWpend7hvJq3Syrfuwe5YzHbtp", - "tokenAmount": { - "amount": "10", - "decimals": 9, - "uiAmount": 1e-8, - "uiAmountString": "0.00000001" - } - }, - "type": "transferChecked" - }, - "program": "spl-token", - "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "stackHeight": 2 - }, - { - "parsed": { - "info": { - "authority": "GpMZbSM2GgvTKHJirzeGfMFoaZ8UR2X7F4v8vHTvxFbL", - "destination": "HTADwVNDuSxnzYyuwhfNyZAkaVCABnbNFZzEdcR35idy", - "mint": "EyzgnBfHGe9hh169B8993muBVcoeURCnSgPbddBeSybo", - "source": "CPg85jShyN1Tez437qgR1jYbF43i8aWhTMWpbPCJoJqE", - "tokenAmount": { - "amount": "2583", - "decimals": 6, - "uiAmount": 0.002583, - "uiAmountString": "0.002583" - } - }, - "type": "transferChecked" - }, - "program": "spl-token", - "programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", - "stackHeight": 2 - } - ] - } - ], - "logMessages": [ - "Program 11111111111111111111111111111111 invoke [1]", - "Program 11111111111111111111111111111111 success", - "Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]", - ... - "Program 11111111111111111111111111111111 success" - ], - "postBalances": [ - 1160000, - 10799119391, - ... - 5888160 - ], - "postTokenBalances": [ - { - "accountIndex": 3, - "mint": "EyzgnBfHGe9hh169B8993muBVcoeURCnSgPbddBeSybo", - "owner": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA", - "programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", - "uiTokenAmount": { - "amount": "173576140", - "decimals": 6, - "uiAmount": 173.57614, - "uiAmountString": "173.57614" - } - }, - { - "accountIndex": 12, - "mint": "So11111111111111111111111111111111111111112", - "owner": "GpMZbSM2GgvTKHJirzeGfMFoaZ8UR2X7F4v8vHTvxFbL", - "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "uiTokenAmount": { - "amount": "700864692413", - "decimals": 9, - "uiAmount": 700.864692413, - "uiAmountString": "700.864692413" - } - }, - { - "accountIndex": 13, - "mint": "EyzgnBfHGe9hh169B8993muBVcoeURCnSgPbddBeSybo", - "owner": "GpMZbSM2GgvTKHJirzeGfMFoaZ8UR2X7F4v8vHTvxFbL", - "programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", - "uiTokenAmount": { - "amount": "201175021191002", - "decimals": 6, - "uiAmount": 201175021.191002, - "uiAmountString": "201175021.191002" - } - } - ], - "preBalances": [ - 1170000, - 10799139401, - ... - 5888160 - ], - "preTokenBalances": [ - { - "accountIndex": 3, - "mint": "EyzgnBfHGe9hh169B8993muBVcoeURCnSgPbddBeSybo", - "owner": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA", - "programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", - "uiTokenAmount": { - "amount": "173573816", - "decimals": 6, - "uiAmount": 173.573816, - "uiAmountString": "173.573816" - } - }, - { - "accountIndex": 12, - "mint": "So11111111111111111111111111111111111111112", - "owner": "GpMZbSM2GgvTKHJirzeGfMFoaZ8UR2X7F4v8vHTvxFbL", - "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "uiTokenAmount": { - "amount": "700864692403", - "decimals": 9, - "uiAmount": 700.864692403, - "uiAmountString": "700.864692403" - } - }, - { - "accountIndex": 13, - "mint": "EyzgnBfHGe9hh169B8993muBVcoeURCnSgPbddBeSybo", - "owner": "GpMZbSM2GgvTKHJirzeGfMFoaZ8UR2X7F4v8vHTvxFbL", - "programId": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", - "uiTokenAmount": { - "amount": "201175021193585", - "decimals": 6, - "uiAmount": 201175021.193585, - "uiAmountString": "201175021.193585" - } - } - ], - "rewards": [], - "status": { - "Ok": null - } - }, - "slot": 333307946, - "transaction": { - "message": { - "accountKeys": [ - { - "pubkey": "AgkMbKTWCuiAaJ262TdpXhuMPvWa21GJmAmZfo6gLEPF", - "signer": true, - "source": "transaction", - "writable": true - }, - ... - { - "pubkey": "EyzgnBfHGe9hh169B8993muBVcoeURCnSgPbddBeSybo", - "signer": false, - "source": "lookupTable", - "writable": false - } - ], - "addressTableLookups": [ - { - "accountKey": "CadRirmkx2CeeLd9LUtvF7D53822vrSt8PQULewPLm28", - "readonlyIndexes": [ - 2, - 0, - 5, - 4 - ], - "writableIndexes": [ - 1, - 9, - 10 - ] - } - ], - "instructions": [ - { - "parsed": { - "info": { - "base": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA", - "lamports": 2039290, - "newAccount": "GscCpwDVJfJ9Qv1svzLWpend7hvJq3Syrfuwe5YzHbtp", - "owner": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "seed": "3JgKrBB3sagy1HMXai5hKbRnsuZZDudR", - "source": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA", - "space": 165 - }, - "type": "createAccountWithSeed" - }, - "program": "system", - "programId": "11111111111111111111111111111111", - "stackHeight": null - }, - { - "parsed": { - "info": { - "account": "GscCpwDVJfJ9Qv1svzLWpend7hvJq3Syrfuwe5YzHbtp", - "mint": "So11111111111111111111111111111111111111112", - "owner": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA", - "rentSysvar": "SysvarRent111111111111111111111111111111111" - }, - "type": "initializeAccount" - }, - "program": "spl-token", - "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "stackHeight": null - }, - { - "accounts": [ - "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA", - "GpMZbSM2GgvTKHJirzeGfMFoaZ8UR2X7F4v8vHTvxFbL", - "D4FPEruKEHrG5TenZ2mpDGEfu1iUvTiqBxvpU8HLBvC2", - "CLhjQNAdhn6qZiCpDmiQFVNrhfMumDGEGMBrnVmk7wTR", - "GscCpwDVJfJ9Qv1svzLWpend7hvJq3Syrfuwe5YzHbtp", - "HTADwVNDuSxnzYyuwhfNyZAkaVCABnbNFZzEdcR35idy", - "EXp2FCTRX9tPyyjLneE7K6YRgh9qpqKnQLecXdRFMQFL", - "CPg85jShyN1Tez437qgR1jYbF43i8aWhTMWpbPCJoJqE", - "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb", - "So11111111111111111111111111111111111111112", - "EyzgnBfHGe9hh169B8993muBVcoeURCnSgPbddBeSybo", - "d2jwtX1E47jw4EwxPK9VSVCmQsQpu4tzniNkzk43rF3" - ], - "data": "E73fXHPWvSR1nM1Tw5ZRioYHwnqN3caKH", - "programId": "CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C", - "stackHeight": null - }, - { - "parsed": { - "info": { - "account": "GscCpwDVJfJ9Qv1svzLWpend7hvJq3Syrfuwe5YzHbtp", - "destination": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA", - "owner": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA" - }, - "type": "closeAccount" - }, - "program": "spl-token", - "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", - "stackHeight": null - }, - { - "parsed": { - "info": { - "destination": "ADuUkR4vqLUMWXxW9gh6D6L8pMSawimctcNZ5pGwDcEt", - "lamports": 20000, - "source": "6FwAyRbvKwY4uAzgeWaXUHEqfSDaFcdcZsbBh1TQtnuA" - }, - "type": "transfer" - }, - "program": "system", - "programId": "11111111111111111111111111111111", - "stackHeight": null - } - ], - "recentBlockhash": "BRRXvTHndixZBzAacVfLkCfXX8X4jzrWdd9WKKsmTKG3" - }, - "signatures": [ - "bVwuWqLs5wbHMHMavFfpK6zrg3mGY6AWVTNgdeDuWi1PxmFgvQYQJBMMcYp16fmJE9hwg4nNjDFok4rxmxQ6j5e", - "3mSzNawWNP75KjSH3yyLyydBWaeEV7nJsWNHzJy5ThN4h2sv1vBbygwbLeRFU9zuoeBDVfqdU1tPpH2G9m8eFUFp" - ] - }, - "version": 0 - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/gettransactioncount.mdx b/services/reference/solana/json-rpc-methods/gettransactioncount.mdx deleted file mode 100644 index 65ece086842..00000000000 --- a/services/reference/solana/json-rpc-methods/gettransactioncount.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: 'getTransactionCount' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getTransactionCount` - -Returns the current transaction count from the ledger. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: (integer) _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` (integer): The current transaction count. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result":394414196266, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getversion.mdx b/services/reference/solana/json-rpc-methods/getversion.mdx deleted file mode 100644 index d3e65123938..00000000000 --- a/services/reference/solana/json-rpc-methods/getversion.mdx +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: 'getVersion' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getVersion` - -Returns the Solana version running on the node. - -## Parameters - -None - -## Returns - -`result` - An object with the following fields: - -- `solana-core` - The version of the Solana core software. -- `feature-set` - ID of the software's feature set. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getVersion"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result": { - "feature-set":3271415109, - "solana-core":"2.1.16" - }, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/getvoteaccounts.mdx b/services/reference/solana/json-rpc-methods/getvoteaccounts.mdx deleted file mode 100644 index 01f2348fbac..00000000000 --- a/services/reference/solana/json-rpc-methods/getvoteaccounts.mdx +++ /dev/null @@ -1,111 +0,0 @@ ---- -title: 'getVoteAccounts' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `getVoteAccounts` - -Returns the account info and associated stake for all the voting accounts in the current bank. - -## Parameters - -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `votePubkey`: (string) _[optional]_ - The `base58` encoded public key of the validator vote account to return results for. - - `keepUnstakedDelinquents`: (boolean) _[optional]_ - If `true`, the response includes all delinquent - accounts, even if they are not staked. - - `delinquentSlotDistance`: (integer) _[optional]_ - The number of slots that a validator must be behind to be considered delinquent. - It's not recommended to specify this parameter. - -## Returns - -`result` - An object of current and delinquent voting accounts with the following fields: - -- `current` - An array of objects with the following fields: - - `activatedStake` - The amount of stake in lamports delegated to this vote account. - - `commission` - The commission rate for the validator as a percentage (0 - 100). - - `epochCredits` - An array of arrays containing the epoch, credits earned, and previous credits earned. - - `epochVoteAccount` - A boolean indicating if the account is staked for the current epoch. - - `lastVote` - The most recent slot voted on by this vote account. - - `nodePubkey` - The public key of the validator. - - `rootSlot` - The root slot number. - - `votePubkey` - The public key of the vote account. -- `delinquent` - An array of objects with the same fields as `current`, but for delinquent accounts. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","id":1, "method":"getVoteAccounts"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "current": [ - { - "activatedStake": 21728348612276, - "commission": 0, - "epochCredits": [ - [ - 767, - 552326409, - 545429728 - ], - [ - 768, - 559219285, - 552326409 - ], - [ - 769, - 566108108, - 559219285 - ], - [ - 770, - 573001980, - 566108108 - ], - [ - 771, - 577049781, - 573001980 - ] - ], - "epochVoteAccount": true, - "lastVote": 333325355, - "nodePubkey": "W1FAbXyQJ5iPghy12TqPktwobU5kTD73ZjA6QZCvsRp", - "rootSlot": 333325324, - "votePubkey": "DXjujkbMhAvkaygmjLbi7UGdovAs2AU6y45UMEqxhEnw" - }, - ... - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/index.md b/services/reference/solana/json-rpc-methods/index.md deleted file mode 100644 index 38e3914a65d..00000000000 --- a/services/reference/solana/json-rpc-methods/index.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -title: 'JSON-RPC methods' -description: Supported methods on the Solana network. -sidebar_key: solana-json-rpc-api ---- - -# JSON-RPC API - -:::note Decentralized Infrastructure Network (DIN) -Solana is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](../../solana/index.md#partners-and-privacy-policies). - -::: - -Infura supports the standard Solana API methods and the -[Digital Asset Standard (DAS) API methods](./digital-asset-standard/index.md) -used to query digital assets. diff --git a/services/reference/solana/json-rpc-methods/isblockhashvalid.mdx b/services/reference/solana/json-rpc-methods/isblockhashvalid.mdx deleted file mode 100644 index 98623989449..00000000000 --- a/services/reference/solana/json-rpc-methods/isblockhashvalid.mdx +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: 'isBlockhashValid' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `isBlockhashValid` - -Returns whether a block hash is still valid. - -## Parameters - -- `blockhash`: (string) _[requiredl]_ - The `base58` encoded hash of the block. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `epoch`: (integer) _[optional]_ - The epoch for which to query the rewards. If not specified, the current epoch is used. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - `true` if the block hash is still valid; otherwise `false`. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":1, "method":"isBlockhashValid", "params":["4JsC66MuiW8EbromjB3h64NmZQAH24rAWxwK5raQFTt9", {"commitment":"processed"}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result": { - "context": { - "apiVersion":"2.1.16", - "slot":333329792 - }, - "value":false - }, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/minimumledgerslot.mdx b/services/reference/solana/json-rpc-methods/minimumledgerslot.mdx deleted file mode 100644 index afeda75f31a..00000000000 --- a/services/reference/solana/json-rpc-methods/minimumledgerslot.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: 'minimumLedgerSlot' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `minimumLedgerSlot` - -Returns the lowest slot that the node has information about in its ledger. - -## Parameters - -None - -## Returns - -`result` (integer): The lowest slot that the node has information about in its ledger. - -### Request - - - - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id":1, "method":"minimumLedgerSlot"}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result":333274647, - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/requestairdrop.mdx b/services/reference/solana/json-rpc-methods/requestairdrop.mdx deleted file mode 100644 index d62bf415f80..00000000000 --- a/services/reference/solana/json-rpc-methods/requestairdrop.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: 'requestAirdrop' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `requestAirdrop` - -Requests an airdrop of lamports to a specified account. - -:::info -This method doesn't work on mainnet. -::: - -## Parameters - -- `address`: (string) _[required]_ - The `base-58` encoded public key of the receiving account. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - -## Returns - -`result` - The transaction signature of the airdrop. - -### Request - - - - -```bash -curl https://solana-testnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id":1, "method":"requestAirdrop", "params": ["83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri", 100000]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result":"3Q51CirQ3eyysjpbe2FmPgMMpnaTdcY6MGpKUhuZ7TBcWZFHvNB5QMwy5Z5LYy78K4rtYFo78ozw9zxkZgYJMm3D", - "id":1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/sendtransaction.mdx b/services/reference/solana/json-rpc-methods/sendtransaction.mdx deleted file mode 100644 index 83bdbe3f15d..00000000000 --- a/services/reference/solana/json-rpc-methods/sendtransaction.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: 'sendTransaction' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `sendTransaction` - -Submits a pre-signed transaction to the cluster for processing. - -## Parameters - -- `transaction`: (string) _[required]_ - The transaction as an encoded string. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58` (deprecated) or `base64`. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - - `skipPreflight`: (boolean) _[optional]_ - If `true`, skips the preflight check. The default is `false`. - - `preflightCommitment`: (string) _[optional]_ - The commitment level to use for the preflight check. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `maxRetries`: (integer) _[optional]_ - The maximum number of retries for the transaction. If this parameter - is not provided, the RPC node will retry the transaction until it is finalized or until the block hash expires. - -## Returns - -`result` (string) - The first transaction signature embedded in the transaction, as a `base58` encoded string (transaction ID). - -### Request - - - - -```bash -curl https://solana-testnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "sendTransaction", "params": ["4hXTCkRzt9WyecNzV1XPgCDfGAZzQKNxLXgynz5QDuWWPSAZBZSHptvWRL3BjCvzUXRdKvHL2b7yGrRQcWyaqsaBCncVG7BFggS8w9snUts67BSh3EqKpXLUm5UMHfD7ZBe9GhARjbNQMLJ1QD3Spr6oMTBU6EhdB4RD8CP2xUxr2u3d6fos36PD98XS6oX8TQjLpsMwncs5DAMiD4nNnR8NBfyghGCWvCVifVwvA8B8TJxE1aiyiv2L429BCWfyzAme5sZW8rDb14NeCQHhZbtNqfXhcp2tAnaAT"]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc":"2.0", - "result": "2id3YC2jK9G5Wo2phDx4gJVAew8DcY5NAojnVuao8rkxwPYPe8cSwE5GzhEgJA2y8fVjDEo6iR6ykBvDxrTQrtpb", - "id": 1 -} -``` - - - diff --git a/services/reference/solana/json-rpc-methods/simulatetransaction.mdx b/services/reference/solana/json-rpc-methods/simulatetransaction.mdx deleted file mode 100644 index 8d781310c0d..00000000000 --- a/services/reference/solana/json-rpc-methods/simulatetransaction.mdx +++ /dev/null @@ -1,107 +0,0 @@ ---- -title: 'simulateTransaction' ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' -import CreditCost from '@site/src/components/CreditCost/CreditCostPrice.js' - -# `simulateTransaction` - -Simulate sending a transaction. - -This method is useful for testing and debugging transactions before sending them to the network. - -## Parameters - -- `transaction`: (string) _[required]_ - The transaction as an encoded string. The transaction must have a valid - block hash, but doesn't need to be signed. -- `config`: (object) _[optional]_ - Configuration object with the following options: - - `commitment`: (string) _[optional]_ - The commitment level to use for the query. The default is `finalized`. Possible values are: - - `finalized` - Queries the most recent block confirmed by a super majority of the cluster as having - reached maximum lockout, meaning the cluster has recognized this block as finalized. - - `confirmed` - Queries the most recent block that has been voted on by a super majority of the cluster. - - `processed` - Queries its most recent block. The block may still be skipped by the cluster. - - `sigVerify`: (boolean) _[optional]_ - If `true`, verifies the signatures in the transaction. - Conflicts with `replaceRecentBlockhash`. The default is `false`. - - `replaceRecentBlockhash`: (boolean) _[optional]_ - If `true`, replaces the recent block hash in the transaction with the - latest block hash. Conflicts with `sigVerify`. The default is `false`. - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58` (deprecated) or `base64`. - - `minContextSlot`: _[optional]_ - The minimum slot to use for the query. - - `innerInstructions`: (boolean) _[optional]_ - If `true`, returns the inner instructions of the transaction. - The inner instructions will be `jsonParsed` where possible, otherwise `json`. - - `accounts`: (object) _[optional]_ - An object containing the following fields: - - `addresses`: (array) _[optional]_ - An array of addresses to include in the response. - - `encoding`: (string) _[optional]_ - The encoding format to use. Can be one of `base58`, `base64`, `base64+zstd`, - or `jsonParsed`. - -## Returns - -`result` - `null` if the account doesn't exist; otherwise an object with the following fields: - -- `context` - An object containing the following keys: - - `slot` - The slot number of the block that was queried. - - `apiVersion` - The API version used for the query. -- `value` - An object with the following fields: - - `err` - An error if transaction failed, `null` if transaction succeeded. - - `logs` - An array of log messages generated by the transaction. Returns `null` if the simulation failed. - - `accounts` - - - `data` - The account data, encoded in the specified format. - - `executable` - A boolean indicating whether the account is executable. - - `lamports` - The number of lamports in the account. - - `owner` - The public key of the program that owns the account. - - `rentEpoch` - The epoch in which the account will next be due for rent. - - `space` - The size of the account data in bytes. - - `unitsConsumed` - The number of compute units consumed by the transaction. - - `returnData` - An array of objects containing the following fields: - - `programId` - The public key of the program that executed the transaction. - - `data` - The account data, encoded as `base64` binary data. - - `innerInstructions` - An array of [inner instructions](https://solana.com/docs/rpc/json-structures#inner-instructions). - -### Request - - - - -```bash -curl https://solana-testnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "simulateTransaction", "params": ["AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArczbMia1tLmq7zz4DinMNN0pJ1JtLdqIJPUw3YrGCzYAMHBsgN27lcgB6H2WQvFgyZuJYHa46puOQo9yQ8CVQbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCp20C7Wj2aiuk5TReAXo+VTVg8QTHjs0UjNMMKCvpzZ+ABAgEBARU=", {"encoding": "base64"}]}' -``` - - - - -### Response - - - - -```bash -{ - "jsonrpc": "2.0", - "result": { - "context": { "slot": 218 }, - "value": { - "err": null, - "accounts": null, - "logs": [ - "Program 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri invoke [1]", - "Program 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri consumed 2366 of 1400000 compute units", - "Program return: 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri KgAAAAAAAAA=", - "Program 83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri success" - ], - "returnData": { - "data": ["Kg==", "base64"], - "programId": "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri" - }, - "unitsConsumed": 2366 - } - }, - "id": 1 -} -``` - - - diff --git a/services/reference/solana/quickstart.md b/services/reference/solana/quickstart.md deleted file mode 100644 index 9aef6e5f9a6..00000000000 --- a/services/reference/solana/quickstart.md +++ /dev/null @@ -1,117 +0,0 @@ ---- -description: Solana quickstart guide -sidebar_position: 2 ---- - -import Banner from '@site/src/components/Banner' - -# Quickstart - -This quickstart guide will help you set up and make calls on the Solana network using the Infura endpoints. - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Solana network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://solana-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "getSlot", "params": [], "id": 1}' -``` - -### JavaScript - -1. Create a project directory, and inside the directory initialize the project: - - ```bash - npm init -y - ``` - -1. In your project directory, [install the latest version of the JavaScript SDK](https://www.npmjs.com/package/@solana/kit). - -1. Create your JavaScript file (`index.js` in this example) and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import { createSolanaRpc } from '@solana/kit' - - const rpc = createSolanaRpc('https://solana-mainnet.infura.io/v3/') - - async function fetchCurrentSlot() { - try { - const slot = await rpc.getSlot().send() - console.log('Current slot:', slot) - } catch (error) { - console.error('Error fetching slot:', error) - } - } - - fetchCurrentSlot() - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Rust - -1. Create a project directory, and inside the directory initialize the project: - - ```bash - cargo init - ``` - -1. In your project directory, [install the Rust dependencies](https://www.npmjs.com/package/@solana/kit). - - ```bash - cargo add solana-sdk solana-client - ``` - -1. In the `src/main.rs` paste the following code: - - Replace `` with your actual Infura API key. - - ```rust title="main.rs" - use solana_client::rpc_client::RpcClient; - - fn main() { - let url = "https://solana-mainnet.infura.io/v3/"; - let client = RpcClient::new(url.to_string()); - - match client.get_slot() { - Ok(slot) => println!("Current slot: {}", slot), - Err(err) => eprintln!("Error fetching slot: {}", err), - } - } - ``` - -1. Run the code using the following command: - - ```bash - cargo run - ``` - -## Next steps - -Now that you have successfully made a call to the Solana network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Solana APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/starknet/index.md b/services/reference/starknet/index.md deleted file mode 100644 index e44d0738db2..00000000000 --- a/services/reference/starknet/index.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -description: Starknet network information. ---- - -import CardList from '@site/src/components/CardList' - -# Starknet - -:::note Decentralized Infrastructure Network (DIN) - -Starknet is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to a [partner infrastructure provider](#partner-and-privacy-policy). - -::: - -Starknet is a decentralized, permissionless and scalable Layer-2 network protocol developed by StarkWare for the Ethereum -network. It leverages zk-STARKs technology for scalability and privacy, allowing developers to build and deploy smart contracts -that can perform more computations than on Ethereum's base layer, while maintaining a high level of security and decentralization. - -:::info see also - -See the [Starknet documentation](https://docs.starknet.io/) to find out more. You can also watch an -[Introduction to Starknet](https://www.youtube.com/watch?v=eL9le56gcS0). - -::: - - - -## Partner and privacy policy - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partners provide access to Starknet: - - - -- Bware Labs ([Terms of Service](https://bwarelabs.com/terms), [Privacy Policy](https://bwarelabs.com/privacy)) -- Chainstack ([Terms of Service](https://chainstack.com/tos/), [Privacy Policy](https://chainstack.com/privacy/)) - diff --git a/services/reference/starknet/json-rpc-methods/index.md b/services/reference/starknet/json-rpc-methods/index.md deleted file mode 100644 index b9212093914..00000000000 --- a/services/reference/starknet/json-rpc-methods/index.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: Starknet JSON-RPC API -description: Starknet JSON-RPC API methods. -sidebar_label: JSON-RPC API -sidebar_key: starknet-json-rpc-api ---- - -# Starknet JSON-RPC API - -Infura supports a subset of the [Starknet API methods](https://github.com/starkware-libs/starknet-specs/). - -The following Starknet methods are not supported: - -- `starknet_estimateMessageFee` -- `starknet_getBlockWithReceipts` -- `starknet_getTransactionStatus` -- `starknet_traceBlockTransactions` -- `starknet_traceTransaction` diff --git a/services/reference/starknet/json-rpc-methods/starknet_adddeclaretransaction.mdx b/services/reference/starknet/json-rpc-methods/starknet_adddeclaretransaction.mdx deleted file mode 100644 index 267c7dc66df..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_adddeclaretransaction.mdx +++ /dev/null @@ -1,107 +0,0 @@ ---- -title: starknet_addDeclareTransaction -sidebar_label: starknet_addDeclareTransaction ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_addDeclareTransaction` - -Submits a new class declaration transaction. - -## Parameters - -`declare_transaction`: [*Required*] A -[declare transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/#declare-transaction) -object to declare a new class on Starknet. - -## Returns - -The result of the transaction submission, including: - -- `transaction_hash`: The hash of the declare transaction. -- `class_hash`: The hash of the declared class. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_addDeclareTransaction", - "params": { - "declare_transaction": { - "type": "DECLARE", - "sender_address": "0x13e3ca9a377084c37dc7eacbd1d9f8c3e3733935bcbad887c32a0e213cd6fe0", - "max_fee": "0x28ed6103d0000", - "version": "0x3", - "signature": [ - "0x42527ffe9912b338983cbed67e139cfcc26a4d8cf1d1c2a85e4125fdf5f59ed", "0x636147d06fefd02ed37984b752556d4b9aefdac1a50b3df0528ec7c201ad84b" - ], - "nonce": "0x17", - "contract_class": { - "sierra_program": [ - "0x1", - "0x3", - "0x0", - "0x361", - "0x800000000000000700000000000000000000000000000000", - "0x537472756374" - ] - "entry_points_by_type": { - "CONSTRUCTOR": [ - { - "function_idx": 14, - "selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194" - } - ], - "EXTERNAL": [ - { - "function_idx": 11, - "selector": "0x14dfa38c36b389189b8be0b1d3f9434ffcca49bf1a88f3658579d23d16368f" - }, - { - "function_idx": 10, - "selector": "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4" - } - ], - "L1_HANDLER": [] - } - } - } - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "transaction_hash": "0x121aaba2894a63cce81acabb559eb2c114f4859dc5803e0b91349ec398d2eb0", - "class_hash": "0x515dd668a1798214e7ca9ec90c52e267229b8104fb296a90f20b6f70baaef53" - }, - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_adddeployaccounttransaction.mdx b/services/reference/starknet/json-rpc-methods/starknet_adddeployaccounttransaction.mdx deleted file mode 100644 index 0a743e221d3..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_adddeployaccounttransaction.mdx +++ /dev/null @@ -1,97 +0,0 @@ ---- -title: starknet_addDeployAccountTransaction -sidebar_label: starknet_addDeployAccountTransaction ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_addDeployAccountTransaction` - -Submits a new deploy account transaction. - -## Parameters - -`deploy_account_transaction`: [*Required*] A -[deploy account transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/#deploy_account_transaction) -object to deploy a new account contract on Starknet. - -## Returns - -The result of the transaction submission, including: - -- `transaction_hash`: The hash of the deploy account transaction. -- `contract_address`: The address of the new contract. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_addDeployAccountTransaction", - "params": { - "deploy_account_transaction": { - "type": "DEPLOY_ACCOUNT", - "version": "0x3", - "signature": [ - "3557065757165699682249469970267166698995647077461960906176449260016084767701", - "3202126414680946801789588986259466145787792017299869598314522555275920413944" - ], - "nonce": "0x7", - "contract_address_salt": "0x23371b227eaecd8e8920cd429d2cd0f3fee6abaacca08d3ab82a7cdd", - "class_hash": "0x23371b227eaecd8e8920cd429d2cd0f3fee6abaacca08d3ab82a7cdd", - "constructor_calldata": [ - "0x1", - "0x677bb1cdc050e8d63855e8743ab6e09179138def390676cc03c484daf112ba1", - "0x362398bec32bc0ebb411203221a35a0301193a96f317ebe5e40be9f60d15320", - "0x0", - "0x1", - "0x1", - "0x2b", - "0x0" - ], - "resource_bounds": { - "l1_gas": "0x28ed6103d0000", - "l2_gas": "0x28ed6103d0000", - }, - "tip": "0x0", - "paymaster_data": [], - "nonce_data_availability_mode": "L1", - "fee_data_availability_mode": "L1" - } - }, - "id": 1 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "transaction_hash": "0x1ce0d76c0c085306fd32679b75f9541fab71851da8d3e3898a691b49ed8175c", - "contract_address": "0x03b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558" - }, - "id": 1 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_addinvoketransaction.mdx b/services/reference/starknet/json-rpc-methods/starknet_addinvoketransaction.mdx deleted file mode 100644 index 3d1b19b8317..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_addinvoketransaction.mdx +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: starknet_addInvokeTransaction -sidebar_label: starknet_addInvokeTransaction ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_addInvokeTransaction` - -Submits a new invoke transaction. - -## Parameters - -`invoke_transaction`: [*Required*] An -[invoke transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/#invoke_transaction) -object to invoke an existing contract function on Starknet. - -## Returns - -The result of the transaction submission, containing `transaction_hash`, the hash of the invoke transaction. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_addInvokeTransaction", - "params": { - "invoke_transaction": { - "type": "INVOKE", - "sender_address": "0x13e3ca9a377084c37dc7eacbd1d9f8c3e3733935bcbad887c32a0e213cd6fe0", - "calldata": [ - "0x1", - "0x677bb1cdc050e8d63855e8743ab6e09179138def390676cc03c484daf112ba1", - "0x362398bec32bc0ebb411203221a35a0301193a96f317ebe5e40be9f60d15320", - "0x0", - "0x1", - "0x1", - "0x2b", - "0x0" - ], - "version": "0x3", - "signature": [ - "3557065757165699682249469970267166698995647077461960906176449260016084767701", - "3202126414680946801789588986259466145787792017299869598314522555275920413944" - ], - "nonce": "0x7", - "resource_bounds": { - "l1_gas": "0x28ed6103d0000", - "l2_gas": "0x28ed6103d0000" - }, - "tip": "0x0", - "paymaster_data": [], - "account_deployment_data": [], - "nonce_data_availability_mode": "L1", - "fee_data_availability_mode": "L1" - } - }, - "id": 1 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "transaction_hash": "0x1ce0d76c0c085306fd32679b75f9541fab71851da8d3e3898a691b49ed8175c" - }, - "id": 1 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_blockhashandnumber.mdx b/services/reference/starknet/json-rpc-methods/starknet_blockhashandnumber.mdx deleted file mode 100644 index 049c4f24f47..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_blockhashandnumber.mdx +++ /dev/null @@ -1,60 +0,0 @@ ---- -title: starknet_blockHashAndNumber -sidebar_label: starknet_blockHashAndNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_blockHashAndNumber` - -Returns the block hash and number of the most recent accepted block. - -## Parameters - -None. - -## Returns - -An object containing: - -- `block_hash`: The latest block hash. -- `block_number`: The latest block number. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"starknet_blockHashAndNumber","params":[],"id":0}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "block_hash": "0x1ba5d3910676f8383a1c472f1092a77cbe438b108face7873e0407ceee8da1e", - "block_number": 4504 - }, - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_blocknumber.mdx b/services/reference/starknet/json-rpc-methods/starknet_blocknumber.mdx deleted file mode 100644 index de335d4ab14..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_blocknumber.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: starknet_blockNumber -sidebar_label: starknet_blockNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_blockNumber` - -Returns the block number of the most recent accepted block. - -## Parameters - -None. - -## Returns - -The latest block number. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"starknet_blockNumber","params":[],"id":0}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": 4504, - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_call.mdx b/services/reference/starknet/json-rpc-methods/starknet_call.mdx deleted file mode 100644 index 300148b170c..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_call.mdx +++ /dev/null @@ -1,77 +0,0 @@ ---- -title: starknet_call -sidebar_label: starknet_call ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_call` - -Calls the specified contract function at the specified block, and returns the value of the function, -without creating a Starknet transaction. -This method does not change the network state. - -## Parameters - -- `request`: [*Required*] The function call object containing: - - `contract_address`: (string) [*Required*] Address the transaction is sent from. - - `entry_point_selector`: (string) [*Required*] Smart contract entry point selector. - - `calldata`: (array of strings) [*Required*] The parameters passed to the function. -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. - -## Returns - -The function's return value. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_call", - "params": { - "request": { - "contract_address": "0x049E0cCb70e1F1684F43116e9E42e60D0f64d3D254Be8D8A1143dba43dEad733", - "calldata": ["0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"], - "entry_point_selector": "0x12ead94ae9d3f9d2bdb6b847cf255f1f398193a1f88884a0ae8e18f24a037b6" - }, - "block_id": { - "block_number": 470207 - } - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": [], - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_chainid.mdx b/services/reference/starknet/json-rpc-methods/starknet_chainid.mdx deleted file mode 100644 index 3fa3c3d8e8e..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_chainid.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: starknet_chainId -sidebar_label: starknet_chainId ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_chainId` - -Returns the currently connected Starknet chain ID. - -## Parameters - -None. - -## Returns - -The current chain ID in hexadecimal format. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"starknet_chainId", "params":[], "id":0}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x534e5f4d41494e", - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_estimatefee.mdx b/services/reference/starknet/json-rpc-methods/starknet_estimatefee.mdx deleted file mode 100644 index 6948b365a94..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_estimatefee.mdx +++ /dev/null @@ -1,107 +0,0 @@ ---- -title: starknet_estimateFee -sidebar_label: starknet_estimateFee ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_estimateFee` - -Returns an estimate of the fee required for the network to process the specified transactions, at -the specified block. - -## Parameters - -- `request`: (array) [*Required*] A sequence of - [Starknet transactions](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/) - to estimate gas fees for. - If multiple transactions are provided, each transaction is simulated on the state resulting from - applying the previous transactions. -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. - -## Returns - -A sequence of fee estimates corresponding to the sequence of requested transactions. -Each fee estimate object contains: - -- `gas_consumed`: The Ethereum gas consumption of the transaction. -- `gas_price`: The gas price (in gwei) that was used in the cost estimation. -- `overall_fee`: The estimated fee for the transaction (in gwei), product of `gas_consumed` and `gas_price`. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_estimateFee", - "params": { - "request": [{ - "type": "INVOKE", - "max_fee": "0x28ed6103d0000", - "version": "0x1", - "signature": [ - "0x42527ffe9912b338983cbed67e139cfcc26a4d8cf1d1c2a85e4125fdf5f59ed", "0x636147d06fefd02ed37984b752556d4b9aefdac1a50b3df0528ec7c201ad84b" - ], - "sender_address": "0x13e3ca9a377084c37dc7eacbd1d9f8c3e3733935bcbad887c32a0e213cd6fe0", - "calldata": [ - "0x2", - "0x57c4b510d66eb1188a7173f31cccee47b9736d40185da8144377b896d5ff3", - "0x2f0b3c5710379609eb5495f1ecd348cb28167711b73609fe565a72734550354", - "0x0", - "0x1", - "0x57c4b510d66eb1188a7173f31cccee47b9736d40185da8144377b896d5ff3", - "0x2f0b3c5710379609eb5495f1ecd348cb28167711b73609fe565a72734550354", - "0x1", - "0x1", - "0x2", - "0x0", - "0x1" - ], - "nonce": "0x1" - }], - "block_id": { - "block_number": 59999 - } - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": [ - { - "gas_consumed": "0x41de", - "gas_price": "0x67edb4f57", - "overall_fee": "0x1abd7b153e472" - } - ], - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getblocktransactioncount.mdx b/services/reference/starknet/json-rpc-methods/starknet_getblocktransactioncount.mdx deleted file mode 100644 index df86bf64602..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getblocktransactioncount.mdx +++ /dev/null @@ -1,67 +0,0 @@ ---- -title: starknet_getBlockTransactionCount -sidebar_label: starknet_getBlockTransactionCount ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getBlockTransactionCount` - -Returns the number of transactions in the specified block. - -## Parameters - -`block_id`: [*Required*] The block parameter object containing one of the following: - -- `block_hash`: (string) Block hash. -- `block_number`: (integer) Decimal block number. -- One of the string tags `latest` or `pending`. - -## Returns - -Number of transactions in the requested block. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getBlockTransactionCount", - "params": { - "block_id": { - "block_number": 470207 - } - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": 148, - "id": 1 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getblockwithtxhashes.mdx b/services/reference/starknet/json-rpc-methods/starknet_getblockwithtxhashes.mdx deleted file mode 100644 index fa81865abec..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getblockwithtxhashes.mdx +++ /dev/null @@ -1,247 +0,0 @@ ---- -title: starknet_getBlockWithTxHashes -sidebar_label: starknet_getBlockWithTxHashes ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getBlockWithTxHashes` - -Returns block information of the specified block, including a list of transaction hashes. - -## Parameters - -`block_id`: [*Required*] The block parameter object containing one of the following: - -- `block_hash`: (string) Block hash. -- `block_number`: (integer) Decimal block number. -- One of the string tags `latest` or `pending`. - -## Returns - -A block object or pending block object containing: - -- `status`: The status of the block (`PENDING`, `ACCEPTED_ON_L2`, `ACCEPTED_ON_L1`, or `REJECTED`). -- `block_hash`: The block hash. - This is not included in a pending block object. -- `parent_hash`: The hash of this block's parent. -- `block_number`: The block number. - This is not included in a pending block object. -- `new_root`: The new global state root. - This is not included in a pending block object. -- `timestamp`: The time at which the block was created. -- `sequencer_address`: The Starknet identity of the sequencer submitting this block. -- `l1_gas_price`: The price of L1 gas in the block. - An object containing `price_in_fri` (gas price denominated in fri) or `price_in_wei` (gas price - denominated in wei). -- `starknet_version`: Version of the current Starknet protocol. -- `transactions`: An array of transaction hashes included in this block. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getBlockWithTxHashes", - "params": { - "block_id": { - "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4" - } - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "status": "ACCEPTED_ON_L2", - "block_hash": "0x18ec1a3931bb5a286f801a950e1153bd427d6d3811591cc01e6f074615a1f76", - "parent_hash": "0x413229e9996b3025feb6b276a33249fb0ff0f92d8aeea284deb35ea4093dea2", - "block_number": 4503, - "new_root": "0xc95a878188acf408e285027bd5e7674a88529b8c65ef6c1999b3569aea8bc8", - "timestamp": 1661246333, - "sequencer_address": "0x5dcd266a80b8a5f29f04d779c6b166b80150c24f2180a75e82427242dab20a9", - "l1_gas_price": { - "price_in_wei": "0xab3d3c644" - }, - "starknet_version": "0.12.2", - "transactions": [ - "0x6a19b22f4fe4018d4d60ff844770a5459534d0a69f850f3c9cdcf70a132df94", - "0x5fb5b63f0226ef426c81168d0235269398b63aa145ca6a3c47294caa691cfdc", - "0x7af3c8de416f943660ac19ff1b12f552897eabc8316807320cddbeadf9bc01e", - "0x2de627287f870f91dfd4e929df03980c994f6ffaa2d1cbf8d0e942fdf0c84d4", - "0x7d1439901f2af25627470e18348787cbee190ae08ea3fac2be9fc3b6357a948", - "0x119986a68f01623d2193ad1e26338b3dcc1f9a8add4503893e30bde7d6b80d1", - "0x19e2e79abfb5495c4d8e7683ea19c918b7c8c2977517de4d232abfc15221d8f", - "0x4e72fd133424d979d5ecca4d36481892bb549ddef779f1bc6340f001a682fe3", - "0x7a7aa878974390c5546550c45fdcd66bd353063c22cff7f6b98211bb415043f", - "0x1d1220e61366b36701332b3b74587443c3d08a3418c2c1fed3db9548b8940ec", - "0x5458747fd956625cd857a4d07f51315b3781f9163b5b7987df59ce821a7d6f7", - "0x402222e40e37eb6579b2785b53c51ce18e5e45a858f7ba1839ef875aa0f6c7f", - "0x3539f55ea7282a543403278bd365f87c5622aa4d497ee56af6cb61ae8ed1d15", - "0x68e8e3015ec6377176a944992fa8e28aab4f68dab07c4dde87bc8167c08ebf6", - "0x47b3ff195d403d5197a9114055274f12181c56b3095aa6dfa1fa1e0e2ec27f6", - "0x465ef3fd70dcc90adee9ae232935a83dd5c41e67c6b6fab6d5dbfe84fbd75c2", - "0x305de8770bbbee4a09e22621b91d1f3ee9a81a07646a09fa9dfbbea296c152f", - "0x4f8811a176b673fec7b56621dab0bff369f4463588aaf69cb6570956e10c25a", - "0x3d77c910504507c826768091fe743533fdc9a8707e3043303a65f626f540ab0", - "0x6d27aac48f79fc959a09f552d3327d30ea51bd0d1fb0dbb1e7e79eb0ae99077", - "0x1972a1cb17120d32cd598e516672b31350163408fbb16cafe80389a83047755", - "0x4907cf31e42fc59bb8e2ea6113b0ef8c3c70b092aa5ef72e64cd9c96ad3cb3e", - "0x12dfaa3fc3a275cf2160f1b98403ddcc18a3e05a2c5cd9caf77009a0fa09992", - "0x91354783b608a433cf98d19edb6639db9ba411cbe624a9d5aeb76345498ccc", - "0x74e6323b9a458566bf2939fa2eab72a06ae9c61b173ef67a9331d0bbd746e", - "0x1b061e37822c7233045c6750e4a5155730d24b5c530c50bb1e4fd682b5304c9", - "0x226fed48f1add6d3ad5a85be4e2c2032b0218a6428e6a9c131e39f7cd46f76f", - "0x55d830026b39f839cc7c309c3a70a01ac8a72224571da9ad17cebb2fc885695", - "0x724cc4e4d9e24143abb7307208123577c7e36c37b977e4b56289b89bed7179f", - "0xe7055b5f28f258df552694dcefea9dad076f1dedb053f4fdd7a1fc616c88f0", - "0x5a2d0b0159078f4e05b440990c5035c530fe462e01bea690aad40fa88055da7", - "0xe95220158ac886ef53014504d0abe85285c29c9619bfe120e123116e12db67", - "0x41d2032e3cc6e44a4148b489781156e86fdf060988fc05567150a964a0cf2a0", - "0x23685839dac61dd10bc1ce09653549adfd4f5e271fa003446742868e9a05d17", - "0x1879fb020ecb591e824316103107c912f1ea9b7ebe3826db8946ac899aae067", - "0x79a40be06ba57890040b900cc77693082cead101de7047ba5ca75fb662f583c", - "0x53f11d85ee1e250e0047b3d9a7e2d64e410165ef6279662686a68f32a2b7c9d", - "0x55ba4f854a49fe915e97a120dca973d3e86b6cc846497487fd075ee0ea66b0", - "0x913c67b1e4001a3b40443ea3ad736b56c5afb68b9304b21f936dfa4ca2bc74", - "0x1fd7dc1d327547b100e28f55a74ec40a96c5e645afc456ee8616614480989ff", - "0x5ad1db62e4824188c06568eabd1f6f60673d3c24e8335437d3a90ddce208e29", - "0x34bf36c31b3e44b4c2e76ed4243c8d83f66681f8d97b48a958c54026a0bba9d", - "0x3917638733704590bb38dd4e264dd50fa97861d4b3289762f492c39237a1c67", - "0x19466a532ba216c84ea9f56dd4f7a5cb37d491612fc8197068e3ae7eb3e4d24", - "0x3aec8bfe1601ed9e84cd374a3d7b4522d368dd81d59f9f7eed24a0977e16a63", - "0x15cc76efede4779e0626cc9455b870dbd3c39023a6a3d5b343953eb1da7423", - "0x145f16e44be68a0a56e1c5fed55db411c1caac022a2daeb91323d845059c690", - "0x973674f1b71a6329b354f5533c8e0a9a1a59cff4fb8714bb8314418af22fe1", - "0x39fe0e652cc0cddd7936924f64641170aeca4fe690058c02f2df54f41b38962", - "0x3a32d48539508c865cbca3bb6648825c9641425fc9554be2dea6376db80e159", - "0x53f11e55a96e3a809667d5758d2604baf0dca32e2a9baa0aefdce5fda392020", - "0x39b03ae51f182195fa9ee4aa361afbbdc7ada31f467d8c4b793e90add2b60c7", - "0x6cdd403ebc3acb2218523f3311024a31731b16d9985b875c7589cce6bc1595d", - "0x25755bf3e49a8c911c431f7ae8d16ac20a6275bb95fabac8a30212a560aeca3", - "0x3b77efc5725186b67dcbb939b513b8471a7c3a1af84e67d0dffefd1b6f0fc37", - "0xaed67850897d736381002a877474ff5a30d0e1e6b72dc1ff79dc42d4aa358a", - "0x61e1c3b2735d81133236f81fe2b9855966a30381ede8c6711bfb22b184e0c38", - "0x2a91aebdf9346ce984426fb5b72fdb58636e14c903cdd9670a656d60c86e08d", - "0x5dd6a1941c3b4ae2442b24db1527955459850a48920369306b6e5c9af431a27", - "0x5ecf3fde654402b72cccca619051b73150149a992ffad2f8614814267ba81d1", - "0x728559d1ae47d08cb76a97e613cc94aa01380387ef369539254ccdb92ae0379", - "0x6c2acdafb5dad6d64098c65b1cd33c74c0fe77d28f6f551245694e3edfabb1", - "0x4088dceb1e51274a41259d8abc2336999f3305a0525e5311fc316e01fe83d45", - "0x21b5c0db57fb61d977aec75bfb9662e63116ed09854744efc86ad48aae58463", - "0x12f22e9091c698bca8fe503aea557e31418a884db2f2ed18bc8b655d391c4af", - "0x4b2a530e1a331b327ded25e9f5e86d101743f0dfba4b5a1a25061557ab2b1ce", - "0x4b60ac7980f64a3a723cc10662f3bd32673addbaca86f12de2ddf12747d215f", - "0xf4c29ec66f689665eb37b5acfbfcaecab9a08a6ea9ea92a4475ea302c0d75d", - "0x3d2df4c4ada5c94949e804691890136d44f5fe462372b45d531a2ba694a5073", - "0x30cbb4d3f5d4d67a9c308576484e7c5232285ea3260b6eed87f64ff40c0b059", - "0x7d724bfc8e81f2d7a6e5e65addfd993acf857780a1a618651a3e170b0b23fd9", - "0x5d5c1c82c1fc35c9405689e6fa7a2c020395af52ce412dce5bf49a212477339", - "0x617af6328e447002109f1c12d5280493ca1a17eb2fad93048113306d949f2f9", - "0x7faecea29d75f5cc1e42216ed2edc07f6b54c600e892d52ad5233a5957a028e", - "0x67b9151ce5334ade1fcdeca59c0e7dc5c6062526b8a8f3ccfa583184e2774d6", - "0x6a0b4cf4cd5fbcce79ea433f8d14127124843a9c84f8dd8ede0879c9e0a8b4a", - "0x50a12f79fac66fc0539433f1cb7aefe3705d944dad28ed9dd364f3596fa3ceb", - "0x4fe426dcae2a30816764c1e247ce1bc1d7842787421cceb1967de5a47f901c7", - "0x2dfac50eaed7ccf19bd09e1a10db43286f5a789ce374a58a56ea77de04cb14e", - "0x1b2b41d01cef36a82330eddb75eae0f6f3e94a4a799b4400d17c86e6ada4657", - "0x6873a856f503f86e4e4bb187c8142966fa030030005b3967371e98836af045f", - "0x59c158d8673ca6f77421cc85e54fa097cda673bc7034ab4f28880e6a645cd25", - "0x61ca47d997b1d73b774200a1ac356a2890ad0a6d0f93e9751d71d0e0f2fba5", - "0x5228f835fb10cc5db551c4c65364ddda6bd1058cfe803f87044d9704caf903a", - "0x5232c402534064fae933db6cc63c50be76a503e1a33dbe32d755f245735cec2", - "0x42d2c06b5a3db9dca6a615e1fe81d2b11b21ee4b4c891c10b70cc63b08c60f8", - "0x9c6a72c3f49032519043915215f92dd5c1914e6ab548c3e3619f70b472a9d1", - "0x50af21e19b12e44bb6cbf9dde901593e16d4708403b096984f1423dd1f07594", - "0x3778c11b029612720e60161d30f47a64a2eebd6b6c714495251ca3231f33873", - "0x48ea633caf5a1eae263216d7e3c33ec7b4c1b10627bd1c37e49789a80112e03", - "0x6298260739f887174e32297e4c9efa0ec6fe0c81a952163c1797016d5d44f7a", - "0x7aba11ae89d8d79010c4e092161a8ab095e9b396ce6596a992a381b78632f57", - "0x431451f7583fcdee2831a12d80d4d57c253a714ae6dd1ec2a53735d4c345f3a", - "0x6cae53f22dbd03d535e430eb0ac90b7b7f541c71306c8413557b6c2d0532b9", - "0x131216a8d9372e571dbe9baa12814faa52740c02ffc1f7653e69d2b86ff7ffb", - "0x76b970d837bc5be03aef97c6385256482e2efde56fed1d7771ebd7760781c4", - "0x65beda587edf5f45734fe239b1fa62e2fb4c8389c8fd0e3c2118886e85d4c2b", - "0x647834320613e4afe139c83be5dd7ddffd3b284bfdade91238fddc31b874ac4", - "0x5ab5d89897e9ed61bb13a80ce8ae470e1c0d9094abd3aa65bd2ee4f40db721c", - "0xf5b414d49b7035bf0ebf978e9f6853bbcfa0c39a5faee86a66f7b66f4d7da0", - "0xcca2ccb142a3e1bd5d2d2011e495f17a53924de5048518bd3195afc29ea1f2", - "0x7168aa7f9412a3b22ce55a10b3514b2a403b382c76d55b81c01c58a938ce507", - "0x4c347cf2a75ec1791c9955367867b691cff13c32beb0963940959baca37775b", - "0x6de3fb7574121333466be710f13e6d317db9a5564d44fa05eff6cbe870ef1bc", - "0x7db10ec88b84dcb96d10d2c8c047fdc9e0fabfab55fb2d218bff4103d75fc5c", - "0x4a9bbf937d5fb24e3bf940f1718cf108340281054380f56a751c9cb23670e25", - "0x78cc5dd5518d0018752a4b167c2612224e412e0a2e430401aac01c736cd035b", - "0x2ef83d51bf4a8c7bfae2899e0cc8b31fdb989f715cc1db2be92e5bfc52c209f", - "0x221d9ff51aba26ba01176fe3553666384f48bf29d125c20a34cf82704de7cec", - "0x3a76adc8d114069ad5c6348e16a288b291fd212fc5d3eed166148690b0bcf80", - "0x7217ca04871b7b39c0e390ec99127f0edca6eb8f992b89a4ec1b35bd78035de", - "0x25a28b54cee6efe4b6b44f25861d2b1e6e0f18b696dd0998663ed034f4fea9", - "0x5708e0fdac5d433fea00163d0d75d0d0f055b392b5055731f76ef4ec1cd8abd", - "0x28ffa60afc8c5a045d455b3a5502d6cc83e95e0950f0cffe426a66f81a7c6cb", - "0x78292dfeb6cc498e7fba715c6cd7b1a1f5212a5601d4e86a200e87606b791ba", - "0x6bd46d7f3bdb4c517aaab3d3967d1a2c6b8e96b0204fb2165dda87ec3360cf", - "0x785e61d8819f322a0f2df63a1c09248af35436f43a673dbd00360216ab1c9c9", - "0x30b0e27832e38146232aa482bf3a7abe22c5310b141b81fb06b53956e018218", - "0x5514a31b2f70b774ffa3bac4b36ab6fc41355fe2dca6c38400c3289adc3bf1a", - "0x3a426adb3769ccfa2b55cfe4bacf5add83fca4853089d4b9cc051e1be257cec", - "0x74172e5f3c485fa76442353377477e095333b1f5a761e4188fb8d02c6c0d1b2", - "0x3a485ff5eae627cbd862c4609dc3fafb028a9f9bb0bc9911fac9d76ff2de9c0", - "0x3b66291ef9b42b8ee29b8370071a7a6ea19bf315535df4db730baab370af4fb", - "0x24b9c0f27934f22b9c7d8bb1b28b7b640403d8beae241342912865774988a0", - "0x351a586cad8bde5ffbde99b7f9ea1d4865439357822608a38b0d8b1479e6358", - "0x1a7bcf9e94fe4cd9c85de1ba0e1b9941c42399054d39c4f519f9fba8dc223de", - "0x21159bcfb54ef6bb52ad93fa631aa36c2424a9747e434818c4bb4722582a713", - "0x188b884c9e507a007c639c4547984b90c1cecc0cf2221e156b1b075b3fb7655", - "0x56d15b44d0640869cd9be489497264e00dd73df5455b003078ff56a98aba149", - "0x2eddfaa325c18d8845ff721b75808216d6ef391160d67c609bc30f59393bf9", - "0x74cb241a323c476dc2287c1754aa75b6156f21e9f93f6df364c97b977683462", - "0x13fed22d5c67af47f9e84e072bf782461f6f682d14235803fd2dc178c1e383e", - "0x439e88605bb0a6e172c3d599257f38140018ea81910a6480ff1b63638ebd268", - "0x1e795281ec4cc4d3e76902a8e713b8355a52fb9c46883169e3dc0e509e374f6", - "0x1ac511e20f9ab384e7c1cb7706c284d06ee1a05d8131ad7cc20341e9c344e32", - "0x2c96bd9bdcd0173d8dd08cb735bb234ba082acab6b956255b627d7e944f9817", - "0xddfd7272311b588c92adf91d75d7352177a55728104b7c745b716e3c2f54b2", - "0x4998af8695aea3e9301f1db32f89101d6725a2b04442b600bf2b71fd9b80449", - "0x4d8f684a8c58df7ef4d1fdb7643d5b34d488363e246d9bf575b7323f0c372f6", - "0x78625b74ad44bb049b0344eb16be7abef9de9aa5fd212ddfee196e8505bba0", - "0x1cfe4e308ce443529962e17d877994ca647c42cc53ff303e02085c70f19f3a5", - "0x7657f6571b83fcdd524d672e4ba178432a60eadbf9683399557a54c3526b1d3", - "0x34da350253263c647dbd153c9eb6186c06f2bfd7b32b8c70786774b14a9157a", - "0x23a0ec2f7faecb95595d19ed28dd9c320835d1aaee7b1d52c1b93d56b92e7cd", - "0x44b8afa4dbfd64240f380390653a59e12f974aee68b52a20cacd3681d143304", - "0x5eb267c6da61f84812fa2776ddcc7f19b920fd9e50cd3096c88cb053acb27f9", - "0x6011b791c3c4e81f3e897f216e524680ebd11686201d9554e2cee2aee0e9ecc", - "0x2a0e8e734bbbf135c7eb094b4ac9566e4b925c8cc155171744ee6c7e175a00f", - "0x1c429d2c8fcf7687063cfdb951afa3da8cb0ffae8fd560058c1813a9e1fbcb8", - "0x121aaba2894a63cce81acabb559eb2c114f4859dc5803e0b91349ec398d2eb0" - ] - }, - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getblockwithtxs.mdx b/services/reference/starknet/json-rpc-methods/starknet_getblockwithtxs.mdx deleted file mode 100644 index ddab993fe1b..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getblockwithtxs.mdx +++ /dev/null @@ -1,1006 +0,0 @@ ---- -title: starknet_getBlockWithTxs -sidebar_label: starknet_getBlockWithTxs ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getBlockWithTxs` - -Returns block information of the specified block, including a list of transaction objects. - -## Parameters - -`block_id`: [*Required*] The block parameter object containing one of the following: - -- `block_hash`: (string) Block hash. -- `block_number`: (integer) Decimal block number. -- One of the string tags `latest` or `pending`. - -## Returns - -A block object or pending block object containing: - -- `status`: The status of the block (`PENDING`, `ACCEPTED_ON_L2`, `ACCEPTED_ON_L1`, or `REJECTED`). -- `block_hash`: The block hash. - This is not included in a pending block object. -- `parent_hash`: The hash of this block's parent. -- `block_number`: The block number. - This is not included in a pending block object. -- `new_root`: The new global state root. - This is not included in a pending block object. -- `timestamp`: The time at which the block was created. -- `sequencer_address`: The Starknet identity of the sequencer submitting this block. -- `l1_gas_price`: The price of L1 gas in the block. - An object containing `price_in_fri` (gas price denominated in fri) or `price_in_wei` (gas price - denominated in wei). -- `starknet_version`: Version of the current Starknet protocol. -- `transactions`: An array of transaction objects included in this block. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getBlockWithTxs", - "params": { - "block_id": { - "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4" - } - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "block_hash": "0x41b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4", - "block_number": 470207, - "l1_gas_price": { - "price_in_wei": "0xab3d3c644" - }, - "new_root": "0x143c3795e04eb3597a0336699ff71419c2a3dee968c0f9306cc90e9413617bc", - "parent_hash": "0x4f7af745d6a3ee450b7c3e601dd352e4d0ec1f7d47804617506135b4a37a670", - "sequencer_address": "0x1176a1bd84444c89232ec27754698e5d2e7e1a7f1539f12027f28b23ec9f3d8", - "starknet_version": "0.12.2", - "status": "ACCEPTED_ON_L2", - "timestamp": 1702635071, - "transactions": [ - { - "calldata": [ - "0xc9", - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", - "0x3", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x2869809251f0000", - "0x0", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f" - ], - "max_fee": "0x2c68af0bb140000", - "nonce": "0xf", - "sender_address": "0x67d96b338b55f1644fc7231a907f738541d6840b03491d74507eb0de40b68c6", - "signature": [ - "0x6fc7dcc4588761e802d03f074529286860dff5c59b16fd221f08397374961eb", - "0x4039c7009b9e251dccd14cd03171f53eb6bad3705bd80d64ffc3ac4a55e521c" - ], - "transaction_hash": "0x4371f723d29a0bfe4143c29f8e12991590c0ae38538e49563ad91540ee6de3", - "type": "INVOKE", - "version": "0x1" - }, - { - "calldata": [ - "0x2", - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", - "0x0", - "0x3", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x3", - "0x1", - "0x4", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x33ba3e2bee000", - "0x0", - "0x434149524f" - ], - "max_fee": "0x38d7ea4c68000", - "nonce": "0x17", - "sender_address": "0x4f5e44a3c0dccdbacf701ba6fe2ac4bef590d4337992e65ae490779db761d66", - "signature": [ - "0x2e2620b94659b5f4725704be47a6178ba0f32a357f32ed52beb8ed4543696d8", - "0x47ee15096d3cc4ab2c2131bda49b4cc649832459d1c64ff5ff0c7444f49fce4" - ], - "transaction_hash": "0x39cbca70da5074f815d18a62ac5c8b83d2ba66547a4a012a2395dff4aaf36b2", - "type": "INVOKE", - "version": "0x1" - }, - { - "calldata": [ - "0xb", - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", - "0x3", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x205466db74c000", - "0x0", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f", - "0x3b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558", - "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4", - "0x1", - "0x434149524f" - ], - "max_fee": "0x2386f26fc10000", - "nonce": "0x3d", - "sender_address": "0x18d43ec13d5b27c7352162a2b249c2fdf02fb13063b3ff975a3a47fa7bd78d9", - "signature": [ - "0x1b72166ae8c0c6756a98ffb2f1c094855b1d2ea2fee645707f0ba709e6119eb", - "0x762d0c01dee0625146f617f77fa8168b55a546583782493ac8f2fbd7d4fe9e3" - ], - "transaction_hash": "0x42cb3ec5e6a0587ab5d0e688a72758f14ded2e7ab11ac4b317cc9587f889048", - "type": "INVOKE", - "version": "0x1" - } - ] - } -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getclass.mdx b/services/reference/starknet/json-rpc-methods/starknet_getclass.mdx deleted file mode 100644 index 41036f2eb44..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getclass.mdx +++ /dev/null @@ -1,108 +0,0 @@ ---- -title: starknet_getClass -sidebar_label: starknet_getClass ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getClass` - -Returns the contract class definition of the specified contract class hash in the specified block. - -## Parameters - -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. -- `class_hash`: (string) [*Required*] The - [class hash](https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/class-hash/) - of the requested contract class. - -## Returns - -A [contract class](https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/contract-classes/) -object containing: - -- `abi`: The class ABI, as supplied by the user declaring the class. -- `contract_class_version`: The version of the contract class object. -- `entry_points_by_type`: Entry points by type. -- `sierra_program`: The list of Sierra instructions of which the program consists. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getClass", - "params": { - "block_id": { - "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4" - }, - "class_hash": "0x515dd668a1798214e7ca9ec90c52e267229b8104fb296a90f20b6f70baaef53" - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "id": 0, - "result": { - "abi": "[{\"type\": \"impl\", \"name\": \"ISTARKSImpl\", \"interface_name\": \"ins::ins::ISTARKS\"}, {\"type\": \"interface\", \"name\": \"ins::ins::ISTARKS\", \"items\": [{\"type\": \"function\", \"name\": \"get_total_supply\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"get_max_supply\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"balance_of\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"account\", \"type\": \"core::starknet::contract_address::ContractAddress\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"allowance\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"owner\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"get_holders\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"transfer\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"recipient\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"amount\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"transfer_from\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"sender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"recipient\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"amount\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"approve\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"amount\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"increase_allowance\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"added_value\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"decrease_allowance\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"subtracted_value\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"Inscribe\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"Deploy\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"maxSupply\", \"type\": \"core::integer::u128\"}, {\"name\": \"maxPerMint\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"get_tick_counter\", \"inputs\": [], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"get_ticks\", \"inputs\": [], \"outputs\": [{\"type\": \"core::array::Array::\u003ccore::integer::u128\u003e\"}], \"state_mutability\": \"view\"}]}, {\"type\": \"constructor\", \"name\": \"constructor\", \"inputs\": [{\"name\": \"_admin\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"_ff\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"_eth\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"_firstTick\", \"type\": \"core::felt252\"}, {\"name\": \"_firstTickSupply\", \"type\": \"core::integer::u128\"}, {\"name\": \"_firstTickPerMint\", \"type\": \"core::integer::u128\"}]}, {\"type\": \"event\", \"name\": \"ins::ins::STARKS::Transfer\", \"kind\": \"struct\", \"members\": [{\"name\": \"tick\", \"type\": \"core::felt252\", \"kind\": \"data\"}, {\"name\": \"from\", \"type\": \"core::starknet::contract_address::ContractAddress\", \"kind\": \"data\"}, {\"name\": \"to\", \"type\": \"core::starknet::contract_address::ContractAddress\", \"kind\": \"data\"}, {\"name\": \"value\", \"type\": \"core::integer::u128\", \"kind\": \"data\"}]}, {\"type\": \"event\", \"name\": \"ins::ins::STARKS::Approval\", \"kind\": \"struct\", \"members\": [{\"name\": \"tick\", \"type\": \"core::felt252\", \"kind\": \"data\"}, {\"name\": \"owner\", \"type\": \"core::starknet::contract_address::ContractAddress\", \"kind\": \"data\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\", \"kind\": \"data\"}, {\"name\": \"value\", \"type\": \"core::integer::u128\", \"kind\": \"data\"}]}, {\"type\": \"event\", \"name\": \"ins::ins::STARKS::Deploy\", \"kind\": \"struct\", \"members\": [{\"name\": \"tick\", \"type\": \"core::felt252\", \"kind\": \"data\"}, {\"name\": \"maxSupply\", \"type\": \"core::integer::u128\", \"kind\": \"data\"}, {\"name\": \"maxPerMint\", \"type\": \"core::integer::u128\", \"kind\": \"data\"}]}, {\"type\": \"event\", \"name\": \"ins::ins::STARKS::Event\", \"kind\": \"enum\", \"variants\": [{\"name\": \"Transfer\", \"type\": \"ins::ins::STARKS::Transfer\", \"kind\": \"nested\"}, {\"name\": \"Approval\", \"type\": \"ins::ins::STARKS::Approval\", \"kind\": \"nested\"}, {\"name\": \"Deploy\", \"type\": \"ins::ins::STARKS::Deploy\", \"kind\": \"nested\"}]}]", - "contract_class_version": "0.1.0", - "entry_points_by_type": { - "CONSTRUCTOR": [ - { - "function_idx": 14, - "selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194" - } - ], - "EXTERNAL": [ - { - "function_idx": 11, - "selector": "0x14dfa38c36b389189b8be0b1d3f9434ffcca49bf1a88f3658579d23d16368f" - }, - { - "function_idx": 10, - "selector": "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4" - }, - ... - ], - "L1_HANDLER": [] - }, - "sierra_program": [ - "0x1", - "0x3", - "0x0", - "0x361", - "0x800000000000000700000000000000000000000000000000", - "0x537472756374", - ... - ] - } -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getclassat.mdx b/services/reference/starknet/json-rpc-methods/starknet_getclassat.mdx deleted file mode 100644 index ba4d6add0bb..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getclassat.mdx +++ /dev/null @@ -1,107 +0,0 @@ ---- -title: starknet_getClassAt -sidebar_label: starknet_getClassAt ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getClassAt` - -Returns the contract class definition of the specified contract class address in the specified block. - -## Parameters - -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. -- `contract_address`: (string) [*Required*] The address of the requested - [contract class](https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/contract-classes/). - -## Returns - -A [contract class](https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/contract-classes/) -object containing: - -- `abi`: The class ABI, as supplied by the user declaring the class. -- `contract_class_version`: The version of the contract class object. -- `entry_points_by_type`: Entry points by type. -- `sierra_program`: The list of Sierra instructions of which the program consists. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getClassAt", - "params": { - "block_id": { - "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4" - }, - "contract_address": "0x03b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558" - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "id": 0, - "result": { - "abi": "[{\"type\": \"impl\", \"name\": \"ISTARKSImpl\", \"interface_name\": \"ins::ins::ISTARKS\"}, {\"type\": \"interface\", \"name\": \"ins::ins::ISTARKS\", \"items\": [{\"type\": \"function\", \"name\": \"get_total_supply\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"get_max_supply\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"balance_of\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"account\", \"type\": \"core::starknet::contract_address::ContractAddress\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"allowance\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"owner\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"get_holders\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"transfer\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"recipient\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"amount\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"transfer_from\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"sender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"recipient\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"amount\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"approve\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"amount\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"increase_allowance\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"added_value\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"decrease_allowance\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"subtracted_value\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"Inscribe\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"Deploy\", \"inputs\": [{\"name\": \"tick\", \"type\": \"core::felt252\"}, {\"name\": \"maxSupply\", \"type\": \"core::integer::u128\"}, {\"name\": \"maxPerMint\", \"type\": \"core::integer::u128\"}], \"outputs\": [], \"state_mutability\": \"external\"}, {\"type\": \"function\", \"name\": \"get_tick_counter\", \"inputs\": [], \"outputs\": [{\"type\": \"core::integer::u128\"}], \"state_mutability\": \"view\"}, {\"type\": \"function\", \"name\": \"get_ticks\", \"inputs\": [], \"outputs\": [{\"type\": \"core::array::Array::\u003ccore::integer::u128\u003e\"}], \"state_mutability\": \"view\"}]}, {\"type\": \"constructor\", \"name\": \"constructor\", \"inputs\": [{\"name\": \"_admin\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"_ff\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"_eth\", \"type\": \"core::starknet::contract_address::ContractAddress\"}, {\"name\": \"_firstTick\", \"type\": \"core::felt252\"}, {\"name\": \"_firstTickSupply\", \"type\": \"core::integer::u128\"}, {\"name\": \"_firstTickPerMint\", \"type\": \"core::integer::u128\"}]}, {\"type\": \"event\", \"name\": \"ins::ins::STARKS::Transfer\", \"kind\": \"struct\", \"members\": [{\"name\": \"tick\", \"type\": \"core::felt252\", \"kind\": \"data\"}, {\"name\": \"from\", \"type\": \"core::starknet::contract_address::ContractAddress\", \"kind\": \"data\"}, {\"name\": \"to\", \"type\": \"core::starknet::contract_address::ContractAddress\", \"kind\": \"data\"}, {\"name\": \"value\", \"type\": \"core::integer::u128\", \"kind\": \"data\"}]}, {\"type\": \"event\", \"name\": \"ins::ins::STARKS::Approval\", \"kind\": \"struct\", \"members\": [{\"name\": \"tick\", \"type\": \"core::felt252\", \"kind\": \"data\"}, {\"name\": \"owner\", \"type\": \"core::starknet::contract_address::ContractAddress\", \"kind\": \"data\"}, {\"name\": \"spender\", \"type\": \"core::starknet::contract_address::ContractAddress\", \"kind\": \"data\"}, {\"name\": \"value\", \"type\": \"core::integer::u128\", \"kind\": \"data\"}]}, {\"type\": \"event\", \"name\": \"ins::ins::STARKS::Deploy\", \"kind\": \"struct\", \"members\": [{\"name\": \"tick\", \"type\": \"core::felt252\", \"kind\": \"data\"}, {\"name\": \"maxSupply\", \"type\": \"core::integer::u128\", \"kind\": \"data\"}, {\"name\": \"maxPerMint\", \"type\": \"core::integer::u128\", \"kind\": \"data\"}]}, {\"type\": \"event\", \"name\": \"ins::ins::STARKS::Event\", \"kind\": \"enum\", \"variants\": [{\"name\": \"Transfer\", \"type\": \"ins::ins::STARKS::Transfer\", \"kind\": \"nested\"}, {\"name\": \"Approval\", \"type\": \"ins::ins::STARKS::Approval\", \"kind\": \"nested\"}, {\"name\": \"Deploy\", \"type\": \"ins::ins::STARKS::Deploy\", \"kind\": \"nested\"}]}]", - "contract_class_version": "0.1.0", - "entry_points_by_type": { - "CONSTRUCTOR": [ - { - "function_idx": 14, - "selector": "0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194" - } - ], - "EXTERNAL": [ - { - "function_idx": 11, - "selector": "0x14dfa38c36b389189b8be0b1d3f9434ffcca49bf1a88f3658579d23d16368f" - }, - { - "function_idx": 10, - "selector": "0x1fd12fd4580400368d8953eca1bf472ee233e7e06245d1ef8c176ff12bd3c4" - }, - ... - ], - "L1_HANDLER": [] - }, - "sierra_program": [ - "0x1", - "0x3", - "0x0", - "0x361", - "0x800000000000000700000000000000000000000000000000", - "0x537472756374", - ... - ] - } -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getclasshashat.mdx b/services/reference/starknet/json-rpc-methods/starknet_getclasshashat.mdx deleted file mode 100644 index 11bbac288d5..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getclasshashat.mdx +++ /dev/null @@ -1,70 +0,0 @@ ---- -title: starknet_getClassHashAt -sidebar_label: starknet_getClassHashAt ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getClassHashAt` - -Returns the contract class hash of the specified contract class address in the specified block. - -## Parameters - -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. -- `contract_address`: (string) [*Required*] The address of the requested - [contract class](https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/contract-classes/). - -## Returns - -The [class hash](https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/class-hash/) -of the requested contract class. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getClassHashAt", - "params": { - "block_id": { - "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4" - }, - "contract_address": "0x03b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558" - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "id": 0, - "result": "0x515dd668a1798214e7ca9ec90c52e267229b8104fb296a90f20b6f70baaef53" -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getevents.mdx b/services/reference/starknet/json-rpc-methods/starknet_getevents.mdx deleted file mode 100644 index 0442e8e791e..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getevents.mdx +++ /dev/null @@ -1,126 +0,0 @@ ---- -title: starknet_getEvents -sidebar_label: starknet_getEvents ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getEvents` - -Returns all event objects matching the conditions in the specified filter. - -## Parameters - -`filter`: (object) [*Required*] The conditions used to filter the returned events, including: - -- `from_block`: [*Required*] Block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. -- `to_block`: [*Required*] Block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. -- `address`: (string) Sender contract address. -- `keys`: (array) The values used to filter the events. -- `continuation_token`: (string) The token returned from the previous query. - If no token is provided, the first page is returned. -- `chunk_size`: (integer) [*Required*] Chunk size. - -## Returns - -An object containing: - -- `continuation_token`: Use this token in a subsequent query to obtain the next page. - This is not included if there are no more pages. -- `events`: An array of all event objects matching the specified filter. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getEvents", - "params": { - "filter": { - "from_block": "latest", - "to_block": "latest", - "address": "0x04c0a5193d58f74fbace4b74dcf65481e734ed1714121bdc571da345540efa05", - "chunk_size": 10 - } - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "id": 0, - "result": { - "continuation_token": "637544-10", - "events": [ - { - "block_hash": "0x38b2028fb31299733c25f55316721a90497f3300970f4a69b8774fe4d8cb600", - "block_number": 637544, - "data": [ - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x33e67938997ade7b38b7f23", - "0x34c84c75bde3dc72f961baa" - ], - "from_address": "0x4c0a5193d58f74fbace4b74dcf65481e734ed1714121bdc571da345540efa05", - "keys": ["0x30c296ae369716818de77cb5b71ce9cda7cc2c0e8456f474e0abb1ae8d017da"], - "transaction_hash": "0x642fcafc5bdaa756c410cc6a968497551e86a783a5f21ea34c0f9214c2240af" - }, - { - "block_hash": "0x38b2028fb31299733c25f55316721a90497f3300970f4a69b8774fe4d8cb600", - "block_number": 637544, - "data": [ - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x6db7e61ded25004dc0620", - "0x14e3778ef54505dfab26bf" - ], - "from_address": "0x4c0a5193d58f74fbace4b74dcf65481e734ed1714121bdc571da345540efa05", - "keys": ["0xa2fb82b5656725dad81c7112b2c4ef0119096677c3c0fd82632d0a74f07666"], - "transaction_hash": "0x642fcafc5bdaa756c410cc6a968497551e86a783a5f21ea34c0f9214c2240af" - }, - { - "block_hash": "0x38b2028fb31299733c25f55316721a90497f3300970f4a69b8774fe4d8cb600", - "block_number": 637544, - "data": [ - "0x227fa960f90cd98fff1ddbcddbded55d4793a308b08ff920556408c466c5c64", - "0x227fa960f90cd98fff1ddbcddbded55d4793a308b08ff920556408c466c5c64", - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x616f08fd61feb9", - "0x6379da05b60000" - ], - "from_address": "0x4c0a5193d58f74fbace4b74dcf65481e734ed1714121bdc571da345540efa05", - "keys": ["0x7ae0ab7952bbfc33a72035e5eccec7c8816723421c0acb315bd4690a71d46e"], - "transaction_hash": "0x642fcafc5bdaa756c410cc6a968497551e86a783a5f21ea34c0f9214c2240af" - } - ] - } -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getnonce.mdx b/services/reference/starknet/json-rpc-methods/starknet_getnonce.mdx deleted file mode 100644 index 0f27fc00484..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getnonce.mdx +++ /dev/null @@ -1,68 +0,0 @@ ---- -title: starknet_getNonce -sidebar_label: starknet_getNonce ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getNonce` - -Returns the nonce associated with the specified contract address in the specified block. - -## Parameters - -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. -- `contract_address`: (string) [*Required*] The address of the request contract. - -## Returns - -The last nonce used for the requested contract. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getNonce", - "params": { - "block_id": { - "block_number": 470207 - }, - "contract_address": "0x0555ec3ba8aea37915c4cf850b4f9d33e4a0a1caa0ad3953d725860e38fa6e17" - }, - "id": 0 -}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x1c", - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getstateupdate.mdx b/services/reference/starknet/json-rpc-methods/starknet_getstateupdate.mdx deleted file mode 100644 index 08f50eafe38..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getstateupdate.mdx +++ /dev/null @@ -1,107 +0,0 @@ ---- -title: starknet_getStateUpdate -sidebar_label: starknet_getStateUpdate ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getStateUpdate` - -Returns information about the result of executing the specified block. - -## Parameters - -`block_id`: [*Required*] The block parameter object containing one of the following: - -- `block_hash`: (string) Block hash. -- `block_number`: (integer) Decimal block number. -- One of the string tags `latest` or `pending`. - -## Returns - -A state update object or pending state update object containing: - -- `block_hash`: The block hash. - This is not included in a pending state update object. -- `old_root`: The previous global state root. -- `new_root`: The new global state root. - This is not included in a pending state update object. -- `state_diff`: The change in state applied in this block, as a map of addresses to the new values - and/or contracts. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getStateUpdate", - "params": { - "block_id": { - "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4" - } - }, - "id": 0 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "block_hash": "0x18ec1a3931bb5a286f801a950e1153bd427d6d3811591cc01e6f074615a1f76", - "new_root": "0xc95a878188acf408e285027bd5e7674a88529b8c65ef6c1999b3569aea8bc8", - "old_root": "0x7dd643fa7f254c8932c01558f538292304266c00728eeaf4b32b361b5d0d2dd", - "state_diff": { - "storage_diffs": [ - { - "address": "0x653d92ffdf2b532003d5e989f763fdedc16dc389e0b3889398a6eb1dac0d849", - "key": "0xf920571b9f85bdd92a867cfdc73319d0f8836f0e69e06e4c5566b6203f75cc", - "value": "0x69577e6756a99b584b5d1ce8e60650ae33b6e2b13541783458268f07da6b38a" - }, - { - "address": "0x653d92ffdf2b532003d5e989f763fdedc16dc389e0b3889398a6eb1dac0d849", - "key": "0x1379ac0624b939ceb9dede92211d7db5ee174fe28be72245b0a1a2abd81c98f", - "value": "0x36dbe3ef0a6ef13fc20e65315840832c0595986d54eba528e22483c7746c005" - }, - { - "address": "0x653d92ffdf2b532003d5e989f763fdedc16dc389e0b3889398a6eb1dac0d849", - "key": "0x1813aac5f5e7799684c6dc33e51f44d3627fd748c800724a184ed5be09b713e", - "value": "0x4" - }, - { - "address": "0x653d92ffdf2b532003d5e989f763fdedc16dc389e0b3889398a6eb1dac0d849", - "key": "0x321bace1036eaff095582583849a03598bd5764a6265edac86916b830a29d55", - "value": "0x1" - }, - { - "address": "0x653d92ffdf2b532003d5e989f763fdedc16dc389e0b3889398a6eb1dac0d849", - "key": "0x37501df619c4fc4e96f6c0243f55e3abe7d1aca7db9af8f3740ba3696b3fdac", - "value": "0x3" - } - ] - } - } -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_getstorageat.mdx b/services/reference/starknet/json-rpc-methods/starknet_getstorageat.mdx deleted file mode 100644 index 694a3f3ab4d..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_getstorageat.mdx +++ /dev/null @@ -1,71 +0,0 @@ ---- -title: starknet_getStorageAt -sidebar_label: starknet_getStorageAt ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getStorageAt` - -Returns the value of the storage at the specified address and key. - -## Parameters - -- `contract_address`: (string) [*Required*] The address of the contract to read from. -- `key`: (string) [*Required*] The key to the storage value for the specified contract. -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. - -## Returns - -The value at the specified address and key. -Zero (0) is returned if no value is found. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getStorageAt", - "params": { - "contract_address": "0x04D88BeCbd1DC984ae04A96E77828E603c5244e68224903D92CA0a1Ff1C8e807", - "key": "0x21", - "block_id": { - "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4" - } - }, - "id": 1 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x0", - "id": 1 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_gettransactionbyblockidandindex.mdx b/services/reference/starknet/json-rpc-methods/starknet_gettransactionbyblockidandindex.mdx deleted file mode 100644 index 260a8c466c8..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_gettransactionbyblockidandindex.mdx +++ /dev/null @@ -1,93 +0,0 @@ ---- -title: starknet_getTransactionByBlockIdAndIndex -sidebar_label: starknet_getTransactionByBlockIdAndIndex ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getTransactionByBlockIdAndIndex` - -Returns the details of the specified transaction. - -## Parameters - -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. -- `index`: (integer) [*Required*] The index in the block to search for the transaction. - -## Returns - -A [Starknet transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/) -object. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getTransactionByBlockIdAndIndex", - "params": { - "block_id": { - "block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4" - }, - "index": 1 - }, - "id": 1 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "type": "INVOKE", - "transaction_hash": "0x5fb5b63f0226ef426c81168d0235269398b63aa145ca6a3c47294caa691cfdc", - "max_fee": "0x1ff973cafa7fff", - "version": "0x0", - "signature": [ - "0x5a1c0af2b96c461a9753e383107e2bba1849cdf6029ffaa2b97533ada03789f", - "0x7261a61b45dcfe48d85fb6a687ed6a888816ba601871679dd32dcb99652de84" - ], - "nonce": "0x0", - "contract_address": "0x7c57808b9cea7130c44aab2f8ca6147b04408943b48c6d8c3c83eb8cfdd8c0b", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "calldata": [ - "0x1", - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x83afd3f4caedc6eebf44246fe54e38c95e3179a5ec9ea81740eca5b482d12e", - "0x0", - "0x3", - "0x3", - "0x20b55314a52c19b78626a26d48ffd4a9b3e21b45cf3bc7bdf01ea52c4088860", - "0x20f7338adef002", - "0x0", - "0x1457" - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_gettransactionbyhash.mdx b/services/reference/starknet/json-rpc-methods/starknet_gettransactionbyhash.mdx deleted file mode 100644 index 32f6539c0d8..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_gettransactionbyhash.mdx +++ /dev/null @@ -1,88 +0,0 @@ ---- -title: starknet_getTransactionByHash -sidebar_label: starknet_getTransactionByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getTransactionByHash` - -Returns the details of the specified transaction. - -## Parameters - -`transaction_hash`: (string) [*Required*] The hash of the requested transaction. - -## Returns - -A [Starknet transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/) -object. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getTransactionByHash", - "params": { - "transaction_hash": "0x121aaba2894a63cce81acabb559eb2c114f4859dc5803e0b91349ec398d2eb0" - }, - "id": 1 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "type": "INVOKE", - "transaction_hash": "0x121aaba2894a63cce81acabb559eb2c114f4859dc5803e0b91349ec398d2eb0", - "max_fee": "0xcfa4301cf492", - "version": "0x0", - "signature": [ - "0x71847081cae237a92ddcfbc8ff4144df8237ed251027563e709aeb69af35099", - "0x36da171a5c558c8a1b233a163a399ac5c54d82a7bd0bbfdbc360cd7c3e2700d" - ], - "nonce": "0x0", - "contract_address": "0x206cd6b8b25de0ca44b944d13c2608b355e9a9224a887e2e9447cf5ae3cb2a8", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "calldata": [ - "0x1", - "0x173f81c529191726c6e7287e24626fe24760ac44dae2a1f7e02080230f8458b", - "0x68bcbdba7cc8cac2832d23e2c32e9eec39a9f1d03521eff5dff800a62725fa", - "0x0", - "0x5", - "0x5", - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x7c57808b9cea7130c44aab2f8ca6147b04408943b48c6d8c3c83eb8cfdd8c0b", - "0xd6f06df0e9632b", - "0x0", - "0x6873917301545706d657c47a11d83ad9840fbeb3", - "0x9" - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_gettransactionreceipt.mdx b/services/reference/starknet/json-rpc-methods/starknet_gettransactionreceipt.mdx deleted file mode 100644 index aee9fe54798..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_gettransactionreceipt.mdx +++ /dev/null @@ -1,86 +0,0 @@ ---- -title: starknet_getTransactionReceipt -sidebar_label: starknet_getTransactionReceipt ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_getTransactionReceipt` - -Returns the receipt of the specified transaction. - -## Parameters - -`transaction_hash`: (string) [*Required*] The hash of the requested transaction. - -## Returns - -A [Starknet transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/) -receipt object. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_getTransactionReceipt", - "params": { - "transaction_hash": "0x121aaba2894a63cce81acabb559eb2c114f4859dc5803e0b91349ec398d2eb0" - }, - "id": 1 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "transaction_hash": "0x121aaba2894a63cce81acabb559eb2c114f4859dc5803e0b91349ec398d2eb0", - "actual_fee": "0x8a6d7568a30c", - "status": "ACCEPTED_ON_L2", - "block_hash": "0x18ec1a3931bb5a286f801a950e1153bd427d6d3811591cc01e6f074615a1f76", - "block_number": 4503, - "messages_sent": [], - "events": [ - { - "from_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "keys": ["0x99cd8bde557814842a3121e8ddfd433a539b8c9f14bf31ebf108d12e6196e9"], - "data": [ - "0x206cd6b8b25de0ca44b944d13c2608b355e9a9224a887e2e9447cf5ae3cb2a8", - "0x7c57808b9cea7130c44aab2f8ca6147b04408943b48c6d8c3c83eb8cfdd8c0b", - "0xd6f06df0e9632b", - "0x0" - ] - }, - { - "from_address": "0x206cd6b8b25de0ca44b944d13c2608b355e9a9224a887e2e9447cf5ae3cb2a8", - "keys": ["0x5ad857f66a5b55f1301ff1ed7e098ac6d4433148f0b72ebc4a2945ab85ad53"], - "data": ["0x121aaba2894a63cce81acabb559eb2c114f4859dc5803e0b91349ec398d2eb0", "0x0"] - } - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_pendingtransactions.mdx b/services/reference/starknet/json-rpc-methods/starknet_pendingtransactions.mdx deleted file mode 100644 index 8396e85ce26..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_pendingtransactions.mdx +++ /dev/null @@ -1,79 +0,0 @@ ---- -title: starknet_pendingTransactions -sidebar_label: starknet_pendingTransactions ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_pendingTransactions` - -Returns a list of pending transactions. - -## Parameters - -None. - -## Returns - -An array of pending -[Starknet transaction](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/) -objects. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/6e46ee5c0df54fb48c0fb2a94502c42a \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "starknet_pendingTransactions", "params": [], "id": 0}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": [ - { - "type": "INVOKE", - "transaction_hash": "0x51b20a0fc4372f88251e85b273b3fdd1840abde65cd65861691abd8eae8ae24", - "max_fee": "0x173ef69c85ddc", - "version": "0x0", - "signature": ["0x30f5c0835f649d07e0335bcfe9a2844ff644ba5ae746853ac607b304f4ef551", "0x87428cbd6d283c49652003effa075d1479f6ca24e7e6dae5da5e16a587875"], - "nonce": "0x0", - "contract_address": "0x8451e87f44cdadbe0e235804753194d24939603a025324ca380e73806e39a6", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "calldata": ["0x1", "0x7861c4e276294a7e859ff0ae2eec0c68300ad9cbb43219db907da9bad786488", "0x2f0b3c5710379609eb5495f1ecd348cb28167711b73609fe565a72734550354", "0x0", "0x3", "0x3", "0x697066733a2f2f516d543577517453516e4a4173423550377a76436e787574", "0x6d70424b515a756a624e666444734b664c515a363933", "0x0", "0x5"] - }, { - "type": "INVOKE", - "transaction_hash": "0x4a79fbaa6c898a9823ae7d58aa30f70f0cd76da83fcc796b0e8f686d714837a", - "max_fee": "0x5fb93c8e0320", - "version": "0x0", - "signature": ["0x40b94d079352f30849cb1fd11d7e6b7ddb9bf82c0af6a6e59821a1c72607592", "0x7d25b96e4e2664ae0a9aaecf523242a5769773b4a1d2753db97711782fea1c9"], - "nonce": "0x0", - "contract_address": "0x1e3415180f65313145bb0c6afa3ea73600f5275fbd22c526bbff5de7f9532ee", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "calldata": ["0x1", "0x3090623ea32d932ca1236595076b00702e7d860696faf300ca9eb13bfe0a78c", "0x2d4c8ea4c8fb9f571d1f6f9b7692fff8e5ceaf73b1df98e7da8c1109b39ae9a", "0x0", "0x2", "0x2", "0x2a92f0f860bf7c63fb9ef42cff4137006b309e0e6e1484e42d0b5511959414d", "0x1", "0x3"] - }, - ... - ], - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_simulatetransactions.mdx b/services/reference/starknet/json-rpc-methods/starknet_simulatetransactions.mdx deleted file mode 100644 index f3f92377a55..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_simulatetransactions.mdx +++ /dev/null @@ -1,265 +0,0 @@ ---- -title: starknet_simulateTransactions -sidebar_label: starknet_simulateTransactions ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_simulateTransactions` - -Simulates the execution of the specified transactions at the specified block. - -## Parameters - -- `transactions`: (array) [*Required*] A sequence of - [Starknet transactions](https://docs.starknet.io/documentation/architecture_and_concepts/Network_Architecture/transactions/) - to simulate. - If multiple transactions are provided, each transaction is simulated on the state resulting from - applying the previous transactions.. -- `block_id`: [*Required*] The block parameter object containing one of the following: - - `block_hash`: (string) Block hash. - - `block_number`: (integer) Decimal block number. - - One of the string tags `latest` or `pending`. -- `simulation_flags`: (array) [*Required*] A set of flags used for simulation. - Available options are `SKIP_VALIDATE` and `SKIP_FEE_CHARGE`. - -## Returns - -A sequence of transaction results, corresponding to the sequence of requested transactions. -Each transaction result object contains: - -- `transaction_trace`: An execution trace of the transaction. -- `fee_estimation`: An estimate of the fee required for the network to process the transaction. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "starknet_simulateTransactions", - "params": { - "transactions": [{ - "type": "INVOKE", - "max_fee": "0xb3a2f1ab6d632", - "version": "0x1", - "signature": [ - "0x54c2201c7b9021777389e208e28eafc67e4ba1f1aa7016a1123b61c6ff79c29", - "0x58c2d97614e5abfd9668b314f344c945d16ea154cb32a7b08b4445204f1f1d3" - ], - "sender_address": "0x0569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10", - "calldata": ["0x3","0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7","0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c","0x3","0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff","0x984e103a8acd6","0x0","0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8","0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c","0x3","0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff","0x4c4b40","0x0","0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff","0x2f0b3c5710379609eb5495f1ecd348cb28167711b73609fe565a72734550354","0xe","0x569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10","0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7","0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8","0x1f4","0xa76cc","0xa7b5e","0x984e103a8acd6","0x0","0x4c4b40","0x0","0x9542431aa6bf1","0x0","0x4ac4a0","0x0"], - "nonce": "0x51" - }], - "block_id": { - "block_number": 385940 - }, - "simulation_flags": [ - "SKIP_VALIDATE", - "SKIP_FEE_CHARGE" - ] - }, - "id": 1 - }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": [ - { - "fee_estimation": { - "gas_consumed": "0x9ad6", - "gas_price": "0x5569d8d85", - "overall_fee": "0x33a912ed64f2e" - }, - "transaction_trace": { - "execute_invocation": { - "call_type": "CALL", - "calldata": [ - "0x3", - "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", - ... - ], - "caller_address": "0x0", - "calls": [ - { - "call_type": "CALL", - "calldata": [ - "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", - "0x984e103a8acd6", - "0x0" - ], - "caller_address": "0x569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10", - "calls": [ - { - "call_type": "DELEGATE", - "calldata": [ - "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", - "0x984e103a8acd6", - "0x0" - ], - "caller_address": "0x569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10", - "calls": [], - "class_hash": "0x2760f25d5a4fb2bdde5f561fd0b44a3dee78c28903577d37d669939d97036a0", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10", - "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", - "0x984e103a8acd6", - "0x0" - ], - "keys": [ - "0x134692b230b9e1ffa39098904722134159652b09c5bc41d88d6698779d228ff" - ], - "order": 0 - } - ], - "messages": [], - "result": [ - "0x1" - ] - } - ], - "class_hash": "0xd0e183745e9dae3e4e78a8ffedcce0903fc4900beace4e0abf192d4c202da3", - "contract_address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "entry_point_selector": "0x219209e083275171774dab1df80982e9df2096516f06319c5c6d71ae0a8480c", - "entry_point_type": "EXTERNAL", - "events": [], - "messages": [], - "result": [ - "0x1" - ] - }, - ... - ], - "class_hash": "0x1a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003", - "contract_address": "0x569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10", - "entry_point_selector": "0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad", - "entry_point_type": "EXTERNAL", - "events": [ - { - "data": [ - "0x3", - "0x1", - "0x1", - ... - ], - "keys": [ - "0x1dcde06aabdbca2f80aa51392b345d7549d7757aa855f7e37f5d335ac8243b1", - "0x24cfba646f79dd32c47a61d6de300f2ab1c9e2aff2e92f790c1368cd177d69c" - ], - "order": 10 - } - ], - "messages": [], - "result": [ - "0x3", - "0x1", - "0x1", - ... - ] - }, - "state_diff": { - "declared_classes": [], - "deployed_contracts": [], - "deprecated_declared_classes": [], - "nonces": [ - { - "contract_address": "0x569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10", - "nonce": "0x52" - } - ], - "replaced_classes": [], - "storage_diffs": [ - { - "address": "0xfff107e2403123c7df78d91728a7ee5cfd557aec0fa2d2bdc5891c286bbfff", - "storage_entries": [ - { - "key": "0x2bc92130481261ac8ebf05490c8f1799f651a4ebd2d64f0101f2a3f41bb441", - "value": "0x569b13e8164bc8000c0bbcf4887856516643af123c5bc3b01e229e92f9cfd10" - }, - { - "key": "0x180cda4fd6c0599dc8ed498cc36eb9cab3ecad0efb3ccfd59043fbdd692374b", - "value": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7" - }, - ... - ] - }, - { - "address": "0x1114c7103e12c2b2ecbd3a2472ba9c48ddcbf702b1c242dd570057e26212111", - "storage_entries": [ - { - "key": "0x3fa65d6912e7d8d82b149d0cc034a285d8c33ae49e659642a4fd2e380937b7", - "value": "0x74272944c439" - }, - { - "key": "0x3fa65d6912e7d8d82b149d0cc034a285d8c33ae49e659642a4fd2e380937b8", - "value": "0x648be4d87207" - }, - ... - ] - }, - { - "address": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", - "storage_entries": [ - { - "key": "0x14b36f2f827c4728ecac41e90cf996e64c4b20c345087b6be56bbe680051a1f", - "value": "0x70e0d9aa29d9c159a" - }, - { - "key": "0x367c2ac2e63b88cb4382f26a49c62b1dfecb966e92138c574cfbec611723cce", - "value": "0x11ba205d123d0fb" - }, - ... - ] - }, - { - "address": "0x68f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8", - "storage_entries": [ - { - "key": "0x14b36f2f827c4728ecac41e90cf996e64c4b20c345087b6be56bbe680051a1f", - "value": "0x1860959920" - }, - { - "key": "0x367c2ac2e63b88cb4382f26a49c62b1dfecb966e92138c574cfbec611723cce", - "value": "0x11b0dac6" - }, - ... - ] - } - ] - }, - "type": "INVOKE" - } - } - ] -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_specversion.mdx b/services/reference/starknet/json-rpc-methods/starknet_specversion.mdx deleted file mode 100644 index 35e4553c35f..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_specversion.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -title: starknet_specVersion -sidebar_label: starknet_specVersion ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_specVersion` - -Returns the version of the Starknet JSON-RPC specification that the client is using. - -## Parameters - -None. - -## Returns - -The current Starknet JSON-RPC specification version. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"starknet_specVersion","params":[],"id":1}' -``` - - - - -### Response - - - - -```json -{ - "id": 1, - "jsonrpc": "2.0", - "result": "0.5.1" -} -``` - - - diff --git a/services/reference/starknet/json-rpc-methods/starknet_syncing.mdx b/services/reference/starknet/json-rpc-methods/starknet_syncing.mdx deleted file mode 100644 index 679d8b5ac00..00000000000 --- a/services/reference/starknet/json-rpc-methods/starknet_syncing.mdx +++ /dev/null @@ -1,70 +0,0 @@ ---- -title: starknet_syncing -sidebar_label: starknet_syncing ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `starknet_syncing` - -Returns the synchronization status of the node. - -## Parameters - -None. - -## Returns - -A syncing status object containing: - -- `starting_block_hash`: The hash of the block from which the sync started. -- `starting_block_num`: The number of the block from which the sync started. -- `current_block_hash`: The hash of the current block being synchronized. -- `current_block_num`: The number of the current block being synchronized. -- `highest_block_hash`: The hash of the estimated highest block to be synchronized. -- `highest_block_num`: The number of the estimated highest block to be synchronized. - -This method returns `false` if the node is not currently syncing state. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0","method":"starknet_syncing","params":[],"id":0}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "starting_block_hash": "0x3fab5dff46b07a0910cd3e255f53bee8183e1d22fdb48aed4514538ecf733d5", - "starting_block_num": "0x1124", - "current_block_hash": "0x59c29817b8d4f71fd355180aad76785a801d54eb08fdd2945d1eec8c1dfcd0b", - "current_block_num": "0x1199", - "highest_block_hash": "0x59c29817b8d4f71fd355180aad76785a801d54eb08fdd2945d1eec8c1dfcd0b", - "highest_block_num": "0x1199" - }, - "id": 0 -} -``` - - - diff --git a/services/reference/starknet/quickstart.md b/services/reference/starknet/quickstart.md deleted file mode 100644 index e0a069c2dde..00000000000 --- a/services/reference/starknet/quickstart.md +++ /dev/null @@ -1,167 +0,0 @@ ---- -description: Starknet quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Starknet quickstart - -This quickstart guide will help you set up and make calls on the Starknet network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the Starknet network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the Starknet network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://starknet-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "starknet_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://starknet-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'starknet_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://starknet-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'starknet_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://starknet-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "starknet_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Starknet network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Starknet APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Arbitrum, Ethereum, Optimism, IPFS and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/unichain/index.md b/services/reference/unichain/index.md deleted file mode 100644 index c39cdb1d784..00000000000 --- a/services/reference/unichain/index.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -description: Unichain network information. ---- - -import CardList from '@site/src/components/CardList' - -# Unichain - -:::note Decentralized Infrastructure Network (DIN) - -Unichain is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -Infura provides Open Beta access to Unichain. During this period, there might be feature limitations. -Performance issues aren't expected, but they're possible as we optimize and stabilize the service. - -::: - -Unichain is a layer-2 Optimistic Rollup for Ethereum that's designed to be fast, decentralized, and -optimized for DeFi applications. - -This allows Unichain to scale the experience of Ethereum, ensuring cheaper and more accessible data while -maintaining the robust security inherent to Ethereum. - -Infura provides access to the [Unichain JSON-RPC API](json-rpc-methods/index.md) method library that -interacts with the Unichain blockchain. Methods include functionality for reading and writing data to the network, -and executing smart contracts. - -:::info See also - -See the [official Unichain documentation](https://docs.unichain.org/docs) for more information. - -::: - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partners provide access to the Unichain network: - -- InfStones ([Privacy Policy](https://infstones.com/terms/privacy-notice)) -- 0xFury ([Privacy policy](https://0xfury.com/privacy)) diff --git a/services/reference/unichain/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index 53391a4cfc0..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 755d69b2a4f..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_call-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index fc096a0d158..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 6b7f8141e1b..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index c06062bc255..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index f2f1f7a72cc..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]]}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index a7d3ed0a49a..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index 0ff65b7b864..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index c46cd025dcd..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index 5dd8f3db22c..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getblockreceipts-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getblockreceipts-request.mdx deleted file mode 100644 index 4da200ec773..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getblockreceipts-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 95d5b567280..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index cf6d8d6fdbe..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 1c739e478ae..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 1c8a2d739fd..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics":["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index 20a55d41104..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index cea614ebfc8..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 8406152d2d3..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index f3f041bc7f5..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55","0x0"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index d0e51428ba5..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index b46226dcce6..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f","0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index f234dd88433..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index d65c6c90caa..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35","0x0"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx deleted file mode 100644 index ee06adef811..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c","0x0"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx deleted file mode 100644 index 6c4b54c64d5..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index 7f093260ffc..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 92bc7e75d44..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 0c945be48f1..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/unichain/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index dc8ac48a686..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-call-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-call-parameters.mdx deleted file mode 100644 index 38638909773..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-call-parameters.mdx +++ /dev/null @@ -1,12 +0,0 @@ -- `from`: 20 bytes [_required_] Address the transaction is sent from. -- `to`: 20 bytes - Address the transaction is directed to. -- `gas`: Hexadecimal value of the gas provided for the transaction execution. `eth_call` consumes zero gas, but this parameter may be needed by some executions. -- `gasPrice`: Hexadecimal value of the `gasPrice` used for each paid gas. -- `maxPriorityFeePerGas`: Maximum fee, in wei, the sender is willing to pay per gas above the base fee. See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). -- `maxFeePerGas`: Maximum total fee (base fee + priority fee), in wei, the sender is willing to pay per gas. See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). -- `value`: Hexadecimal of the value sent with this transaction. -- `data`: Hash of the method signature and encoded parameters. See [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-estimategas-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-estimategas-parameters.mdx deleted file mode 100644 index a0e614a01f7..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-estimategas-parameters.mdx +++ /dev/null @@ -1,25 +0,0 @@ -- `TRANSACTION CALL OBJECT` _\[required]_ - - `from`: _\[optional]_ 20 Bytes - The address the transaction is sent from. - - `to`: 20 Bytes - The address the transaction is directed to. - - `gas`: _\[optional]_ Hexadecimal value of the gas provided for the transaction execution. `eth_estimateGas` consumes - zero gas, but this parameter may be needed by some executions. - - `gasPrice`: _\[optional]_ Hexadecimal value of the gas price used for each paid gas. - - `maxPriorityFeePerGas`: _\[optional]_ Maximum fee, in wei, the sender is willing to pay per gas - above the base fee. - See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). - - `maxFeePerGas`: _\[optional]_ Maximum total fee (base fee + priority fee), in wei, the sender is - willing to pay per gas. - See [EIP-1559 transactions](../../../concepts/transaction-types.md#eip-1559-transactions). - - `value`: _\[optional]_ Hexadecimal value of the value sent with this transaction. - - `data`: _\[optional]_ Hash of the method signature and encoded parameters. See the - [Ethereum contract ABI specification](https://docs.soliditylang.org/en/latest/abi-spec.html). - - `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, - `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: - -If no gas limit is specified, geth uses the block gas limit from the pending block as an upper bound. -As a result the returned estimate might not be enough to executed the call/transaction when the amount -of gas is higher than the pending block gas limit. diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getbalance-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getbalance-parameters.mdx deleted file mode 100644 index d9d5fabe6bf..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getbalance-parameters.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `address`: [_Required_] A string representing the address (20 bytes) to check for balance. -- `block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getblockbynumber-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getblockbynumber-parameters.mdx deleted file mode 100644 index cc79fc9753a..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getblockbynumber-parameters.mdx +++ /dev/null @@ -1,7 +0,0 @@ -- `block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: - -- `show transaction details flag`: [_Required_] If set to `true`, returns the full transaction objects. If `false` returns only the hashes of the transactions. diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getblocktransactioncountbynumber-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getblocktransactioncountbynumber-parameters.mdx deleted file mode 100644 index 8f9ffe9520f..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getblocktransactioncountbynumber-parameters.mdx +++ /dev/null @@ -1,5 +0,0 @@ -`block number`:[_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - -:::warning -`safe` isn't supported. Use `finalized` instead. -::: diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getcode-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getcode-parameters.mdx deleted file mode 100644 index 4d9ce64b0b7..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getcode-parameters.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `address`: [_Required_] A string representing the address (20 bytes) of the smart contract, from which the compiled byte code will be obtained. -- `block number`:[_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getlogs-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getlogs-parameters.mdx deleted file mode 100644 index 2eb23ad0be1..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getlogs-parameters.mdx +++ /dev/null @@ -1,12 +0,0 @@ -A filter object containing the following: - -- `address`: [_optional_] Contract address (20 bytes) or a list of addresses from which logs should originate. -- `fromBlock`: _[optional, default is `latest`]_ A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: - -- `toBlock`: _[optional, default is `latest`]_ A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). -- `topics`: _[optional]_ Array of 32 bytes DATA topics. Topics are order-dependent. -- `blockhash`: _[optional]_ Restricts the logs returned to the single block referenced in the 32-byte hash `blockHash`. Using `blockHash` is equivalent to setting `fromBlock` and `toBlock` to the block number referenced in the `blockHash`. If `blockHash` is present in the filter criteria, then neither `fromBlock` nor `toBlock` are allowed. diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getproof-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getproof-parameters.mdx deleted file mode 100644 index cbfa1aea28c..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getproof-parameters.mdx +++ /dev/null @@ -1,7 +0,0 @@ -- `address`: A string representing the address (20 bytes) to check for balance. -- `storageKeys`: An array of 32-byte storage keys to be proofed and included. -- `blockParameter`: (string) A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getstorageat-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getstorageat-parameters.mdx deleted file mode 100644 index b4814c296d9..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getstorageat-parameters.mdx +++ /dev/null @@ -1,8 +0,0 @@ -- `address`: [_required_] A string representing the address (20 bytes) to check for balance. -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: - -- `storage position`: [_required_] A hexadecimal code of the position in the storage. diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-gettransactionbyblocknumberandindex-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-gettransactionbyblocknumberandindex-parameters.mdx deleted file mode 100644 index 9ad3306bb8f..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-gettransactionbyblocknumberandindex-parameters.mdx +++ /dev/null @@ -1,7 +0,0 @@ -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: - -- `transaction index position`: [_required_] A hexadecimal of the integer representing the position in the block. diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-gettransactioncount-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-gettransactioncount-parameters.mdx deleted file mode 100644 index 6194660ae94..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-gettransactioncount-parameters.mdx +++ /dev/null @@ -1,6 +0,0 @@ -- `address`: [_Required_] A string representing the address (20 bytes). -- `block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getunclebyblocknumberandindex-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getunclebyblocknumberandindex-parameters.mdx deleted file mode 100644 index b7f27af2500..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getunclebyblocknumberandindex-parameters.mdx +++ /dev/null @@ -1,7 +0,0 @@ -- `blockParameter`: (string) [_required_] A hexadecimal block number, or one of the tags `latest`, `earliest`, `pending` or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - - :::warning - `safe` isn't supported. Use `finalized` instead. - ::: - -- `uncle index position`: [_required_] A hexadecimal equivalent of the integer indicating the uncle's index position. diff --git a/services/reference/unichain/json-rpc-methods/_eth_unichain-getunclecountbyblocknumber-parameters.mdx b/services/reference/unichain/json-rpc-methods/_eth_unichain-getunclecountbyblocknumber-parameters.mdx deleted file mode 100644 index 75c3dbea5d3..00000000000 --- a/services/reference/unichain/json-rpc-methods/_eth_unichain-getunclecountbyblocknumber-parameters.mdx +++ /dev/null @@ -1,5 +0,0 @@ -`block parameter`: [_Required_] A hexadecimal block number, or one of the string tags `latest`, `earliest`, `pending`, or `finalized`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). - -:::warning -`safe` isn't supported. Use `finalized` instead. -::: diff --git a/services/reference/unichain/json-rpc-methods/_net_listening-request.mdx b/services/reference/unichain/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index 00009fee74f..00000000000 --- a/services/reference/unichain/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_net_peercount-request.mdx b/services/reference/unichain/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index 71b821fbc17..00000000000 --- a/services/reference/unichain/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_net_version-request.mdx b/services/reference/unichain/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index 1e6aad2f8b0..00000000000 --- a/services/reference/unichain/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/unichain/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 4da6b9f2ef9..00000000000 --- a/services/reference/unichain/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,15 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/unichain/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx b/services/reference/unichain/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx deleted file mode 100644 index 803be056fa8..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/eth_estimateuseroperationgas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_estimateUserOperationGas -sidebar_label: eth_estimateUserOperationGas -description: Simulate and estimate gas limits for a user operation before submission. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-description.mdx' - -# `eth_estimateUserOperationGas` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/unichain/_eth_estimateuseroperationgas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_estimateuseroperationgas-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx b/services/reference/unichain/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx deleted file mode 100644 index 1dd3edf3b6d..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/eth_getuseroperationbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationByHash -sidebar_label: eth_getUserOperationByHash -description: Fetch user operation details by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-description.mdx' - -# `eth_getUserOperationByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/unichain/_eth_getuseroperationbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationbyhash-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx b/services/reference/unichain/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx deleted file mode 100644 index 15584ee85c2..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/eth_getuseroperationreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_getUserOperationReceipt -sidebar_label: eth_getUserOperationReceipt -description: Fetch the receipt of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-description.mdx' - -# `eth_getUserOperationReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/unichain/_eth_getuseroperationreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_getuseroperationreceipt-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/bundler/eth_senduseroperation.mdx b/services/reference/unichain/json-rpc-methods/bundler/eth_senduseroperation.mdx deleted file mode 100644 index 7b8454f3fc8..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/eth_senduseroperation.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_sendUserOperation -sidebar_label: eth_sendUserOperation -description: Submit a user operation to the mempool for bundling and execution. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_senduseroperation-description.mdx' - -# `eth_sendUserOperation` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_senduseroperation-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_senduseroperation-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_senduseroperation-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/unichain/_eth_senduseroperation-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_senduseroperation-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/bundler/eth_supportedentrypoints.mdx b/services/reference/unichain/json-rpc-methods/bundler/eth_supportedentrypoints.mdx deleted file mode 100644 index 2f3c73681e2..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/eth_supportedentrypoints.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: eth_supportedEntryPoints -sidebar_label: eth_supportedEntryPoints -description: Get the list of EntryPoint addresses supported by the bundler. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_eth_supportedentrypoints-description.mdx' - -# `eth_supportedEntryPoints` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_eth_supportedentrypoints-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_eth_supportedentrypoints-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_eth_supportedentrypoints-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/unichain/_eth_supportedentrypoints-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_eth_supportedentrypoints-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/bundler/index.md b/services/reference/unichain/json-rpc-methods/bundler/index.md deleted file mode 100644 index cd4f9e83075..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/index.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -title: Unichain bundler methods -sidebar_label: Bundler methods -sidebar_key: unichain-bundler-methods -description: Unichain bundler methods ---- - -Infura integrates with the Pimlico account abstraction bundler infrastructure, enabling -developers to access [ERC-4337](https://docs.erc4337.io/) smart account features. - -The following [bundler methods](../../../../concepts/bundler.md) are supported on Unichain mainnet -and Sepolia: - -- [`eth_sendUserOperation`](eth_senduseroperation.mdx): - Submits a user operation to be included onchain. -- [`eth_estimateUserOperationGas`](eth_estimateuseroperationgas.mdx): - Simulates the user operation and estimates the appropriate gas limits. -- [`eth_getUserOperationReceipt`](eth_getuseroperationreceipt.mdx): - Fetches the receipt of a user operation. -- [`eth_getUserOperationByHash`](eth_getuseroperationbyhash.mdx): - Fetches the user operation by hash. -- [`eth_supportedEntryPoints`](eth_supportedentrypoints.mdx): - Fetches the EntryPoint addresses supported by the bundler. -- [`pimlico_getUserOperationGasPrice`](pimlico_getuseroperationgasprice.mdx): - Returns the gas prices that must be used for the user operation. -- [`pimlico_getUserOperationStatus`](pimlico_getuseroperationstatus.mdx): - Returns the user operation status. -- [`pimlico_simulateAssetChanges`](pimlico_simulateassetchanges.mdx): - Simulates a user operation to predict the asset changes it will cause. diff --git a/services/reference/unichain/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx b/services/reference/unichain/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx deleted file mode 100644 index 963ff7ba378..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/pimlico_getuseroperationgasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationGasPrice -sidebar_label: pimlico_getUserOperationGasPrice -description: Get recommended gas prices for user operations on Pimlico bundlers. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-description.mdx' - -# `pimlico_getUserOperationGasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/unichain/_pimlico_getuseroperationgasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationgasprice-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx b/services/reference/unichain/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx deleted file mode 100644 index b61d8d50db7..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/pimlico_getuseroperationstatus.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: pimlico_getUserOperationStatus -sidebar_label: pimlico_getUserOperationStatus -description: Get the current status of a user operation by its hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-description.mdx' - -# `pimlico_getUserOperationStatus` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/unichain/_pimlico_getuseroperationstatus-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_getuseroperationstatus-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx b/services/reference/unichain/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx deleted file mode 100644 index 7a12f53a0df..00000000000 --- a/services/reference/unichain/json-rpc-methods/bundler/pimlico_simulateassetchanges.mdx +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: pimlico_simulateAssetChanges -sidebar_label: pimlico_simulateAssetChanges -description: Simulate a user operation and return predicted asset changes. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-description.mdx' - -# `pimlico_simulateAssetChanges` - - - -## Parameters - -import Params from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-example.mdx' - - - -### Request - -import Request from '/services/reference/_partials/bundler/unichain/_pimlico_simulateassetchanges-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-response.mdx' - - - -## Errors - -import Errors from '/services/reference/_partials/bundler/_pimlico_simulateassetchanges-errors.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_accounts.mdx b/services/reference/unichain/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index 206f5423e7a..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: Unichain eth_accounts -sidebar_label: eth_accounts -description: Returns a list of Unichain accounts. ---- - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_blocknumber.mdx b/services/reference/unichain/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index c73a57d56a4..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest Unichain block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_call.mdx b/services/reference/unichain/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 2629809893b..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_call -sidebar_label: eth_call -description: Executes a Unichain call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from './_eth_unichain-call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_chainid.mdx b/services/reference/unichain/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index 3f4f4bc89c7..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_chainId -sidebar_label: eth_chainId -description: Returns the Unichain chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_estimategas.mdx b/services/reference/unichain/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index bf11948f685..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a Unichain transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from './_eth_unichain-estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_feehistory.mdx b/services/reference/unichain/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index b2a245ed3f8..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical Unichain gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_gasprice.mdx b/services/reference/unichain/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 0b7dde960d4..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current Unichain gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getbalance.mdx b/services/reference/unichain/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index d60a4b38eba..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a Unichain address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from './_eth_unichain-getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/unichain/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index 04cf0f7f4e4..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns Unichain block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/unichain/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index cffce927143..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns Unichain block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from './_eth_unichain-getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getblockreceipts.mdx b/services/reference/unichain/json-rpc-methods/eth_getblockreceipts.mdx deleted file mode 100644 index 831e9f3d604..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getblockreceipts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getBlockReceipts -sidebar_label: eth_getBlockReceipts -description: Returns receipts for a block on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockreceipts-description.mdx' - -# `eth_getBlockReceipts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockreceipts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockreceipts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockreceipts-example.mdx' - - - -### Request - -import Request from './_eth_getblockreceipts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockreceipts-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/unichain/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index bff35a64e81..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/unichain/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index 0ed5b4aab07..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from './_eth_unichain-getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getcode.mdx b/services/reference/unichain/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index d35e6aca418..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from './_eth_unichain-getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getlogs.mdx b/services/reference/unichain/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 8f429988815..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from './_eth_unichain-getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getproof.mdx b/services/reference/unichain/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 4292726e62b..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from './_eth_unichain-getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getstorageat.mdx b/services/reference/unichain/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 624cfee97ef..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from './_eth_unichain-getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/unichain/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 636de79f1e8..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response-yparity.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/unichain/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index a085e140926..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from './_eth_unichain-gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response-yparity.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/unichain/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index ad1c7f8b328..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns-yparity.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response-yparity.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/unichain/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index a7f2580285c..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from './_eth_unichain-gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/unichain/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 537f9e19286..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/unichain/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index 64f748d9af7..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/unichain/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index 530c1105da5..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex -description: Gets uncle by block number on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from './_eth_unichain-getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/unichain/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 601a4d348fc..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash -description: Gets uncle count by block hash on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/unichain/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index c568294d802..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from './_eth_unichain-getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/unichain/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index f58ad3db23a..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/unichain/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index 8cdf99fd1d7..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/eth_syncing.mdx b/services/reference/unichain/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index cbaf3e89ebb..00000000000 --- a/services/reference/unichain/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/index.md b/services/reference/unichain/json-rpc-methods/index.md deleted file mode 100644 index 08f80a4458d..00000000000 --- a/services/reference/unichain/json-rpc-methods/index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Unichain JSON-RPC API -sidebar_label: JSON-RPC API -sidebar_key: unichain-json-rpc-api ---- - -import ErrorCodes from "../../\_partials/error-codes.mdx"; - - diff --git a/services/reference/unichain/json-rpc-methods/net_listening.mdx b/services/reference/unichain/json-rpc-methods/net_listening.mdx deleted file mode 100644 index 34cb454e50f..00000000000 --- a/services/reference/unichain/json-rpc-methods/net_listening.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain net_listening -sidebar_label: net_listening -description: Indicates whether client listening for network connections on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_listening-description.mdx' - -# `net_listening` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_listening-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_listening-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_listening-example.mdx' - - - -### Request - -import Request from './_net_listening-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_listening-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/net_peercount.mdx b/services/reference/unichain/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index d5f34a42a5b..00000000000 --- a/services/reference/unichain/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/net_version.mdx b/services/reference/unichain/json-rpc-methods/net_version.mdx deleted file mode 100644 index c7a74f4f714..00000000000 --- a/services/reference/unichain/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain net_version -sidebar_label: net_version -description: Returns network ID on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/web3_clientversion.mdx b/services/reference/unichain/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index 2abadd782d1..00000000000 --- a/services/reference/unichain/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Unichain web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on Unichain. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/unichain/json-rpc-methods/web3_sha3.mdx b/services/reference/unichain/json-rpc-methods/web3_sha3.mdx deleted file mode 100644 index 1b79d039626..00000000000 --- a/services/reference/unichain/json-rpc-methods/web3_sha3.mdx +++ /dev/null @@ -1,58 +0,0 @@ ---- -title: Unichain web3_sha3 -sidebar_label: web3_sha3 ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `web3_sha3` - -Returns a [SHA-3](https://en.wikipedia.org/wiki/SHA-3) hash of the specified data. The result value is a [Keccak-256](https://keccak.team/keccak.html) hash, not the standardized SHA3-256. - -## Parameters - -`data`: [Required] _string_ - data to convert to a SHA3 hash. - -## Returns - -`result`: _string_ - SHA3 result of the input data. - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - - - - - -```bash -curl https://unichain-mainnet.infura.io/v3/YOUR-API-KEY \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_sha3", "params":["0x68656c6c6f20776f726c00"], "id": 1}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "id": 1, - "result": "0x5e39a0a66544c0668bde22d61c47a8710000ece931f13b84d3b2feb44ec96d3f" -} -``` - - - - diff --git a/services/reference/unichain/quickstart.md b/services/reference/unichain/quickstart.md deleted file mode 100644 index b2599245563..00000000000 --- a/services/reference/unichain/quickstart.md +++ /dev/null @@ -1,247 +0,0 @@ ---- -description: Unichain quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# Unichain quickstart - -This quickstart guide will help you set up and make calls on the Unichain network using the Infura endpoints. - - -Don't have an Infura account? Sign up for a free plan and start using the Unichain network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api/) with the Unichain network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://unichain-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -:::note - -In Windows Powershell, quotations in `curl` commands can behave differently than expected. We recommend using Postman on Windows systems. - -::: - -### Postman - -Call the JSON-RPC methods using [Postman](https://learning.postman.com/docs/getting-started/introduction/). - -Select **Run in Postman** to fork the collection and make requests. - -[![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/8171681-49bfbc10-85ae-466c-8cf0-91eba9298b12?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D8171681-49bfbc10-85ae-466c-8cf0-91eba9298b12%26entityType%3Dcollection%26workspaceId%3Db8156083-f4da-481f-84fa-72dcc26cb146) - -:::info - -Set the correct [variables](https://learning.postman.com/docs/sending-requests/variables/#understanding-variables) for your API key and network before running requests. - -::: - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://unichain-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://unichain-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://unichain-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Web3.js - -1. In your project folder, [install the latest version of the web3.js library](https://www.npmjs.com/package/web3?activeTab=versions) - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - var { Web3 } = require('web3') - var provider = 'https://unichain-mainnet.infura.io/v3/' - var web3Provider = new Web3.providers.HttpProvider(provider) - var web3 = new Web3(web3Provider) - - web3.eth.getBlockNumber().then(result => { - console.log('Latest Unichain Block is ', result) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://unichain-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {'content-type': 'application/json'} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the Unichain network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other Unichain APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Ethereum, Arbitrum, Linea, Polygon, Optimism, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats/) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/reference/zksync/index.md b/services/reference/zksync/index.md deleted file mode 100644 index 0cc3a7d134c..00000000000 --- a/services/reference/zksync/index.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -description: ZKsync Era network documentation ---- - -import CardList from '@site/src/components/CardList' - -# ZKsync Era - -:::note Decentralized Infrastructure Network (DIN) - -ZKsync Era is supported through the [DIN](https://www.infura.io/solutions/decentralized-infrastructure-service) service, -meaning calls to the network are routed to [partner infrastructure providers](#partners-and-privacy-policies). - -Infura provides Open Beta access to the ZKsync Era network. During this period, there might be feature limitations. Performance issues are not expected, but they are possible as we optimize and stabilize the service. - -Currently, historical state data starting from June 19th, 2024 is available. Full historical state information for ZKsync Era will be announced when it is available. - -::: - -ZKsync Era is a zero-knowledge Ethereum Virtual Machine (zkEVM) that scales Ethereum. - -:::info see also - -See the [official ZKsync Era documentation](https://docs.zksync.io) for more information. - -::: - - - -## Partners and privacy policies - -No personal information is sent as part of partner requests, only information necessary to fulfill your API request. This means that Infura's partner service provider can service your request, but not store the content of your request. - -The following partners provide access to the ZKsync Era network: - - - -- Chainstack ([Terms of Use](https://chainstack.com/tos/), [Privacy Policy](https://chainstack.com/privacy/)) -- Liquify ([Privacy Policy](https://www.liquify.com/Liquify_RPC_PP.pdf)) -- [NorthWest Nodes](https://northwestnodes.com/) - diff --git a/services/reference/zksync/json-rpc-methods/_eth_accounts-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_accounts-request.mdx deleted file mode 100644 index 400a510ae32..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_accounts-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_accounts", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_blocknumber-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_blocknumber-request.mdx deleted file mode 100644 index 3bd1d688313..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_blocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_call-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_call-request.mdx deleted file mode 100644 index a381de18af6..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_call-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_call", "params": [{"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"}, "latest"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_chainid-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_chainid-request.mdx deleted file mode 100644 index 0d87d2599e2..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_chainid-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_estimategas-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_estimategas-request.mdx deleted file mode 100644 index b4d3b8353f6..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_estimategas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_estimateGas", "params": [{"from": "0x9cE564c7d09f88E7d8233Cdd3A4d7AC42aBFf3aC", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x9184e72a"}], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_feehistory-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_feehistory-request.mdx deleted file mode 100644 index c459c7ffc73..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_feehistory-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"id": 1, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x5", "latest", [20,30]]}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_gasprice-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_gasprice-request.mdx deleted file mode 100644 index 307047b02b1..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_gasprice-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_gasPrice", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getbalance-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getbalance-request.mdx deleted file mode 100644 index df8095ebbd5..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getbalance-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBalance", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getblockbyhash-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getblockbyhash-request.mdx deleted file mode 100644 index feaeb5b740f..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getblockbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", false], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getblockbynumber-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getblockbynumber-request.mdx deleted file mode 100644 index f4685fb305e..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getblockbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": ["0x5BAD55", false], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx deleted file mode 100644 index 9b15ab9f8f4..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getblocktransactioncountbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx deleted file mode 100644 index d1758ceb439..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getblocktransactioncountbynumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getBlockTransactionCountByNumber", "params": ["latest"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getcode-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getcode-request.mdx deleted file mode 100644 index 61b17ca6c7c..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getcode-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getCode", "params": ["0x06012c8cf97bead5deae237070f9587f8e7a266d", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getlogs-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getlogs-request.mdx deleted file mode 100644 index 3f8a06e8d52..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getlogs-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics": ["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getLogs", "params": [{"blockHash": "0x7c5a35e9cb3e8ae0e221ab470abae9d446c3a5626ce6689fc777dcffcab52c70", "topics": ["0x241ea03ca20251805084d27d4440371c34a0b85ff108f6bb5611248f73818b80"]}], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getproof-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getproof-request.mdx deleted file mode 100644 index ef650c76f82..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getproof-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getProof", "id": 1, "params": ["0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842", ["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"], "latest"]}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getstorageat-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getstorageat-request.mdx deleted file mode 100644 index 8e76e309e4b..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getstorageat-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getStorageAt", "params": ["0x295a70b2de5e3953354a6a8344e616ed314d7251", "0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9", "0x65a8db"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx deleted file mode 100644 index 6c395abb116..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx deleted file mode 100644 index b779d210d75..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByBlockNumberAndIndex", "params": ["0x5BAD55", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyhash-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyhash-request.mdx deleted file mode 100644 index af0d3af6a04..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_gettransactionbyhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionByHash", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_gettransactioncount-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_gettransactioncount-request.mdx deleted file mode 100644 index eb7cff38ebe..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_gettransactioncount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionCount", "params": ["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "0x5bad55"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_gettransactionreceipt-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_gettransactionreceipt-request.mdx deleted file mode 100644 index c23bb81fde7..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_gettransactionreceipt-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0xbb3a336e3f823ec18197f1e13ee875700f08f03e2cab75f0d0b118dabb44cba0"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx deleted file mode 100644 index 91a9a8dea45..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getunclebyblockhashandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockHashAndIndex", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx deleted file mode 100644 index a6ffad21130..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getunclebyblocknumberandindex-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c","0x0"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleByBlockNumberAndIndex", "params": ["0x29c", "0x0"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx deleted file mode 100644 index ac6b033966d..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getunclecountbyblockhash-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx deleted file mode 100644 index a2b710d46a7..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getunclecountbyblocknumber-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockNumber", "params": ["0x5bad55"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getUncleCountByBlockHash", "params": ["0xb3b20624f8f0f86eb50dd04688409e5cea4bd02d700bf6e79e9384d47d6a5a35"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_getwork-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_getwork-request.mdx deleted file mode 100644 index 6e809d46198..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_getwork-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_getWork", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_getWork", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_hashrate-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_hashrate-request.mdx deleted file mode 100644 index 2c2f2163e4e..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_hashrate-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_hashrate", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_hashrate", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx deleted file mode 100644 index 53b4c3d4dcb..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_maxpriorityfeepergas-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_maxPriorityFeePerGas", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_mining-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_mining-request.mdx deleted file mode 100644 index 3f91f25355a..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_mining-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_mining", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_mining", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_protocolversion-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_protocolversion-request.mdx deleted file mode 100644 index db8ea91f101..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_protocolversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_protocolVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_sendrawtransaction-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_sendrawtransaction-request.mdx deleted file mode 100644 index 2ddcf2b63af..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_sendrawtransaction-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_sendRawTransaction", "params": ["0xf869018203e882520894f17f52151ebef6c7334fad080c5704d77216b732881bc16d674ec80000801ba02da1c48b670996dcb1f447ef9ef00b33033c48a4fe938f420bec3e56bfd24071a062e0aa78a81bf0290afbc3a9d8e9a068e6d74caa66c5e0fa8a46deaae96b0833"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_submitwork-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_submitwork-request.mdx deleted file mode 100644 index 8cb4ca584a2..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_submitwork-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_submitWork", "params": ["0x0000000000000001", "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", "0xD1FE5700000000000000000000000000D1FE5700000000000000000000000000"], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_eth_syncing-request.mdx b/services/reference/zksync/json-rpc-methods/_eth_syncing-request.mdx deleted file mode 100644 index d18fbf89047..00000000000 --- a/services/reference/zksync/json-rpc-methods/_eth_syncing-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_net_listening-request.mdx b/services/reference/zksync/json-rpc-methods/_net_listening-request.mdx deleted file mode 100644 index a74c6217b6a..00000000000 --- a/services/reference/zksync/json-rpc-methods/_net_listening-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_listening", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_net_peercount-request.mdx b/services/reference/zksync/json-rpc-methods/_net_peercount-request.mdx deleted file mode 100644 index dd320af8437..00000000000 --- a/services/reference/zksync/json-rpc-methods/_net_peercount-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_net_version-request.mdx b/services/reference/zksync/json-rpc-methods/_net_version-request.mdx deleted file mode 100644 index bf700723912..00000000000 --- a/services/reference/zksync/json-rpc-methods/_net_version-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/_web3_clientversion-request.mdx b/services/reference/zksync/json-rpc-methods/_web3_clientversion-request.mdx deleted file mode 100644 index 4486178e303..00000000000 --- a/services/reference/zksync/json-rpc-methods/_web3_clientversion-request.mdx +++ /dev/null @@ -1,22 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/eth_accounts.mdx b/services/reference/zksync/json-rpc-methods/eth_accounts.mdx deleted file mode 100644 index a9840022cfd..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_accounts.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_accounts -sidebar_label: eth_accounts -description: Returns a list of ZKsync Era accounts. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_accounts-description.mdx' - -# `eth_accounts` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_accounts-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_accounts-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_accounts-example.mdx' - - - -### Request - -import Request from './_eth_accounts-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_accounts-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_blocknumber.mdx b/services/reference/zksync/json-rpc-methods/eth_blocknumber.mdx deleted file mode 100644 index 2695b9569d7..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_blocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_blockNumber -sidebar_label: eth_blockNumber -description: Returns the latest ZKsync Era block number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_blocknumber-description.mdx' - -# `eth_blockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_blocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_blocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_blocknumber-example.mdx' - - - -### Request - -import Request from './_eth_blocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_blocknumber-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_call.mdx b/services/reference/zksync/json-rpc-methods/eth_call.mdx deleted file mode 100644 index 051bf3b5ba6..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_call.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_call -sidebar_label: eth_call -description: Executes a ZKsync Era call without creating a transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_call-description.mdx' - -# `eth_call` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_call-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_call-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_call-example.mdx' - - - -### Request - -import Request from './_eth_call-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_call-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_chainid.mdx b/services/reference/zksync/json-rpc-methods/eth_chainid.mdx deleted file mode 100644 index ce5e074d127..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_chainid.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_chainId -sidebar_label: eth_chainId -description: Returns the ZKsync Era chain ID. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_chainid-description.mdx' - -# `eth_chainId` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_chainid-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_chainid-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_chainid-example.mdx' - - - -### Request - -import Request from './_eth_chainid-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_chainid-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_estimategas.mdx b/services/reference/zksync/json-rpc-methods/eth_estimategas.mdx deleted file mode 100644 index b00808ac8ac..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_estimategas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_estimateGas -sidebar_label: eth_estimateGas -description: Estimates gas required for a ZKsync Era transaction. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_estimategas-description.mdx' - -# `eth_estimateGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_estimategas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_estimategas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_estimategas-example.mdx' - - - -### Request - -import Request from './_eth_estimategas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_estimategas-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_feehistory.mdx b/services/reference/zksync/json-rpc-methods/eth_feehistory.mdx deleted file mode 100644 index a31fa726df2..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_feehistory.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_feeHistory -sidebar_label: eth_feeHistory -description: Returns historical ZKsync Era gas information. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_feehistory-description.mdx' - -# `eth_feeHistory` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_feehistory-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_feehistory-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_feehistory-example.mdx' - - - -### Request - -import Request from './_eth_feehistory-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_feehistory-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_gasprice.mdx b/services/reference/zksync/json-rpc-methods/eth_gasprice.mdx deleted file mode 100644 index 5629afbba11..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_gasprice.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_gasPrice -sidebar_label: eth_gasPrice -description: Returns the current ZKsync Era gas price. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gasprice-description.mdx' - -# `eth_gasPrice` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gasprice-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gasprice-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gasprice-example.mdx' - - - -### Request - -import Request from './_eth_gasprice-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gasprice-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getbalance.mdx b/services/reference/zksync/json-rpc-methods/eth_getbalance.mdx deleted file mode 100644 index ae72e81634a..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getbalance.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getBalance -sidebar_label: eth_getBalance -description: Returns the balance of a ZKsync Era address. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getbalance-description.mdx' - -# `eth_getBalance` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getbalance-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getbalance-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getbalance-example.mdx' - - - -### Request - -import Request from './_eth_getbalance-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getbalance-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getblockbyhash.mdx b/services/reference/zksync/json-rpc-methods/eth_getblockbyhash.mdx deleted file mode 100644 index be7ed3a86ed..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getblockbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getBlockByHash -sidebar_label: eth_getBlockByHash -description: Returns ZKsync Era block information by hash. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbyhash-description.mdx' - -# `eth_getBlockByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblockbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbyhash-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getblockbynumber.mdx b/services/reference/zksync/json-rpc-methods/eth_getblockbynumber.mdx deleted file mode 100644 index 27cea70d8a1..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getblockbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getBlockByNumber -sidebar_label: eth_getBlockByNumber -description: Returns ZKsync Era block information by number. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblockbynumber-description.mdx' - -# `eth_getBlockByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblockbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblockbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblockbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblockbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblockbynumber-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx b/services/reference/zksync/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx deleted file mode 100644 index 09bbef91939..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getblocktransactioncountbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getBlockTransactionCountByHash -sidebar_label: eth_getBlockTransactionCountByHash -description: Returns transaction count by block hash on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-description.mdx' - -# `eth_getBlockTransactionCountByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbyhash-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx b/services/reference/zksync/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx deleted file mode 100644 index f82b60f3ef7..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getblocktransactioncountbynumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getBlockTransactionCountByNumber -sidebar_label: eth_getBlockTransactionCountByNumber -description: Returns transaction count by block number on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-description.mdx' - -# `eth_getBlockTransactionCountByNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-example.mdx' - - - -### Request - -import Request from './_eth_getblocktransactioncountbynumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getblocktransactioncountbynumber-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getcode.mdx b/services/reference/zksync/json-rpc-methods/eth_getcode.mdx deleted file mode 100644 index e06b70904f5..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getcode.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getCode -sidebar_label: eth_getCode -description: Returns byte code of a smart contract on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getcode-description.mdx' - -# `eth_getCode` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getcode-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getcode-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getcode-example.mdx' - - - -### Request - -import Request from './_eth_getcode-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getcode-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getlogs.mdx b/services/reference/zksync/json-rpc-methods/eth_getlogs.mdx deleted file mode 100644 index 915f3278162..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getlogs.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getLogs -sidebar_label: eth_getLogs -description: Returns filtered logs on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getlogs-description.mdx' - -# `eth_getLogs` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getlogs-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getlogs-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getlogs-example.mdx' - - - -### Request - -import Request from './_eth_getlogs-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getlogs-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getproof.mdx b/services/reference/zksync/json-rpc-methods/eth_getproof.mdx deleted file mode 100644 index 2a3cc3bbcb5..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getproof.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getProof -sidebar_label: eth_getProof -description: Returns account and storage proofs on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getproof-description.mdx' - -# `eth_getProof` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getproof-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getproof-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getproof-example.mdx' - - - -### Request - -import Request from './_eth_getproof-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getproof-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getstorageat.mdx b/services/reference/zksync/json-rpc-methods/eth_getstorageat.mdx deleted file mode 100644 index 96327a670b4..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getstorageat.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getStorageAt -sidebar_label: eth_getStorageAt -description: Gets storage value for an address on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getstorageat-description.mdx' - -# `eth_getStorageAt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getstorageat-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getstorageat-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getstorageat-example.mdx' - - - -### Request - -import Request from './_eth_getstorageat-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getstorageat-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx b/services/reference/zksync/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx deleted file mode 100644 index 3e36d6c2698..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_gettransactionbyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getTransactionByBlockHashAndIndex -sidebar_label: eth_getTransactionByBlockHashAndIndex -description: Gets a transaction by block hash on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-description.mdx' - -# `eth_getTransactionByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblockhashandindex-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx b/services/reference/zksync/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx deleted file mode 100644 index 05b247455f3..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_gettransactionbyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getTransactionByBlockNumberAndIndex -sidebar_label: eth_getTransactionByBlockNumberAndIndex -description: Gets a transaction by block number on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-description.mdx' - -# `eth_getTransactionByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyblocknumberandindex-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_gettransactionbyhash.mdx b/services/reference/zksync/json-rpc-methods/eth_gettransactionbyhash.mdx deleted file mode 100644 index f649b406498..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_gettransactionbyhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getTransactionByHash -sidebar_label: eth_getTransactionByHash -description: Gets a transaction by hash on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionbyhash-description.mdx' - -# `eth_getTransactionByHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionbyhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionbyhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionbyhash-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionbyhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionbyhash-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_gettransactioncount.mdx b/services/reference/zksync/json-rpc-methods/eth_gettransactioncount.mdx deleted file mode 100644 index 8a8ec40f1e4..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_gettransactioncount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getTransactionCount -sidebar_label: eth_getTransactionCount -description: Gets transaction count for an address on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactioncount-description.mdx' - -# `eth_getTransactionCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactioncount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactioncount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactioncount-example.mdx' - - - -### Request - -import Request from './_eth_gettransactioncount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactioncount-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_gettransactionreceipt.mdx b/services/reference/zksync/json-rpc-methods/eth_gettransactionreceipt.mdx deleted file mode 100644 index 7d99a6acc73..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_gettransactionreceipt.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getTransactionReceipt -sidebar_label: eth_getTransactionReceipt -description: Gets transaction receipt by transaction hash on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_gettransactionreceipt-description.mdx' - -# `eth_getTransactionReceipt` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_gettransactionreceipt-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_gettransactionreceipt-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_gettransactionreceipt-example.mdx' - - - -### Request - -import Request from './_eth_gettransactionreceipt-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_gettransactionreceipt-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getunclebyblockhashandindex.mdx b/services/reference/zksync/json-rpc-methods/eth_getunclebyblockhashandindex.mdx deleted file mode 100644 index 5f919e65e94..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getunclebyblockhashandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getUncleByBlockHashAndIndex -sidebar_label: eth_getUncleByBlockHashAndIndex -description: Gets uncle by block hash on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblockhashandindex-description.mdx' - -# `eth_getUncleByBlockHashAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblockhashandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblockhashandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblockhashandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblockhashandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblockhashandindex-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx b/services/reference/zksync/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx deleted file mode 100644 index 28f9e24d06a..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getunclebyblocknumberandindex.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getUncleByBlockNumberAndIndex -sidebar_label: eth_getUncleByBlockNumberAndIndex -description: Gets uncle by block number on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-description.mdx' - -# `eth_getUncleByBlockNumberAndIndex` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-example.mdx' - - - -### Request - -import Request from './_eth_getunclebyblocknumberandindex-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclebyblocknumberandindex-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getunclecountbyblockhash.mdx b/services/reference/zksync/json-rpc-methods/eth_getunclecountbyblockhash.mdx deleted file mode 100644 index 5f7c831b974..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getunclecountbyblockhash.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getUncleCountByBlockHash -sidebar_label: eth_getUncleCountByBlockHash -description: Gets uncle count by block hash on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblockhash-description.mdx' - -# `eth_getUncleCountByBlockHash` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblockhash-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblockhash-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblockhash-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblockhash-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblockhash-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getunclecountbyblocknumber.mdx b/services/reference/zksync/json-rpc-methods/eth_getunclecountbyblocknumber.mdx deleted file mode 100644 index 8e4952976ff..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getunclecountbyblocknumber.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getUncleCountByBlockNumber -sidebar_label: eth_getUncleCountByBlockNumber -description: Gets uncle count by block number on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getunclecountbyblocknumber-description.mdx' - -# `eth_getUncleCountByBlockNumber` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getunclecountbyblocknumber-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getunclecountbyblocknumber-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getunclecountbyblocknumber-example.mdx' - - - -### Request - -import Request from './_eth_getunclecountbyblocknumber-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getunclecountbyblocknumber-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_getwork.mdx b/services/reference/zksync/json-rpc-methods/eth_getwork.mdx deleted file mode 100644 index 995665d2b47..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_getwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_getWork -sidebar_label: eth_getWork -description: Return current block and seed hash on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_getwork-description.mdx' - -# `eth_getWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_getwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_getwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_getwork-example.mdx' - - - -### Request - -import Request from './_eth_getwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_getwork-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_hashrate.mdx b/services/reference/zksync/json-rpc-methods/eth_hashrate.mdx deleted file mode 100644 index 6c2f0da64b4..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_hashrate.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_hashrate -sidebar_label: eth_hashrate -description: Return hashes per second on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_hashrate-description.mdx' - -# `eth_hashrate` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_hashrate-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_hashrate-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_hashrate-example.mdx' - - - -### Request - -import Request from './_eth_hashrate-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_hashrate-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_maxpriorityfeepergas.mdx b/services/reference/zksync/json-rpc-methods/eth_maxpriorityfeepergas.mdx deleted file mode 100644 index 6d77a18cb1e..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_maxpriorityfeepergas.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_maxPriorityFeePerGas -sidebar_label: eth_maxPriorityFeePerGas -description: Estimates max priority fee on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_maxpriorityfeepergas-description.mdx' - -# `eth_maxPriorityFeePerGas` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_maxpriorityfeepergas-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_maxpriorityfeepergas-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_maxpriorityfeepergas-example.mdx' - - - -### Request - -import Request from './_eth_maxpriorityfeepergas-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_maxpriorityfeepergas-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_mining.mdx b/services/reference/zksync/json-rpc-methods/eth_mining.mdx deleted file mode 100644 index 1eb7f8391b3..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_mining.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_mining -sidebar_label: eth_mining -description: Indicates whether client is mining on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_mining-description.mdx' - -# `eth_mining` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_mining-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_mining-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_mining-example.mdx' - - - -### Request - -import Request from './_eth_mining-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_mining-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_protocolversion.mdx b/services/reference/zksync/json-rpc-methods/eth_protocolversion.mdx deleted file mode 100644 index 35414c04d8d..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_protocolversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_protocolVersion -sidebar_label: eth_protocolVersion -description: Returns protocol version on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_protocolversion-description.mdx' - -# `eth_protocolVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_protocolversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_protocolversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_protocolversion-example.mdx' - - - -### Request - -import Request from './_eth_protocolversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_protocolversion-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_sendrawtransaction.mdx b/services/reference/zksync/json-rpc-methods/eth_sendrawtransaction.mdx deleted file mode 100644 index bd4ca77dbde..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_sendrawtransaction.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_sendRawTransaction -sidebar_label: eth_sendRawTransaction -description: Submits pre-signed transaction on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_sendrawtransaction-description.mdx' - -# `eth_sendRawTransaction` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_sendrawtransaction-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_sendrawtransaction-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_sendrawtransaction-example.mdx' - - - -### Request - -import Request from './_eth_sendrawtransaction-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_sendrawtransaction-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_submitwork.mdx b/services/reference/zksync/json-rpc-methods/eth_submitwork.mdx deleted file mode 100644 index 110da220848..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_submitwork.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_submitWork -sidebar_label: eth_submitWork -description: Submits PoW solution on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_submitwork-description.mdx' - -# `eth_submitWork` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_submitwork-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_submitwork-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_submitwork-example.mdx' - - - -### Request - -import Request from './_eth_submitwork-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_submitwork-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/eth_syncing.mdx b/services/reference/zksync/json-rpc-methods/eth_syncing.mdx deleted file mode 100644 index af82dc94319..00000000000 --- a/services/reference/zksync/json-rpc-methods/eth_syncing.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_syncing -sidebar_label: eth_syncing -description: Indicates whether client is syncing on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_eth_syncing-description.mdx' - -# `eth_syncing` - - - -## Parameters - -import Params from '/services/reference/_partials/_eth_syncing-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_eth_syncing-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_eth_syncing-example.mdx' - - - -### Request - -import Request from './_eth_syncing-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_eth_syncing-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/index.md b/services/reference/zksync/json-rpc-methods/index.md deleted file mode 100644 index 2de7193f5cd..00000000000 --- a/services/reference/zksync/json-rpc-methods/index.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -sidebar_label: JSON-RPC API -sidebar_key: zksync-json-rpc-api ---- - -# ZKsync Era JSON-RPC API - -ZKsync Era supports the standard Ethereum JSON-RPC-APIs and additional -ZKsync Era-specific methods not supported on Ethereum. diff --git a/services/reference/zksync/json-rpc-methods/net_listening.mdx b/services/reference/zksync/json-rpc-methods/net_listening.mdx deleted file mode 100644 index c358d3dee4f..00000000000 --- a/services/reference/zksync/json-rpc-methods/net_listening.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era net_listening -sidebar_label: net_listening -description: Indicates whether client listening for network connections on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_listening-description.mdx' - -# `net_listening` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_listening-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_listening-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_listening-example.mdx' - - - -### Request - -import Request from './_net_listening-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_listening-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/net_peercount.mdx b/services/reference/zksync/json-rpc-methods/net_peercount.mdx deleted file mode 100644 index 59f796636da..00000000000 --- a/services/reference/zksync/json-rpc-methods/net_peercount.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era net_peerCount -sidebar_label: net_peerCount -description: Returns peer count on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_peercount-description.mdx' - -# `net_peerCount` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_peercount-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_peercount-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_peercount-example.mdx' - - - -### Request - -import Request from './_net_peercount-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_peercount-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/net_version.mdx b/services/reference/zksync/json-rpc-methods/net_version.mdx deleted file mode 100644 index c9b28b6901f..00000000000 --- a/services/reference/zksync/json-rpc-methods/net_version.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era net_version -sidebar_label: net_version -description: Returns network ID on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_net_version-description.mdx' - -# `net_version` - - - -## Parameters - -import Params from '/services/reference/_partials/_net_version-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_net_version-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_net_version-example.mdx' - - - -### Request - -import Request from './_net_version-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_net_version-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx b/services/reference/zksync/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx deleted file mode 100644 index b312ca9cdfe..00000000000 --- a/services/reference/zksync/json-rpc-methods/subscription-methods/_eth_subscribe-request.mdx +++ /dev/null @@ -1,27 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newHeads"]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics": ["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]}' -``` - - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx b/services/reference/zksync/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx deleted file mode 100644 index 799057dea92..00000000000 --- a/services/reference/zksync/json-rpc-methods/subscription-methods/_eth_unsubscribe-request.mdx +++ /dev/null @@ -1,12 +0,0 @@ -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}' -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/subscription-methods/eth_subscribe.mdx b/services/reference/zksync/json-rpc-methods/subscription-methods/eth_subscribe.mdx deleted file mode 100644 index 05159e3ada2..00000000000 --- a/services/reference/zksync/json-rpc-methods/subscription-methods/eth_subscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_subscribe -sidebar_label: eth_subscribe -description: Creates new subscription on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_subscribe-description.mdx' - -# `eth_subscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_subscribe-parameters-no-pending.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_subscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_subscribe-example.mdx' - - - -### Request - -import Request from './_eth_subscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_subscribe-response-no-pending.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx b/services/reference/zksync/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx deleted file mode 100644 index 98ca6286ea5..00000000000 --- a/services/reference/zksync/json-rpc-methods/subscription-methods/eth_unsubscribe.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era eth_unsubscribe -sidebar_label: eth_unsubscribe -description: Cancels subscription on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-description.mdx' - -# `eth_unsubscribe` - - - -## Parameters - -import Params from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-example.mdx' - - - -### Request - -import Request from './_eth_unsubscribe-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/subscription-methods/_eth_unsubscribe-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/subscription-methods/index.md b/services/reference/zksync/json-rpc-methods/subscription-methods/index.md deleted file mode 100644 index cce4010cc2a..00000000000 --- a/services/reference/zksync/json-rpc-methods/subscription-methods/index.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -title: ZkSync subscription methods -sidebar_label: Subscription methods -sidebar_key: zksync-subscription-methods -description: ZkSync subscription methods ---- - -# ZKsync Era subscription methods - -Subscription methods are available for [WebSocket](../../../../concepts/websockets.md) connections only, and allow you to wait for events instead of polling for them. For example, dapps can subscribe to logs and receive notifications when a specific event occurs. - -The following subscription methods are available: - -- [`eth_subscribe`](./eth_subscribe.mdx) - Create a subscription to a particular event -- [`eth_unsubscribe`](./eth_unsubscribe.mdx) - Cancel an active subscription - -:::info - -We recommend you use the WSS protocol to set up bidirectional stateful subscriptions. Stateless HTTP WebSockets are also -supported. - -::: diff --git a/services/reference/zksync/json-rpc-methods/web3_clientversion.mdx b/services/reference/zksync/json-rpc-methods/web3_clientversion.mdx deleted file mode 100644 index ae3c8bb547c..00000000000 --- a/services/reference/zksync/json-rpc-methods/web3_clientversion.mdx +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: ZKsync Era web3_clientVersion -sidebar_label: web3_clientVersion -description: Returns client version on ZKsync Era. ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -import Description from '/services/reference/_partials/_web3_clientversion-description.mdx' - -# `web3_clientVersion` - - - -## Parameters - -import Params from '/services/reference/_partials/_web3_clientversion-parameters.mdx' - - - -## Returns - -import Returns from '/services/reference/_partials/_web3_clientversion-returns.mdx' - - - -## Example - -import Example from '/services/reference/_partials/_web3_clientversion-example.mdx' - - - -### Request - -import Request from './_web3_clientversion-request.mdx' - - - -### Response - -import Response from '/services/reference/_partials/_web3_clientversion-response.mdx' - - diff --git a/services/reference/zksync/json-rpc-methods/zks_estimatefee.mdx b/services/reference/zksync/json-rpc-methods/zks_estimatefee.mdx deleted file mode 100644 index 0ada860c826..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_estimatefee.mdx +++ /dev/null @@ -1,73 +0,0 @@ ---- -title: zks_estimateFee -sidebar_label: zks_estimateFee ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_estimateFee` - -Returns the fee for the transaction. - -## Parameters - -- `from`: [_Required_] Address from which the transaction is sent. -- `to`: [_Required_] Address to which the transaction is addressed. -- `data`: Data associated with the transaction. - -## Returns - -The estimated fee which includes: - -- `gas_limit`: Maximum amount of gas that the transaction is allowed to use. -- `gas_per_pubdata_limit`: Amount of gas consumed per public data byte. -- `max_fee_per_gas`: Maximum fee, in wei that can be paid per gas unit. -- `max_priority_fee_per_gas`: Maximum priority fee, in wei that can be paid per gas unit. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":2, "method": "zks_estimateFee", "params": [ { "from": "0x1111111111111111111111111111111111111111", "to":"0x2222222222222222222222222222222222222222", "data": "0xffffffff" } ] }' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0", "id":2, "method": "zks_estimateFee", "params": [ { "from": "0x1111111111111111111111111111111111111111", "to":"0x2222222222222222222222222222222222222222", "data": "0xffffffff" } ] }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "gas_limit": "0x156c00", - "gas_per_pubdata_limit": "0x143b", - "max_fee_per_gas": "0xee6b280", - "max_priority_fee_per_gas": "0x0" - }, - "id": 2 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_estimategasl1tol2.mdx b/services/reference/zksync/json-rpc-methods/zks_estimategasl1tol2.mdx deleted file mode 100644 index e1f70aa53d8..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_estimategasl1tol2.mdx +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: zks_estimateGasL1ToL2 -sidebar_label: zks_estimateGasL1ToL2 ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_estimateGasL1ToL2` - -Returns an estimate of the gas required for a layer 1 (L1) to layer 2 (L2) transaction. - -## Parameters - -- `from`: [_Required_] Address from which the transaction is sent. -- `to`: [_Required_] Address to which the transaction is addressed. -- `data`: Data associated with the transaction. - -## Response - -The estimate of the gas required for a L1 to L2 transaction. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc":"2.0", "id":2, "method": "zks_estimateGasL1ToL2", "params": [ { "from": "0x1111111111111111111111111111111111111111", "to":"0x2222222222222222222222222222222222222222", "data": "0xffffffff" } ] }' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc":"2.0", "id":2, "method": "zks_estimateGasL1ToL2", "params": [ { "from": "0x1111111111111111111111111111111111111111", "to":"0x2222222222222222222222222222222222222222", "data": "0xffffffff" } ] }' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x25f64db", - "id": 2 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getallaccountbalances.mdx b/services/reference/zksync/json-rpc-methods/zks_getallaccountbalances.mdx deleted file mode 100644 index b7590b898ac..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getallaccountbalances.mdx +++ /dev/null @@ -1,63 +0,0 @@ ---- -title: zks_getAllAccountBalances -sidebar_label: zks_getAllAccountBalances ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getAllAccountBalances` - -Returns all balances for confirmed tokens given by an account address. - -## Parameters - -- `address`: [_Required_] The account address. - -## Returns - -The method returns all balances for confirmed tokens associated with the provided account address. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getAllAccountBalances", "params": [ "0x98E9D288743839e96A8005a6B51C770Bbf7788C0" ]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getAllAccountBalances", "params": [ "0x98E9D288743839e96A8005a6B51C770Bbf7788C0" ]}' -``` - - - - -## Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "0x0000000000000000000000000000000000000000": "0x2fbd72a1121b3100" - }, - "id": 2 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getblockdetails.mdx b/services/reference/zksync/json-rpc-methods/zks_getblockdetails.mdx deleted file mode 100644 index 3b4730ac477..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getblockdetails.mdx +++ /dev/null @@ -1,102 +0,0 @@ ---- -title: zks_getBlockDetails -sidebar_label: zks_getBlockDetails ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getBlockDetails` - -Returns additional ZKsync-specific information about the L2 block. - -## Parameters - -- `block`: (string) [_Required_] The number of the block. - -## Returns - -Object containing the details of the L2 block: - -- `baseSystemContractsHashes`: An object containing hashes of the base system contracts used in the transaction: - - `bootloader`: The hash of the bootloader contract. - - `default_aa`: The hash of the default account contract. -- `commitTxHash`: The hash of the transaction committed to the network. -- `committedAt`: The timestamp when the transaction was committed to the network. -- `executeTxHash`: The hash of the transaction executed on the network. -- `executedAt`: The timestamp when the transaction was executed on the network. -- `l1BatchNumber`: The batch number of the transaction on the L1 (Ethereum) network. -- `l1GasPrice`: The gas price used for the transaction on the L1 network. -- `l1TxCount`: The number of transactions related to this batch on the L1 network. -- `l2FairGasPrice`: The fair gas price used for the transaction on the L2 (ZKsync) network. -- `l2TxCount`: The total number of transactions on the L2 network. -- `number`: The transaction number. -- `operatorAddress`: The address of the operator who executed the transaction. -- `proveTxHash`: The hash of the proof transaction on the L1 network. -- `provenAt`: The timestamp when the proof transaction was done on the L1 network. -- `rootHash`: The root hash representing the state of the network after the transaction. -- `status`: The status of the transaction. -- `timestamp`: The timestamp of the transaction. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBlockDetails", "params": [ 140599 ]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBlockDetails", "params": [ 140599 ]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "baseSystemContractsHashes": { - "bootloader": "0x010007793a328ef16cc7086708f7f3292ff9b5eed9e7e539c184228f461bf4ef", - "default_aa": "0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc" - }, - "commitTxHash": "0xd045e3698f018cb233c3817eb53a41a4c5b28784ffe659da246aa33bda34350c", - "committedAt": "2023-03-26T07:21:21.046817Z", - "executeTxHash": "0xbb66aa75f437bb4255cf751badfc6b142e8d4d3a4e531c7b2e737a22870ff19e", - "executedAt": "2023-03-27T07:44:52.187764Z", - "l1BatchNumber": 1617, - "l1GasPrice": 20690385511, - "l1TxCount": 0, - "l2FairGasPrice": 250000000, - "l2TxCount": 20, - "number": 140599, - "operatorAddress": "0xfeee860e7aae671124e9a4e61139f3a5085dfeee", - "proveTxHash": "0x1591e9b16ff6eb029cc865614094b2e6dd872c8be40b15cc56164941ed723a1a", - "provenAt": "2023-03-26T19:48:35.200565Z", - "rootHash": "0xf1adac176fc939313eea4b72055db0622a10bbd9b7a83097286e84e471d2e7df", - "status": "verified", - "timestamp": 1679815038 - }, - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getbridgecontracts.mdx b/services/reference/zksync/json-rpc-methods/zks_getbridgecontracts.mdx deleted file mode 100644 index 2726b7a2f83..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getbridgecontracts.mdx +++ /dev/null @@ -1,69 +0,0 @@ ---- -title: zks_getBridgeContracts -sidebar_label: zks_getBridgeContracts ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getBridgeContracts` - -Returns the L1 and L2 address of the default bridges. - -## Parameters - -None. - -## Response - -The default bridges used in the ZKsync network: - -- `l1Erc20DefaultBridge` - The address of the default bridge contract responsible for handling ERC-20 token - transfers from the L1 network to the L2 network -- `l2Erc20DefaultBridge` - The address of the default bridge contract responsible for handling ERC-20 token - transfers from the L2 network to the L1 network - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBridgeContracts", "params": []}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBridgeContracts", "params": []}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "l1Erc20DefaultBridge": "0x57891966931eb4bb6fb81430e6ce0a03aabde063", - "l2Erc20DefaultBridge": "0x11f943b2c77b743ab90f4a0ae7d5a4e7fca3e102" - }, - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getbytecodebyhash.mdx b/services/reference/zksync/json-rpc-methods/zks_getbytecodebyhash.mdx deleted file mode 100644 index 99441e8c0e3..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getbytecodebyhash.mdx +++ /dev/null @@ -1,74 +0,0 @@ ---- -title: zks_getBytecodeByHash -sidebar_label: zks_getBytecodeByHash ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getBytecodeByHash` - -Returns the bytecode of a transaction for the provided hash. - -## Parameters - -- `hash`: (string) [_Required_] The hash of the transaction. - -## Response - -The byte code of the given transaction. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBytecodeByHash", "params": ["0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getBytecodeByHash", "params": ["0x0100067d861e2f5717a12c3e869cfb657793b86bbb0caa05cc1421f16c5217bc"]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": [ - 0, - 4, - 0, - 0, - 0, - 0, - 0, - 2, - 0, - 11, - ..., - ... - ], - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getl1batchblockrange.mdx b/services/reference/zksync/json-rpc-methods/zks_getl1batchblockrange.mdx deleted file mode 100644 index 7ad1e249131..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getl1batchblockrange.mdx +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: zks_getL1BatchBlockRange -sidebar_label: zks_getL1BatchBlockRange ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getL1BatchBlockRange` - -Returns the range of blocks contained within a given batch. - -## Parameters - -- `batch`: (integer) [_Required_] The layer 1 batch number. - -## Response - -The range of blocks contained within the specified batch. The range is given by the -beginning/end block numbers in hexadecimal. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL1BatchBlockRange", "params": [12345]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL1BatchBlockRange", "params": [12345]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": ["0x116fec", "0x117015"], - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getl1batchdetails.mdx b/services/reference/zksync/json-rpc-methods/zks_getl1batchdetails.mdx deleted file mode 100644 index fe40109cc8c..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getl1batchdetails.mdx +++ /dev/null @@ -1,81 +0,0 @@ ---- -title: zks_getL1BatchDetails -sidebar_label: zks_getL1BatchDetails ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getL1BatchDetails` - -Returns data pertaining to a given L1 batch. - -## Parameters - -- `batch`: (integer) [_Required_] The layer 1 batch number. - -## Response - -Detailed information about the specified L1 batch: - -- `baseSystemContractsHashes`: An object containing hashes of the base system contracts used in the transaction: - - `bootloader`: The hash of the bootloader contract. - - `default_aa`: The hash of the default account contract. -- `commitTxHash`: The hash of the transaction committed to the network. -- `committedAt`: The timestamp when the transaction was committed to the network. -- `executeTxHash`: The hash of the transaction executed on the network. -- `executedAt`: The timestamp when the transaction was executed on the network. -- `l1BatchNumber`: The batch number of the transaction on the L1 (Ethereum) network. -- `l1GasPrice`: The gas price used for the transaction on the L1 network. -- `l1TxCount`: The number of transactions related to this batch on the L1 network. -- `l2FairGasPrice`: The fair gas price used for the transaction on the L2 (ZKsync) network. -- `l2TxCount`: The total number of transactions on the L2 network. -- `number`: The transaction number. -- `operatorAddress`: The address of the operator who executed the transaction. -- `proveTxHash`: The hash of the proof transaction on the L1 network. -- `provenAt`: The timestamp when the proof transaction was done on the L1 network. -- `rootHash`: The root hash representing the state of the network after the transaction. -- `status`: The status of the transaction. -- `timestamp`: The timestamp of the transaction. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL1BatchDetails", "params": [12345]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL1BatchDetails", "params": [12345]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x25f64db", - "id": 2 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getl2tol1logproof.mdx b/services/reference/zksync/json-rpc-methods/zks_getl2tol1logproof.mdx deleted file mode 100644 index 08fcac37823..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getl2tol1logproof.mdx +++ /dev/null @@ -1,79 +0,0 @@ ---- -title: zks_getL2ToL1LogProof -sidebar_label: zks_getL2ToL1LogProof ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getL2ToL1LogProof` - -Returns the proof for the corresponding L2 to L1 log. The index of the log that can be obtained -from the transaction receipt. - -## Parameters - -- `tx_hash`: [_Required_] Hash of the L2 transaction the L2 to L1 log was produced in. -- `l2_to_l1_log_index`: [_Optional_] The index of the L2 to L1 log in the transaction. - -## Response - -- `id` - The position of the leaf in the Merkle tree of L2 to L1 messages for the block. -- `proof` - The Merkle proof for the message. -- `root` - The root hash representing the Merkle tree root at the time the log was generated. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL2ToL1LogProof", "params": ["0x2a1c6c74b184965c0cb015aae9ea134fd96215d2e4f4979cfec12563295f610e"]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL2ToL1LogProof", "params": ["0x2a1c6c74b184965c0cb015aae9ea134fd96215d2e4f4979cfec12563295f610e"]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "id": 0, - "proof": [ - "0x8c48910df2ca7de509daf50b3182fcdf2dd6c422c6704054fd857d6c9516d6fc", - "0xc5028885760b8b596c4fa11497c783752cb3a3fb3b8e6b52d7e54b9f1c63521e", - "0xeb1f451eb8163723ee19940cf3a8f2a2afdf51100ce8ba25839bd94a057cda16", - "0x7aabfd367dea2b5306b8071c246b99566dae551a1dbd40da791e66c4f696b236", - "0xe4733f281f18ba3ea8775dd62d2fcd84011c8c938f16ea5790fd29a03bf8db89", - "0x1798a1fd9c8fbb818c98cff190daa7cc10b6e5ac9716b4a2649f7c2ebcef2272", - "0x66d7c5983afe44cf15ea8cf565b34c6c31ff0cb4dd744524f7842b942d08770d", - "0xb04e5ee349086985f74b73971ce9dfe76bbed95c84906c5dffd96504e1e5396c", - "0xac506ecb5465659b3a927143f6d724f91d8d9c4bdb2463aee111d9aa869874db" - ], - "root": "0x920c63cb0066a08da45f0a9bf934517141bd72d8e5a51421a94b517bf49a0d39" - }, - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getl2tol1msgproof.mdx b/services/reference/zksync/json-rpc-methods/zks_getl2tol1msgproof.mdx deleted file mode 100644 index ccdbb5c8628..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getl2tol1msgproof.mdx +++ /dev/null @@ -1,68 +0,0 @@ ---- -title: zks_getL2ToL1MsgProof -sidebar_label: zks_getL2ToL1MsgProof ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getL2ToL1MsgProof` - -Returns the proof for a message sent through the L1Messenger system contract, given a -block, sender, message, and an optional message log index containing the L1 to L2 message. - -## Parameters - -- `block`: (integer) [_Required_] Block where the message was emitted. -- `sender`: (string) [_Required_] The sender (account) of the message. -- `msg`: [_Required_] The keccak256 hash of the sent message. -- `l2_log_position`: The index in the block of the event that was emitted by the L1Messenger - when submitting this message. If it is omitted, the proof for the first message is returned. - -## Response - -- `id` - The position of the leaf in the Merkle tree of L2 to L1 messages for the block. -- `proof` - The Merkle proof for the message. -- `root` - The root hash representing the Merkle tree root at the time the log was generated. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL2ToL1MsgProof", "params": [5187, "0x87869cb87c4Fa78ca278dF358E890FF73B42a39E", "0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9"]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getL2ToL1MsgProof", "params": [5187, "0x87869cb87c4Fa78ca278dF358E890FF73B42a39E", "0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9"]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x25f64db", - "id": 2 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getmaincontract.mdx b/services/reference/zksync/json-rpc-methods/zks_getmaincontract.mdx deleted file mode 100644 index 7579e78d766..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getmaincontract.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: zks_getMainContract -sidebar_label: zks_getMainContract ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getMainContract` - -Returns the address of the ZKsync Era contract. - -## Parameters - -None. - -## Response - -The address of the main ZKsync Era contract on the network. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getMainContract", "params": []}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getMainContract", "params": []}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x32400084c286cf3e17e7b677ea9583e60a000324", - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getproof.mdx b/services/reference/zksync/json-rpc-methods/zks_getproof.mdx deleted file mode 100644 index 1a0c869a0a0..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getproof.mdx +++ /dev/null @@ -1,86 +0,0 @@ ---- -title: zks_getProof -sidebar_label: zks_getProof ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getProof` - -Returns Merkle proofs for one or more storage values for the specified account along with a Merkle proof -of their authenticity. This allows you to verify that the values have not been tampered with. - -## Parameters - -- `address`: [_Required_] The account to fetch storage values and proofs for. -- `keys`: [_Required_] Vector of storage keys in the account. -- `l1BatchNumber`: [_Required_] Number of the L1 batch specifying the point in time at which the requested values are returned. - -## Response - -- `address`: The account address. -- `storageProof`: Proof for each of the requested keys in the order at which they were requested: - - `key` - The requested storage key. - - `value` - The storage value. - - `index` - Index of the tree entry. - - `proof` - Sequence of zero or more 32-byte hashes that form a Merkle path for the key in the Merkle tree. - Hashes are listed using the root-to-leaf ordering. The root hash is excluded; it is published on L1 as a part of L1 batch commit data. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getProof", "params": ["0x0000000000000000000000000000000000008003", ["0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12"], 354895]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getProof", "params": ["0x0000000000000000000000000000000000008003", ["0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12"], 354895]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "address": "0x0000000000000000000000000000000000008003", - "storageProof": [ - { - "key": "0x8b65c0cf1012ea9f393197eb24619fd814379b298b238285649e14f936a5eb12", - "proof": [ - "0xe3e8e49a998b3abf8926f62a5a832d829aadc1b7e059f1ea59ffbab8e11edfb7", - "0x9bebfa036e85a6ffb6bf447a9c7d41af176642c6aaf5cfbc97128f4f10d8a25a", - ... - "0x9ebd7b37a21fb0c74d0040a941038887caf4e4c7dfaa182b82915cacc6191025", - "0x4550ab30af8c76557a74d051eb43a964889d383d6da343c6a4f4799595d86f9c" - ], - "value": "0x0000000000000000000000000000000000000000000000000000000000000060", - "index": 27900957 - } - ] - }, - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_getrawblocktransactions.mdx b/services/reference/zksync/json-rpc-methods/zks_getrawblocktransactions.mdx deleted file mode 100644 index 5fc26037189..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_getrawblocktransactions.mdx +++ /dev/null @@ -1,113 +0,0 @@ ---- -title: zks_getRawBlockTransactions -sidebar_label: zks_getRawBlockTransactions ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getRawBlockTransactions` - -Returns data about the transactions in the specified block. - -## Parameters - -- `block`: (integer) [_Required_] Block number. - -## Response - -Object containing the data about the executed transaction: - -- `L1`: Object containing information about the corresponding transaction on the L1 network: - - `canonicalTxHash`: The canonical hash of the transaction on the L1 network. - - `deadlineBlock`: The deadline block for the transaction on the L1 network. - - `ethBlock`: The Ethereum block number for the transaction. - - `ethHash`: The Ethereum transaction hash for the transaction. - - `fullFee`: The full fee for the transaction in hexadecimal format. - - `gasLimit`: The gas limit for the transaction in hexadecimal format. - - `gasPerPubdataLimit`: The gas per public data limit for the transaction in hexadecimal format. - - `layer2TipFee`: The tip fee for the transaction on the L2 network in hexadecimal format. - - `maxFeePerGas`: The maximum fee per gas for the transaction in hexadecimal format. - - `opProcessingType`: The type of operation processing used for the transaction. - - `priorityQueueType`: The type of priority queue used for the transaction. - - `refundRecipient`: The recipient address for any potential refund for the transaction. - - `sender`: The sender address of the transaction. - - `serialId`: The serial ID of the transaction. - - `toMint`: The address to mint tokens for the transaction. -- `execute`: Object that contains information about the transaction execution: - - `calldata`: The calldata for the execution in hexadecimal format. - - `contractAddress`: The contract address for the execution. - - `factoryDeps`: An array containing factory dependencies for the execution. - - `value`: The value for the execution in hexadecimal format. -- `received_timestamp_ms`: The transaction timestamp. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash - curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getRawBlockTransactions", "params": [5817]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getRawBlockTransactions", "params": [5817]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": [ - { - "common_data": { - "L1": { - "canonicalTxHash": "0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9", - "deadlineBlock": 0, - "ethBlock": 16751339, - "ethHash": "0x0000000000000000000000000000000000000000000000000000000000000000", - "fullFee": "0x0", - "gasLimit": "0x989680", - "gasPerPubdataLimit": "0x320", - "layer2TipFee": "0x0", - "maxFeePerGas": "0x0", - "opProcessingType": "Common", - "priorityQueueType": "Deque", - "refundRecipient": "0x87869cb87c4fa78ca278df358e890ff73b42a39e", - "sender": "0x87869cb87c4fa78ca278df358e890ff73b42a39e", - "serialId": 67, - "toMint": "0x0" - } - }, - "execute": { - "calldata": "0x471c46c800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000031edd5a882583cbf3a712e98e100ef34ad6934b400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001", - "contractAddress": "0xfc5b07a5dd1b80cf271d35642f75cc0500ff1e2c", - "factoryDeps": [], - "value": "0x0" - }, - "received_timestamp_ms": 1677887544169 - } - ], - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_gettestnetpaymaster.mdx b/services/reference/zksync/json-rpc-methods/zks_gettestnetpaymaster.mdx deleted file mode 100644 index 4f8e1a25c80..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_gettestnetpaymaster.mdx +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: zks_getTestnetPaymaster -sidebar_label: zks_getTestnetPaymaster ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getTestnetPaymaster` - -Returns the address of the [testnet paymaster](https://docs.zksync.io/zksync-protocol/era-vm/account-abstraction/paymasters#testnet-paymaster) -available on testnets and enables paying fees in ERC-20 compatible tokens. - -## Parameters - -None. - -## Response - -The address of the testnet paymaster. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-sepolia.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getTestnetPaymaster", "params": []}' -``` - - - - -```bash -wscat -c wss://zksync-sepolia.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getTestnetPaymaster", "params": []}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x8f0ea1312da29f17eabeb2f484fd3c112cccdd63", - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_gettransactiondetails.mdx b/services/reference/zksync/json-rpc-methods/zks_gettransactiondetails.mdx deleted file mode 100644 index cf61d8408b9..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_gettransactiondetails.mdx +++ /dev/null @@ -1,81 +0,0 @@ ---- -title: zks_getTransactionDetails -sidebar_label: zks_getTransactionDetails ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_getTransactionDetails` - -Returns data about a transaction given by the transaction hash. - -## Parameters - -- `hash`: [_Required_] The transaction hash encoded in hexadecimal format. - -## Response - -Object containing the transaction data: - -- `ethCommitTxHash`: The transaction hash of the commit transaction. -- `ethExecuteTxHash`: The transaction hash of the execute transaction. -- `ethProveTxHash`: The Ethereum transaction hash of the proof transaction. -- `fee`: The fee amount for the transaction in hexadecimal format. -- `gasPerPubdata`: The gas per public data for the transaction in hexadecimal format. -- `initiatorAddress`: The address of the transaction initiator. -- `isL1Originated`: A boolean value indicating whether the transaction originated from L1 network. -- `receivedAt`: The timestamp when the transaction was received on the L2 network. -- `status`: The status of the transaction. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_getTransactionDetails", "params": ["0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9"]}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_getTransactionDetails", "params": ["0x22de7debaa98758afdaee89f447ff43bab5da3de6acca7528b281cc2f1be2ee9"]}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": { - "ethCommitTxHash": "0x3da5b6eda357189c9243c41c5a33b1b2ed0169be172705d74681a25217702772", - "ethExecuteTxHash": "0xdaff5fd7ff91333b161de54534b4bb6a78e5325329959a0863bf0aae2b0fdcc6", - "ethProveTxHash": "0x2f482d3ea163f5be0c2aca7819d0beb80415be1a310e845a2d726fbc4ac54c80", - "fee": "0x0", - "gasPerPubdata": "0x320", - "initiatorAddress": "0x87869cb87c4fa78ca278df358e890ff73b42a39e", - "isL1Originated": true, - "receivedAt": "2023-03-03T23:52:24.169Z", - "status": "verified" - }, - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_l1batchnumber.mdx b/services/reference/zksync/json-rpc-methods/zks_l1batchnumber.mdx deleted file mode 100644 index dfd156873fd..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_l1batchnumber.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: zks_L1BatchNumber -sidebar_label: zks_L1BatchNumber ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_L1BatchNumber` - -Returns the latest L1 batch number. - -## Parameters - -None. - -## Response - -The latest L1 batch number in hexadecimal format. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_L1BatchNumber", "params": []}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_L1BatchNumber", "params": []}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x544c", - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/json-rpc-methods/zks_l1chainid.mdx b/services/reference/zksync/json-rpc-methods/zks_l1chainid.mdx deleted file mode 100644 index e2c06ee7181..00000000000 --- a/services/reference/zksync/json-rpc-methods/zks_l1chainid.mdx +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: zks_L1ChainId -sidebar_label: zks_L1ChainId ---- - -import Tabs from '@theme/Tabs' -import TabItem from '@theme/TabItem' - -# `zks_L1ChainId` - -Returns the chain ID of the underlying L1. - -## Parameters - -None. - -## Response - -The L1 chain ID. - -## Example - -Replace `` with an API key from your [Infura dashboard](https://app.infura.io/). - -### Request - - - - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "id": 1, "method": "zks_L1ChainId", "params": []}' -``` - - - - -```bash -wscat -c wss://zksync-mainnet.infura.io/ws/v3/ -x '{"jsonrpc": "2.0", "id": 1, "method": "zks_L1ChainId", "params": []}' -``` - - - - -### Response - - - - -```json -{ - "jsonrpc": "2.0", - "result": "0x1", - "id": 1 -} -``` - - - diff --git a/services/reference/zksync/quickstart.md b/services/reference/zksync/quickstart.md deleted file mode 100644 index 5a707689b81..00000000000 --- a/services/reference/zksync/quickstart.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -description: ZKsync Era quickstart guide -sidebar_position: 2 -sidebar_label: Quickstart ---- - -import Banner from '@site/src/components/Banner' - -# ZKsync Era quickstart - -This quickstart guide will help you set up and make calls on the ZKsync Era network using the Infura endpoints. - - -Don't have an Infura account? Sign up for our free plan and start using the ZKsync Era network! - - -## Prerequisites - -Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api) with the ZKsync Era network enabled. - -## Make calls - -### curl - -Run the following command in your terminal, replacing `` with your actual Infura API key: - -```bash -curl https://zksync-mainnet.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}' -``` - -### Node (JavaScript) - -In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager. - -#### Node Fetch - -1. In your project folder, install the `node-fetch` package using npm: - - ```bash - npm i node-fetch - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - import fetch from 'node-fetch' - - fetch('https://zksync-mainnet.infura.io/v3/', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }), - }) - .then(response => response.json()) - .then(data => { - console.log(data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Axios - -1. In your project folder, install the `axios` package using npm: - - ```bash - npm i axios - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const axios = require('axios') - - axios - .post('https://zksync-mainnet.infura.io/v3/', { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - }) - .then(response => { - console.log(response.data) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -#### Ethers - -1. In your project folder, install the `ethers` package using npm: - - ```bash - npm install ethers - ``` - -1. Create your JavaScript file and copy the following code: - - Replace `` with your actual Infura API key. - - ```javascript title="index.js" - const ethers = require('ethers') - - const provider = new ethers.providers.JsonRpcProvider( - 'https://zksync-mainnet.infura.io/v3/' - ) - - provider - .getBlockNumber() - .then(blockNumber => { - console.log(blockNumber) - }) - .catch(error => { - console.error(error) - }) - ``` - -1. Run the code using the following command: - - ```bash - node index.js - ``` - -### Python - -1. In your project folder, install the `requests` library: - - ```bash - pip install requests - ``` - -1. Create your Python file and copy the following code: - - Replace `` with your actual Infura API key. - - ```python title="index.py" - import requests - import json - - url = "https://zksync-mainnet.infura.io/v3/" - - payload = { - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - } - - headers = {"content-type": "application/json"} - - response = requests.post(url, data=json.dumps(payload), headers=headers).json() - - print(response) - ``` - -1. Run the code using the following command: - - ```bash - python index.py - ``` - -## Next steps - -Now that you have successfully made a call to the ZKsync Era network, you can explore more functionalities and APIs provided -by Infura. Here are some suggestions: - -- **Explore other ZKsync Era APIs**: Infura supports a wide range of APIs. You can find more information in the - [JSON-RPC API method documentation](json-rpc-methods/index.md). - -- **Try out different networks**: Infura supports multiple networks including Arbitrum, Polygon, Optimism, IPFS, and more. - -- **Monitor your usage**: Monitor your usage on the [Infura dashboard](/developer-tools/dashboard/how-to/dashboard-stats) to ensure you're not hitting your rate limits. - -Remember, the MetaMask community is here to help. If you have any questions or run into any issues, check out the -[MetaMask community](https://community.metamask.io/) for help and answers to common questions. diff --git a/services/tutorials/ethereum/_category_.json b/services/tutorials/ethereum/_category_.json deleted file mode 100644 index 1605ce62c0b..00000000000 --- a/services/tutorials/ethereum/_category_.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "label": "Ethereum", - "position": 1, - "key": "ethereum-tutorials" -} diff --git a/services/tutorials/ethereum/authenticate-with-jwt.md b/services/tutorials/ethereum/authenticate-with-jwt.md deleted file mode 100644 index 15945c3769e..00000000000 --- a/services/tutorials/ethereum/authenticate-with-jwt.md +++ /dev/null @@ -1,367 +0,0 @@ ---- -description: Apply a JWT to authenticate an API request. -sidebar_position: 1 ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -# Authenticate with JWT - -This tutorial demonstrates how to create and apply a JSON Web Token (JWT) to authenticate an -[`eth_blockNumber`](../../reference/ethereum/json-rpc-methods/eth_blocknumber.mdx) API request -with Node.js. - -## Prerequisites - -- [Node](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) version 20+ -- A text editor (for example, [VS Code](https://code.visualstudio.com/)) -- An [Infura account](https://app.infura.io/register) - -## Steps - -### 1. Initiate your project - -Create a new directory for your project: - -```bash -mkdir infura-jwt-demo -``` - -Next, change into the `infura-jwt-demo` directory: - -```bash -cd infura-jwt-demo -``` - -Initialize a new Node.js project: - -```bash -npm init -y -``` - -Install the required dependencies: - -```bash -npm install axios jsonwebtoken dotenv -``` - -### 2. Create a key pair - -#### 2.1. Generate your private key - -Generate your private key using the RSA (PKCS #8) or ES256 algorithm: - - - - -```bash -openssl genpkey \ - -algorithm RSA \ - -out private_key.pem \ - -pkeyopt rsa_keygen_bits:2048 \ - -outform PEM -``` - - - - -```bash -openssl ecparam \ - -genkey \ - -name prime256v1 \ - -noout \ - -out private_key.pem -``` - - - - -#### 2.2. Generate your public key - -Generate your public key from your RSA or ES256 private key: - - - - -```bash -openssl rsa \ - -in private_key.pem \ - -pubout \ - -out public_key.pem -``` - - - - -```bash -openssl ec \ - -in private_key.pem \ - -pubout \ - -out public_key.pem -``` - - - - -### 3. Set up your `.env` file - -#### 3.1. Update the Infura dashboard - -In the [Infura dashboard](https://app.infura.io/login), under **API Keys**, select the key you want to use for authentication. Go to its **Settings** tab. Under **Requirements**, fill out these fields: - -- **JWT PUBLIC KEY NAME** - Provide a unique name for your JWT public key, which can help you manage multiple keys. -- **JWT PUBLIC KEY** - Paste the entire contents of the `public_key.pem` file. - -:::note - -Optionally, you can check **REQUIRE JWT FOR ALL REQUESTS**. If this option is not checked, you can make calls using your key without a JWT in the request header, however, invalid or expired tokens will result in the call being rejected. - -::: - -#### 3.2. Create your `.env` file - -At the root of your Node.js project, create an environment file: - -```bash -touch .env -``` - -Add the following details to `.env`: - - - - -```text title=".env" -INFURA_API_KEY= -JWT_KEY_ID= -INFURA_NETWORK_URL= -``` - - - - -```text title=".env" -INFURA_API_KEY=8c101...6b26c77d8 -JWT_KEY_ID=777e2caf...826bc4303f -INFURA_NETWORK_URL=https://sepolia.infura.io/v3/ -``` - - - - -Replace the following values in the `.env` file: - -- `` with your API key from the Infura dashboard. -- `` with the JWT's key ID. This is generated by Infura, and you can find it in the Infura dashboard. The code in [Step 4](#4-create-and-apply-your-jwt) applies this ID to the JWT header to allow Infura to identify which key was used to sign the JWT. -- `` with the URL of an Infura network for which your key has access rights, and that supports the method [`eth_blockNumber`](../../reference/ethereum/json-rpc-methods/eth_blocknumber.mdx). - -:::warning Important - -Before pushing code to a public repository, add `.env` to your `.gitignore` file. This reduces the likelihood that keys are exposed in public repositories. - -Note that `.gitignore` ignores only untracked files. If your `.env` file was committed in the past, it's tracked by Git. Untrack the file by deleting it and running `git rm --cached .env`, then include it in `.gitignore`. - -::: - -### 4. Create and apply your JWT - -Create a new file named `call.js`: - -```bash -touch call.js -``` - -Add the following to `call.js`: - -```javascript title="call.js" -require('dotenv').config() -const axios = require('axios') -const jwt = require('jsonwebtoken') -const fs = require('fs') - -function getAlgorithm(privateKey) { - if (privateKey.includes('BEGIN RSA PRIVATE KEY') || privateKey.includes('BEGIN PRIVATE KEY')) { - return 'RS256' - } else if (privateKey.includes('BEGIN EC PRIVATE KEY')) { - return 'ES256' - } else { - throw new Error('Unsupported key type') - } -} - -// Function to generate the JWT -function generateJWT() { - const privateKey = fs.readFileSync('private_key.pem', 'utf8') - const algorithm = getAlgorithm(privateKey) - const token = jwt.sign({}, privateKey, { - algorithm: algorithm, // Dynamically set the algorithm based on the key type - keyid: process.env.JWT_KEY_ID, - audience: 'infura.io', - expiresIn: '1h', - header: { - typ: 'JWT', - }, - }) - - return token -} - -// Function to authenticate with Infura and get the latest block number -async function getBlockNumber() { - const jwtToken = generateJWT() - const url = `${process.env.INFURA_NETWORK_URL}${process.env.INFURA_API_KEY}` - const data = { - jsonrpc: '2.0', - method: 'eth_blockNumber', - params: [], - id: 1, - } - - try { - const response = await axios.post(url, data, { - headers: { - Authorization: 'Bearer ' + jwtToken, - 'Content-Type': 'application/json', - }, - }) - console.log('Block number:', response.data.result) - } catch (error) { - console.error( - 'Error fetching block number:', - error.response ? error.response.data : error.message - ) - } -} - -// Call the function to get latest block -getBlockNumber() -``` - -Next, run the code: - -```bash -node call.js -``` - -Your console outputs the response, for example: - -```bash -Block number: 0x61fc48 -``` - -:::tip - -This script: - -1. Generates a JWT with a 1-hour expiry that is only valid on `infura.io`. -2. Applies this JWT to form the header of a `getBlockNumber` call. -3. Submits the API call. - -::: - -### (Optional) Examine the curl equivalent - -If you want to better understand the code applied in [Step 4](#4-create-and-apply-your-jwt), you can examine the equivalent curl request. - -Create a new file named `curl.js`: - -```bash -touch curl.js -``` - -Add the following to `curl.js`: - -```javascript title="curl.js" -require('dotenv').config() -const jwt = require('jsonwebtoken') -const fs = require('fs') - -function getAlgorithm(privateKey) { - if (privateKey.includes('BEGIN RSA PRIVATE KEY') || privateKey.includes('BEGIN PRIVATE KEY')) { - return 'RS256' - } else if (privateKey.includes('BEGIN EC PRIVATE KEY')) { - return 'ES256' - } else { - throw new Error('Unsupported key type') - } -} - -// Function to generate the JWT -function generateJWT() { - const privateKey = fs.readFileSync('private_key.pem', 'utf8') - const algorithm = getAlgorithm(privateKey) - const token = jwt.sign({}, privateKey, { - algorithm: algorithm, // Dynamically set the algorithm based on the key type - keyid: process.env.JWT_KEY_ID, - audience: 'infura.io', - expiresIn: '1h', - header: { - typ: 'JWT', - }, - }) - return token -} - -// Generate the JWT and print the curl command -async function printCurlRequest() { - const jwtToken = generateJWT() - console.log('Generated JWT:', jwtToken) - const curlRequest = ` - curl -X POST ${process.env.INFURA_NETWORK_URL}${process.env.INFURA_API_KEY} \\ - -H "Authorization: Bearer ${jwtToken}" \\ - -H "Content-Type: application/json" \\ - -d '{ - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - }' - ` - console.log('Equivalent curl request:') - console.log(curlRequest) -} - -// Call the function to print the curl request -printCurlRequest() -``` - -Next, run the code: - -```bash -node curl.js -``` - -Your console outputs the curl request, for example: - -```bash -curl -X POST https://sepolia.infura.io/v3/ \ - -H "Authorization: Bearer pqJhbG**JWT-token**2Ud5o2Q" \ - -H "Content-Type: application/json" \ - -d '{ - "jsonrpc": "2.0", - "method": "eth_blockNumber", - "params": [], - "id": 1 - }' -``` - -You can run this request yourself to make the call. Your console outputs the response, for example: - -```bash -{"jsonrpc":"2.0","id":1,"result":"0x61fc48"} -``` - -## Next steps - -Consider following these next steps: - -- [Configure your JWT](../../how-to/json-web-token-jwt.md) to control its scope. -- Decode your JWT: Copy the JWT provided in the console by the [optional curl equivalent step](#optional-examine-the-curl-equivalent), and paste it into the **Encoded** field in [jwt.io](https://jwt.io/). -- Add a layer of verification to your call by applying the JWT's **FINGERPRINT** provided in the Infura dashboard. - - :::note - - The JWT's fingerprint is a hash of the public key, used to ensure the key's integrity and authenticity. - - ::: diff --git a/services/tutorials/ethereum/call-a-contract.md b/services/tutorials/ethereum/call-a-contract.md deleted file mode 100644 index abfc4d1606c..00000000000 --- a/services/tutorials/ethereum/call-a-contract.md +++ /dev/null @@ -1,87 +0,0 @@ ---- -description: Use Web3.js to execute a smart contract function. -sidebar_position: 3 ---- - -# Call a contract - -This tutorial uses Web3.js to execute a function in a smart contract. Calling the contract function is a type of transaction that requires paying gas. - -## Prerequisites - -Before attempting this tutorial, ensure you completed the tutorial to [deploy a contract](deploy-a-contract-using-web3.js.md) and [updated the `.env` file with the smart contract address](deploy-a-contract-using-web3.js.md#10-update-the-env-file). - -## Steps - -### 1. Create a script to execute the contract - -In the `deployContract` folder created [earlier](deploy-a-contract-using-web3.js.md#2-create-a-project-directory), create the JavaScript file that executes a contract function and signs the transaction. - -In this example we'll create the `call.js` file with the following contents: - -```javascript -const { Web3 } = require('web3') - -// Loading the contract ABI -// (the results of a previous compilation step) -const fs = require('fs') -const { abi } = JSON.parse(fs.readFileSync('Demo.json')) - -async function main() { - // Configuring the connection to an Ethereum node - const network = process.env.ETHEREUM_NETWORK - const web3 = new Web3( - new Web3.providers.HttpProvider(`https://${network}.infura.io/v3/${process.env.INFURA_API_KEY}`) - ) - // Creating a signing account from a private key - const signer = web3.eth.accounts.privateKeyToAccount('0x' + process.env.SIGNER_PRIVATE_KEY) - web3.eth.accounts.wallet.add(signer) - // Creating a Contract instance - const contract = new web3.eth.Contract( - abi, - // Replace this with the address of your deployed contract - process.env.DEMO_CONTRACT - ) - // Issuing a transaction that calls the `echo` method - const method_abi = contract.methods.echo('Hello, world!').encodeABI() - const tx = { - from: signer.address, - to: contract.options.address, - data: method_abi, - value: '0', - gasPrice: '100000000000', - } - const gas_estimate = await web3.eth.estimateGas(tx) - tx.gas = gas_estimate - const signedTx = await web3.eth.accounts.signTransaction(tx, signer.privateKey) - console.log('Raw transaction data: ' + signedTx.rawTransaction) - // Sending the transaction to the network - const receipt = await web3.eth - .sendSignedTransaction(signedTx.rawTransaction) - .once('transactionHash', txhash => { - console.log(`Mining transaction ...`) - console.log(`https://${network}.etherscan.io/tx/${txhash}`) - }) - // The transaction is now on chain! - console.log(`Mined in block ${receipt.blockNumber}`) -} - -require('dotenv').config() -main() -``` - -### 2. Call the contract - -Run the script to call the smart contract: - -``` -node call.js -``` - -:::info - -If you receive an `insufficient funds for gas` error, then you may need to top up your signer account with some testnet ETH. - -::: - -The script will display the details of the transaction in the output. View the transaction in a block explorer such as Etherscan. diff --git a/services/tutorials/ethereum/deploy-a-contract-using-web3.js.md b/services/tutorials/ethereum/deploy-a-contract-using-web3.js.md deleted file mode 100644 index 1b3675dffd5..00000000000 --- a/services/tutorials/ethereum/deploy-a-contract-using-web3.js.md +++ /dev/null @@ -1,244 +0,0 @@ ---- -description: Create and deploy a smart contract. -sidebar_position: 2 ---- - -# Deploy a contract using web3.js - -In this tutorial, you'll create a simple smart contract and use the Web3 JavaScript library to compile and then deploy the smart contract. - -## Prerequisites - -- An [Ethereum project](../../get-started/infura.md) on Infura -- [Node.js installed](https://nodejs.org/en/download/) -- An Ethereum account for testing purposes - -:::info - -You can use [MetaMask](https://metamask.io) or similar to create an Ethereum account for testing purposes. - -::: - -## Steps - -### 1. Fund your Ethereum account - -[Use the MetaMask faucet to load testnet ETH](/developer-tools/faucet) on your Ethereum account for the Sepolia network. - -If using a network other than Sepolia, ensure you [update your environment file](deploy-a-contract-using-web3.js.md#10-update-the-env-file) with the network name. - -### 2. Create a project directory - -Create a new directory for your project. You can do this from the command line: - -```bash -mkdir deployContract -``` - -Change into the new directory: - -```bash -cd deployContract -``` - -### 3. Install required packages - -Install the `web3`, `solc`, and `dotenv` packages in the project directory. - -:::info - -The [`dotenv`](../../how-to/javascript-dotenv.md) package allows you to use a `.env` file to securely store private environment variables on your local machine. - -::: - -Install the `web3` package: - -``` -npm install web3 -``` - -:::info - -This example has been written for web3js v4.x. It may not work for earlier versions. - -::: - -Install the solidity compiler (`solc` package): - -``` -npm install solc -``` - -Install the `dotenv` package: - -``` -npm install dotenv -``` - -### 4. Create the `.env` file - -Create a `.env` file in your project directory to store the project and Ethereum account details. - -``` -ETHEREUM_NETWORK = "sepolia" -INFURA_API_KEY = "" -SIGNER_PRIVATE_KEY = "" -``` - -Ensure you replace the following values in the `.env` file: - -- `` with the API key of the Ethereum project. -- `` with the [private key of your Ethereum account](https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-Export-an-Account-Private-Key). -- If using a network other than Sepolia, ensure you update `ETHEREUM_NETWORK` with the network name. - -:::danger - -Never disclose your private key. Anyone with your private keys can steal any assets held in your account. - -::: - -### 5. Create a smart contract - -Using an editor, create a smart contract. In this example, we'll create a basic contract called `Demo.sol`. - -```javascript -pragma solidity >=0.5.8; - -contract Demo { - event Echo(string message); - - function echo(string calldata message) external { - emit Echo(message); - } -} -``` - -### 6. Create the compile script - -We need to compile the contract to ensure the code is correct. - -:::info - -You can compile the smart contract using the [`solc` command line options](https://docs.soliditylang.org/en/develop/using-the-compiler.html). In this example, we'll create a compile script using JavaScript. - -::: - -Create a file called `compile.js` with the following content: - -```javascript -const fs = require('fs').promises -const solc = require('solc') - -async function main() { - // Load the contract source code - const sourceCode = await fs.readFile('Demo.sol', 'utf8') - // Compile the source code and retrieve the ABI and Bytecode - const { abi, bytecode } = compile(sourceCode, 'Demo') - // Store the ABI and Bytecode into a JSON file - const artifact = JSON.stringify({ abi, bytecode }, null, 2) - await fs.writeFile('Demo.json', artifact) -} - -function compile(sourceCode, contractName) { - // Create the Solidity Compiler Standard Input and Output JSON - const input = { - language: 'Solidity', - sources: { main: { content: sourceCode } }, - settings: { outputSelection: { '*': { '*': ['abi', 'evm.bytecode'] } } }, - } - // Parse the compiler output to retrieve the ABI and Bytecode - const output = solc.compile(JSON.stringify(input)) - const artifact = JSON.parse(output).contracts.main[contractName] - return { - abi: artifact.abi, - bytecode: artifact.evm.bytecode.object, - } -} - -main() -``` - -### 7. Run the compile script - -In the [compile script](deploy-a-contract-using-web3.js.md#6-create-the-compile-script) we'll also copy the generated [Application Binary Interface (ABI)](https://docs.soliditylang.org/en/develop/abi-spec.html) and binary to a file called `Demo.json`. - -To compile the contract run the following command: - -``` -node compile.js -``` - -A file called `Demo.json` should be created in the directory. - -### 8. Create the deployment script - -Next, we'll create a deployment script called `deploy.js`. The script uses the Web3 methods to sign the transaction and deploy the smart contract to the network. - -```javascript -const { Web3 } = require('web3') - -// Loading the contract ABI and Bytecode -// (the results of a previous compilation step) -const fs = require('fs') -const { abi, bytecode } = JSON.parse(fs.readFileSync('Demo.json')) - -async function main() { - // Configuring the connection to an Ethereum node - const network = process.env.ETHEREUM_NETWORK - const web3 = new Web3( - new Web3.providers.HttpProvider(`https://${network}.infura.io/v3/${process.env.INFURA_API_KEY}`) - ) - // Creating a signing account from a private key - const signer = web3.eth.accounts.privateKeyToAccount('0x' + process.env.SIGNER_PRIVATE_KEY) - web3.eth.accounts.wallet.add(signer) - - // Using the signing account to deploy the contract - const contract = new web3.eth.Contract(abi) - contract.options.data = bytecode - const deployTx = contract.deploy() - const deployedContract = await deployTx - .send({ - from: signer.address, - gas: await deployTx.estimateGas(), - }) - .once('transactionHash', txhash => { - console.log(`Mining deployment transaction ...`) - console.log(`https://${network}.etherscan.io/tx/${txhash}`) - }) - // The contract is now deployed on chain! - console.log(`Contract deployed at ${deployedContract.options.address}`) - console.log( - `Add DEMO_CONTRACT to the .env file to store the contract address: ${deployedContract.options.address}` - ) -} - -require('dotenv').config() -main() -``` - -### 9. Deploy the contract - -Run the deployment script to deploy the contract to the blockchain: - -``` -node deploy.js -``` - -The contract deploys to the blockchain and the script displays the contract address. - -To make calls to the contract in the future we'll need the contract address. Next we'll update the `.env` file to store the contract address. - -### 10. Update the .env file - -Update the .`env` file in the working directory to include the contract address. In this example, we'll add the `DEMO_CONTRACT` variable: - -``` -ETHEREUM_NETWORK = "sepolia" -INFURA_API_KEY = "" -SIGNER_PRIVATE_KEY = "" -DEMO_CONTRACT = "" -``` - -## Next steps - -You can now make [calls to the deployed contract](call-a-contract.md). A contract call is a transaction that will consume gas on the public Ethereum network. diff --git a/services/tutorials/ethereum/monitor-transfers-using-python.md b/services/tutorials/ethereum/monitor-transfers-using-python.md deleted file mode 100644 index 0a315257f44..00000000000 --- a/services/tutorials/ethereum/monitor-transfers-using-python.md +++ /dev/null @@ -1,175 +0,0 @@ ---- -description: Monitor transfers to an Ethereum account. -sidebar_position: 4 ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Monitor transfers using Python - -In this tutorial, you'll monitor transfers to an Ethereum account using the Web3 Python library. - -## Prerequisites - -- [Pip](https://pip.pypa.io/en/stable/installation/) installed - -## Steps - -### 1. Create a project directory - -Create a new directory for your project. This can be done from the command line: - -```bash -mkdir monitorTransfer -``` - -Change into the new directory: - -```bash -cd monitorTransfer -``` - -### 2. Install required packages - -Install the `web3.py` package: - -```bash -pip install web3 -``` - -### 3. Create a script file - -Create a file called `monitorTransactions.py`. At the top of file, add the following lines to import the `web3.py` library: - -```python -from web3 import Web3 -import time -``` - -### 4. Connect to Infura - -Connect to the Infura endpoint and the address of the account: - -```python -infura_url = "https://mainnet.infura.io/v3/" -account = "" -web3 = Web3(Web3.HTTPProvider(infura_url)) -``` - -:::warning - -Replace `` with your Infura API key and `` with the Ethereum account you want to monitor. - -::: - -### 5. Set the function - -Create a function to check new transactions for the account defined in [step 3](#3-create-a-script-file) and retrieves the details for the transaction: - -```python -def watch(): - while True: - block = web3.eth.get_block("latest") - print("Searching in block " + str(block.number)) - - if block and block.transactions: - for transaction in block.transactions: - tx_hash = transaction.hex() # the hashes are stored in a hexBytes format - tx = web3.eth.get_transaction(tx_hash) - if tx.to is not None: - if tx.to == account: - print("Transaction found in block {} :".format(block.number)) - print({ - "hash": tx_hash, - "from": tx["from"], - "value": web3.from_wei(tx["value"], "ether") - }) - time.sleep(5) - -watch() -``` - -### 6. Check for confirmations - -Exchanges often wait until a deposit has reached a certain number of confirmations before processing the new transaction. The number of confirmations is the number of blocks that have passed since the transaction was included onchain. By checking that a transaction has reached the specified number of confirmations, the exchange can be confident that this transaction is final and they can process the deposit. - -Create a function to determine the number of confirmations for the transaction: - -```python -def confirmations(tx_hash): - tx = web3.eth.get_transaction(tx_hash) - return web3.eth.block_number - tx.blockNumber -``` - -You can then call the function using something similar to: - -```python -print(confirmations(tx_hash)) -``` - -### 7. Run the script - -Run the script using the following command: - - - - -```python -python3 monitorTransactions.py -``` - - - - -```python -Searching in block 15019035 -Transaction found in block 15019035 : -{"hash": "0x0f878eb882dfd069c482740df533e0ddef63504d795dcc3c934c3f9a6c159362", "from": "0x95B564F3B3BaE3f206aa418667bA000AFAFAcc8a", "value": 0} -Transaction found in block 15019035 : -{"hash": "0xee75ed766e17fef1cae917686b5b73e7c72b2fcf51e1558629b8fe96a7e5a1bd", "from": "0x9696f59E4d72E237BE84fFD425DCaD154Bf96976", "value": 0} -Transaction found in block 15019035 : -{"hash": "0x1cddbeff3ac97651f5d7e49e98f4289aeef728e08b05180c75bc04cdc970895d", "from": "0x21a31Ee1afC51d94C2eFcCAa2092aD1028285549", "value": 0} -... -67341 -``` - - - - -### Complete code overview - -```python -from web3 import Web3 -import time - -infura_url = "https://mainnet.infura.io/v3/" -account = "" -web3 = Web3(Web3.HTTPProvider(infura_url)) - -def confirmations(tx_hash): - tx = web3.eth.get_transaction(tx_hash) - return web3.eth.block_number - tx.blockNumber - -def watch(): - while True: - block = web3.eth.get_block("latest") - print("Searching in block " + str(block.number)) - - if block and block.transactions: - for transaction in block.transactions: - tx_hash = transaction.hex() # the hashes are stored in a hexBytes format - tx = web3.eth.get_transaction(tx_hash) - if tx.to is not None: - if tx.to == account: - print("Transaction found in block {} :".format(block.number)) - print({ - "hash": tx_hash, - "from": tx["from"], - "value": web3.from_wei(tx["value"], "ether") - }) - time.sleep(5) - -watch() -# print(confirmations("0x0d40d60e118e9e1f61c2baa2252cc5f8b8ed491c885ec35db6fd6cfc8589c1a7")) -``` diff --git a/services/tutorials/ethereum/retrieve-and-display-erc-721-and-erc-1155-tokens.md b/services/tutorials/ethereum/retrieve-and-display-erc-721-and-erc-1155-tokens.md deleted file mode 100644 index 3b22ad6e0e7..00000000000 --- a/services/tutorials/ethereum/retrieve-and-display-erc-721-and-erc-1155-tokens.md +++ /dev/null @@ -1,382 +0,0 @@ ---- -description: Retrieve and display ERC-721 and ERC-1155 tokens. -sidebar_position: 5 ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Retrieve and display ERC-721 and ERC-1155 tokens - -In this tutorial, you'll retrieve and display ERC-721 and ERC-1155 tokens using the Web3 JavaScript library. - -## Prerequisites - -- An [Ethereum project](../../get-started/infura.md) on Infura -- [Node.js installed](https://nodejs.org/en/download/) - -## Steps - -### 1. Create a project directory - -Create a new directory for your project. This can be done from the command line: - -```bash -mkdir retrieveBalance -``` - -Change into the new directory: - -```bash -cd retrieveBalance -``` - -### 2. Install required packages - -Install the `web3` package in the project directory: - -```bash -npm install web3 -``` - -:::info - -This example has been written for web3js v4.x. It may not work for earlier versions. - -::: - -### 3. Set up the script - -Create a file called `retrieveBalance.js`. At the top of the file, add the following lines to import the web3.js library and connect to the Infura HTTPS endpoint: - -```javascript -const { Web3 } = require('web3') - -const web3 = new Web3( - new Web3.providers.HttpProvider('https://mainnet.infura.io/v3/') -) -``` - -Replace `` with your Infura API key. - -### 4. Set the ABI - -For ERC-721 NFTs, use the `tokenURI` function, which is part of the ERC-721 standard. This function retrieves a token's metadata so you can view it. For ERC-1155, use the `uri` method. - -Note the `tokenURI` and `uri` methods are optional for contracts. However, these methods are the only standardized onchain way of seeing NFT metadata without using a third-party API. - -Define the ABI for the respective method by adding the following to the script: - - - - -```javascript -const tokenURIABI = [ - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'tokenURI', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, -] -``` - - - - -```javascript -const uriABI = [ - { - constant: true, - inputs: [ - { - internalType: 'uint256', - name: '_id', - type: 'uint256', - }, - ], - name: 'uri', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, -] -``` - - - - -### 5. Request the metadata - -Define the ABI for the respective method by adding the following to the script: - - - - -```javascript -const tokenContract = '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d' -const tokenId = 101 -``` - - - - -```javascript -const tokenContract = '0x76be3b62873462d2142405439777e971754e8e77' -const tokenId = 10570 -``` - - - - -`tokenContract` is the address of the token contract, and `tokenId` is the ID of the specific token to display. - -Define the contract using `web3.eth.Contract()`, passing the ABI and contract address as parameters: - - - - -```javascript -const contract = new web3.eth.Contract(tokenURIABI, tokenContract) -``` - - - - -```javascript -const contract = new web3.eth.Contract(uriABI, tokenContract) -``` - - - - -Next, create an `async` function that interacts with the smart contract. - -This calls the ABI function defined in [step 4](retrieve-and-display-erc-721-and-erc-1155-tokens.md#4-set-the-abi). - - - - -```javascript -async function getNFTMetadata() { - const result = await contract.methods.tokenURI(tokenId).call() - - console.log(result) // ipfs://QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq/101 -} - -getNFTMetadata() -``` - - - - -```javascript -async function getNFTMetadata() { - const result = await contract.methods.uri(tokenId).call() - - console.log(result) // https://nftdata.parallelnft.com/api/parallel-alpha/ipfs/QmSwnqTmpwvZH51Uv47opPUxGYx2nknYmGoKoRJQRMDcLL -} - -getNFTMetadata() -``` - - - - -### 6. Display the token - -The ERC-1155 contract returns an HTTP URL , which you can directly enter into a browser. The ERC-721 contract returns an IPFS hash you can access using Infura. - -#### Access IPFS - -In your Infura account, create a new IPFS project. [Enable your dedicated gateways](../../how-to/use-ipfs/access-ipfs-content/dedicated-gateways.md), and you can access IPFS using your unique subdomain. - -In the script, add a function to combine the IPFS hash and your Infura subdomain endpoint: - - - - -```javascript -function addIPFSProxy(ipfsHash) { - const URL = 'https://.infura-ipfs.io/ipfs/' - const hash = ipfsHash.replace(/^ipfs?:\/\//, '') - const ipfsURL = URL + hash - - console.log(ipfsURL) // https://.infura-ipfs.io/ipfs/ - return ipfsURL -} -``` - - - - -Replace `` with your Infura IPFS subdomain. - -#### Update request for metadata - -Update the request for metadata to allow access to the IPFS hash through your Infura endpoint. In the `getNFTMetadata` function defined in [step 5](retrieve-and-display-erc-721-and-erc-1155-tokens.md#5-request-the-metadata), add the following: - -```javascript -const ipfsURL = addIPFSProxy(result) - -const response = await fetch(ipfsURL) -const metadata = await response.json() -console.log(metadata) // Metadata in JSON - -const image = addIPFSProxy(metadata.image) -``` - -Also add this line to the top of the file: - -```JavaScript -const fetch = require("node-fetch"); -``` - -This returns the IPFS hash combined with our Infura endpoint, you can directly access in your browser to view the NFT. - -### 7. Run the script - -Run the script using the following command: - -```bash -node retrieveBalance.js -``` - -### Complete code overview - -Note some ERC-721 contracts return a regular HTTP URL, while some ERC-1155 contracts return an IPFS hash. You can add the IPFS code from [step 6](retrieve-and-display-erc-721-and-erc-1155-tokens.md#6-display-the-token) to an ERC-1155 contract that returns an IPFS hash. - - - - -```js -const fetch = require('node-fetch') -const { Web3 } = require('web3') - -const web3 = new Web3( - new Web3.providers.HttpProvider('https://mainnet.infura.io/v3/') -) - -const tokenURIABI = [ - { - inputs: [ - { - internalType: 'uint256', - name: 'tokenId', - type: 'uint256', - }, - ], - name: 'tokenURI', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - stateMutability: 'view', - type: 'function', - }, -] - -const tokenContract = '0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d' // BAYC contract address -const tokenId = 101 // A token we'd like to retrieve its metadata of - -const contract = new web3.eth.Contract(tokenURIABI, tokenContract) - -async function getNFTMetadata() { - const result = await contract.methods.tokenURI(tokenId).call() - - console.log(result) // ipfs://QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq/101 - - const ipfsURL = addIPFSProxy(result) - - const response = await fetch(ipfsURL) - const metadata = await response.json() - console.log(metadata) // Metadata in JSON - - const image = addIPFSProxy(metadata.image) -} - -getNFTMetadata() - -function addIPFSProxy(ipfsHash) { - const URL = 'https://.infura-ipfs.io/ipfs/' - const hash = ipfsHash.replace(/^ipfs?:\/\//, '') - const ipfsURL = URL + hash - - console.log(ipfsURL) // https://.infura-ipfs.io/ipfs/ - return ipfsURL -} -``` - - - - -```javascript -const { Web3 } = require('web3') - -const web3 = new Web3( - new Web3.providers.HttpProvider('https://mainnet.infura.io/v3/') -) - -const uriABI = [ - { - constant: true, - inputs: [ - { - internalType: 'uint256', - name: '_id', - type: 'uint256', - }, - ], - name: 'uri', - outputs: [ - { - internalType: 'string', - name: '', - type: 'string', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, -] - -const tokenContract = '0x76be3b62873462d2142405439777e971754e8e77' // Parallel contract address -const tokenId = 10570 // A token we'd like to retrieve its metadata of - -const contract = new web3.eth.Contract(uriABI, tokenContract) - -async function getNFTMetadata() { - const result = await contract.methods.uri(tokenId).call() - - console.log(result) // https://nftdata.parallelnft.com/api/parallel-alpha/ipfs/QmSwnqTmpwvZH51Uv47opPUxGYx2nknYmGoKoRJQRMDcLL -} - -getNFTMetadata() -``` - - - diff --git a/services/tutorials/ethereum/retrieve-the-balance-of-an-erc-20-token.md b/services/tutorials/ethereum/retrieve-the-balance-of-an-erc-20-token.md deleted file mode 100644 index c125e78dfc2..00000000000 --- a/services/tutorials/ethereum/retrieve-the-balance-of-an-erc-20-token.md +++ /dev/null @@ -1,203 +0,0 @@ ---- -description: Retrieve the balance of an ERC-20 token. -sidebar_position: 6 ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Retrieve the balance of an ERC-20 token - -In this tutorial, using Web3.js, you'll retrieve the balance of an [ERC-20 token](../../how-to/interact-with-erc-20-tokens.md) in an account, using the account address and the token contract. - -## Prerequisites - -- An [Ethereum project](../../get-started/infura.md) on Infura -- [Node.js installed](https://nodejs.org/en/download/) - -## Steps - -### 1. Create a project directory - -Create a new directory for your project. This can be done from the command line: - -```bash -mkdir retrieveBalance -``` - -Change into the new directory: - -```bash -cd retrieveBalance -``` - -### 2. Install required packages - -Install the `web3` package in the project directory: - -```bash -npm install web3 -``` - -### 3. Set up the script - -Create a file called `retrieveBalance.js`. At the top of the file, add the following lines to import the web3.js library and connect to the Infura HTTPS endpoint: - -```javascript -const { Web3 } = require('web3') -const web3 = new Web3( - new Web3.providers.HttpProvider('https://mainnet.infura.io/v3/') -) -``` - -Make sure to replace `` with your Infura API key. - -### 4. Set the ABI - -You'll only use the `balanceOf` method, so you don't need the entire ABI for ERC-20 smart contracts. In the `retrieveBalance.js` file, define the ABI for the `balanceOf` method by adding the following to the script: - -```javascript -const balanceOfABI = [ - { - constant: true, - inputs: [ - { - name: '_owner', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - name: 'balance', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, -] -``` - -### 5. Select a token address - -To retrieve the balance of a token, you need the contract address of the token. You can find this in the tokens section of a block explorer such as [Etherscan](https://etherscan.io/). - -This example uses a DAI token contract. However, you can use any ERC-20 token contract address. Copy the token contract address you wish to use. - -![](../../images/contract_address.jpeg) - -### 6. Request the token balance - -Define the addresses to use in the `retrieveBalance.js` script: - -```javascript -const tokenContract = '0x6b175474e89094c44da98b954eedeac495271d0f' -const tokenHolder = '0xf326e4de8f66a0bdc0970b79e0924e33c79f1915' -``` - -Define `contract` using `web3.eth.Contract()`, passing the `balanceOfABI` and the token contract address `tokenContract` as parameters: - -```javascript -const contract = new web3.eth.Contract(balanceOfABI, tokenContract) -``` - -Next, call `methods.balanceOf()` on the `contract` and pass the `tokenHolder` address. This call sends a request to your Infura endpoint to request the token balance in the `tokenHolder` account address. - -Create the below `async` function `getTokenBalance` that accomplishes this by interacting with the `tokenContract`. - -```javascript -async function getTokenBalance() { - const result = await contract.methods.balanceOf(tokenHolder).call() - console.log(result) -} - -getTokenBalance() -``` - -### 7. Convert the token units - -By default, calling `balanceOf` returns the balance value in wei, which is the smallest unit in Ethereum, equal to 0.000000000000000001 Ether. - -Use `web3.utils.fromWei(result, "ether")` to get the actual number of DAI tokens, by adding the following line to the `async` function: - -```javascript -const formattedResult = web3.utils.fromWei(result, 'ether') -``` - -Also, update your `console.log(format)`: - -```javascript -console.log(formattedResult) -``` - -### 8. Run the script - -#### Complete code - -Here is the complete code for `retrieveBalance.js`. Before running it make sure you replace `` with your Infura API key. - -```javascript -const { Web3 } = require('web3') -const web3 = new Web3( - new Web3.providers.HttpProvider('https://mainnet.infura.io/v3/') -) - -const balanceOfABI = [ - { - constant: true, - inputs: [ - { - name: '_owner', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - name: 'balance', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, -] - -// DAI token contract -const tokenContract = '0x6B175474E89094C44Da98b954EedeAC495271d0F' -// A DAI token holder -const tokenHolder = '0x075e72a5eDf65F0A5f44699c7654C1a76941Ddc8' -const contract = new web3.eth.Contract(balanceOfABI, tokenContract) - -async function getTokenBalance() { - const result = await contract.methods.balanceOf(tokenHolder).call() - const formattedResult = web3.utils.fromWei(result, 'ether') - console.log(formattedResult) -} - -getTokenBalance() -``` - -Run the script using the following command: - - - - -```bash -node retrieveBalance.js -``` - - - - -# Example output - -```bash -278916727.186877714909963561 -``` - - - diff --git a/services/tutorials/ethereum/send-a-transaction/_category_.json b/services/tutorials/ethereum/send-a-transaction/_category_.json deleted file mode 100644 index c2ab8ffa8c5..00000000000 --- a/services/tutorials/ethereum/send-a-transaction/_category_.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "label": "Send transactions", - "collapsible": true, - "collapsed": true, - "position": 11 -} diff --git a/services/tutorials/ethereum/send-a-transaction/send-a-transaction-ethers.md b/services/tutorials/ethereum/send-a-transaction/send-a-transaction-ethers.md deleted file mode 100644 index b69a62f9eec..00000000000 --- a/services/tutorials/ethereum/send-a-transaction/send-a-transaction-ethers.md +++ /dev/null @@ -1,184 +0,0 @@ ---- -description: Send a transaction using Ethers. ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -# Use ethers.js - -In this tutorial, you'll send a transaction of 0.001 ETH from one account to another using the [`ethers.js`](https://docs.ethers.io/v5/) JavaScript library. - -## Prerequisites - -- [Node.js](https://nodejs.org/en/download/) -- An Ethereum account - -:::info - -Use [MetaMask](https://metamask.io) or similar to create an Ethereum account for testing. - -::: - -## Steps - -### 1. Select your network and verify funds - -- **Sepolia** - To use the Sepolia testnet, ensure that your account has Sepolia ETH. - You can use the [MetaMask faucet](/developer-tools/faucet) to add more funds. -- **Alternative network** - To use an alternative network, ensure that your account has testnet ETH for that network. - :::info note - When using an alternative network, you'll update your `.env` file in - [Step 4](#4-create-a-env-file) with the alternative network name. - ::: - -### 2. Create a project directory - -Create a new directory for your project using the command line: - -```bash -mkdir infura -``` - -Change into the new directory: - -```bash -cd infura -``` - -### 3. Install required packages - -Install the `ethers` and `dotenv` packages in the project directory. - -:::info - -The [`dotenv`](../../../how-to/javascript-dotenv.md) package allows you to use a `.env` file to securely store private environment variables on your local machine. - -::: - -Install the `ethers` package: - -```bash -npm install --save ethers -``` - -Install the `dotenv` package: - -``` -npm install dotenv --save -``` - -### 4. Create a `.env` file - -Create a `.env` file in your project directory to store the project and Ethereum account details: - - - - -```text title=".env" -ETHEREUM_NETWORK = "" -INFURA_API_KEY = "" -SIGNER_PRIVATE_KEY = "" -``` - - - - -```text title=".env" -ETHEREUM_NETWORK = "sepolia" -INFURA_API_KEY = "d23...x...6e" -SIGNER_PRIVATE_KEY = "0x561...x...61df" -``` - - - - -Replace the following values in the `.env` file: - -- `` with `sepolia` or the alternative network you are using. -- `` with your API key of the web3 project. -- `` with the [private key of your Ethereum account](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key/). A transaction must be signed with the sender's private key. Make sure that you prefix the `SIGNER_PRIVATE_KEY` value with `0x`. The private key you export from MetaMask isn't prefixed with `0x`. - -:::danger - -Never disclose your private key. Anyone with your private keys can steal the assets controlled by those keys. - -::: - -### 5. Create an `eip1559_tx.js` file - -In the project directory, create an `eip1559_tx.js` file, which configures and sends the transaction. For example: - -:::warning Important - -To send test ETH to an account of your choice, update line 15 with your selected account. - -::: - -```javascript title="eip1559_tx.js" showLineNumbers {15} -const { ethers, parseUnits } = require('ethers') - -async function main() { - // Configuring the connection to an Ethereum node - const network = process.env.ETHEREUM_NETWORK - const provider = new ethers.InfuraProvider(network, process.env.INFURA_API_KEY) - // Creating a signing account from a private key - const signer = new ethers.Wallet(process.env.SIGNER_PRIVATE_KEY).connect(provider) - - // Creating and sending the transaction object - const tx = await signer.sendTransaction({ - to: '0x618917c657e9F5b346c0141CB14F5D3CED65D449', // Replace with your selected account - value: parseUnits('0.001', 'ether'), - }) - console.log('Mining transaction...') - console.log(`https://${network}.etherscan.io/tx/${tx.hash}`) - // Waiting for the transaction to be mined - const receipt = await tx.wait() - // The transaction is now on chain! - console.log(`Mined in block ${receipt.blockNumber}`) -} - -main() -``` - -### 6. Execute the transaction - -To execute the transaction, run: - -```bash -node eip1559_tx.js -``` - -Example output: - -```bash -Mining transaction... -https://sepolia.etherscan.io/tx/0x7c5c0061fbda9e01c1bb1269ffc7323107e2116d8f7327ee945aecc7c33d21c8 -Mined in block 7587728 -``` - -You can search for the transaction on a block explorer such as [Sepolia Etherscan](https://www.infura.io/faucet). - -### (Optional) Fine tune the transaction details - -To change default values, update the `signer.sendTransaction` method to include an `estimateGas` result: - -```javascript title="eip1559_tx.js" -const { ethers, parseUnits } = require('ethers') - -const limit = await provider.estimateGas({ - from: signer.address, - to: '', - value: parseUnits('0.001', 'ether'), -}) - -// Creating and sending the transaction object -const tx = await signer.sendTransaction({ - to: '', - value: parseUnits('0.001', 'ether'), - gasLimit: limit, - nonce: await signer.getTransactionCount(), - maxPriorityFeePerGas: parseUnits('2', 'gwei'), - chainId: 11155111, // Sepolia -}) -``` diff --git a/services/tutorials/ethereum/send-a-transaction/send-a-transaction-go.md b/services/tutorials/ethereum/send-a-transaction/send-a-transaction-go.md deleted file mode 100644 index 95effc30629..00000000000 --- a/services/tutorials/ethereum/send-a-transaction/send-a-transaction-go.md +++ /dev/null @@ -1,159 +0,0 @@ ---- -description: Send a transaction using Go. ---- - -# Use Go - -Send a regular transaction from one account to another with [Go](https://go.dev/). - -## Prerequisites - -- [Go](https://go.dev/doc/install) installed. -- An Ethereum account containing some [Sepolia test ETH](https://www.infura.io/faucet). - -:::info - -Use [MetaMask](https://metamask.io) or similar to create an Ethereum account for testing. - -::: - -## Steps - -### 1. Create a project directory - -Create a new directory: - -```bash -mkdir infura -``` - -`cd` into the directory: - -```bash -cd infura -``` - -### 2. Initialize the directory and install the dependencies - -```bash -go mod init infura -go get github.com/ethereum/go-ethereum/common -go get github.com/ethereum/go-ethereum/core/types -go get github.com/ethereum/go-ethereum/crypto -go get github.com/ethereum/go-ethereum/rpc@v1.10.17 -``` - -### 3. Create `eip1559_tx.go` file - -```go -package main - -import ( - "context" - "crypto/ecdsa" - "fmt" - "log" - "math/big" - - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/ethclient" -) - -func main() { - client, err := ethclient.Dial("https://sepolia.infura.io/v3/API_KEY") - if err != nil { - log.Fatal(err) - } - - privateKey, err := crypto.HexToECDSA("PRIVATE_KEY") - if err != nil { - log.Fatal(err) - } - - publicKey := privateKey.Public() - publicKeyECDSA, ok := publicKey.(*ecdsa.PublicKey) - if !ok { - log.Fatal("error casting public key to ECDSA") - } - - fromAddress := crypto.PubkeyToAddress(*publicKeyECDSA) - - nonce, err := client.PendingNonceAt(context.Background(), fromAddress) - if err != nil { - log.Fatal(err) - } - - value := big.NewInt(10000000000000000) // in wei (0.01 eth) - gasLimit := uint64(21000) // in units - tip := big.NewInt(2000000000) // maxPriorityFeePerGas = 2 Gwei - feeCap := big.NewInt(20000000000) // maxFeePerGas = 20 Gwei - if err != nil { - log.Fatal(err) - } - - toAddress := common.HexToAddress("ADDRESS_TO") - var data []byte - - chainID, err := client.NetworkID(context.Background()) - if err != nil { - log.Fatal(err) - } - - tx := types.NewTx(&types.DynamicFeeTx{ - ChainID: chainID, - Nonce: nonce, - GasFeeCap: feeCap, - GasTipCap: tip, - Gas: gasLimit, - To: &toAddress, - Value: value, - Data: data, - }) - - signedTx, err := types.SignTx(tx, types.LatestSignerForChainID(chainID), privateKey) - if err != nil { - log.Fatal(err) - } - - err = client.SendTransaction(context.Background(), signedTx) - if err != nil { - log.Fatal(err) - } - - fmt.Printf("Transaction hash: %s", signedTx.Hash().Hex()) -} -``` - -Replace the following values in the script: - -- `` with the Infura API key. -- `` with the [private key of your Ethereum account](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key/). -- `` with the address of the recipient of funds. - -If using a different Ethereum network, update the URL in the script. - -:::danger - -Never disclose your private key. - -A malicious actor who has access to your private key can steal your assets. - -::: - -### 4. Execute the transaction - -Run the script: - -```bash -go run eip1559_tx.go -``` - -Example output: - -``` -Transaction hash: 0x47ed277bdfee88902f971510a7cd7b4c55722ea06488e697fb05dc99454e51ab -``` - -You can search for the transaction on a block explorer like [Sepolia Etherscan](https://sepolia.etherscan.io/). diff --git a/services/tutorials/ethereum/send-a-transaction/send-a-transaction-py.md b/services/tutorials/ethereum/send-a-transaction/send-a-transaction-py.md deleted file mode 100644 index b826c631a50..00000000000 --- a/services/tutorials/ethereum/send-a-transaction/send-a-transaction-py.md +++ /dev/null @@ -1,132 +0,0 @@ ---- -description: Send a transaction using Python. ---- - -# Use Python - -Send a regular transaction from one account to another with [Python](https://www.python.org/). - -## Prerequisites - -- [Node.js](https://nodejs.org/en/download/). -- An Ethereum account containing some [Sepolia test ETH](https://www.infura.io/faucet). - -:::info - -Use [MetaMask](https://metamask.io) or similar to create an Ethereum account for testing. - -::: - -## Steps - -### 1. Create a project directory - -Create a new directory: - -```bash -mkdir infura -``` - -`cd` into the directory: - -```bash -cd infura -``` - -### 2. Install the dependencies - -```bash -pip install web3 -``` - -```bash -pip install python-dotenv -``` - -### 3. Create `.env` file - -Create a `.env` file in your project directory to store the private key of your Ethereum account. - -```bash -PRIVATE_KEY = -``` - -Find out how to access the [private key of your Ethereum account](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key/). Make sure that you prefix the `` value with `0x`. The -private key you export from MetaMask will not be prefixed with `0x`. - -:::danger - -Never disclose your private key. - -A malicious actor who has access to your private key can steal your assets. - -::: - -### 4. Create `eip1559_tx.py` file - -Create a file named `eip1559_tx.py` and add the following lines of code. - -```python -import os -from dotenv import load_dotenv -from web3 import Web3, exceptions - -load_dotenv() - -infura_url = "https://sepolia.infura.io/v3/" -private_key = os.getenv("PRIVATE_KEY") -from_account = "" -to_account = "" -web3 = Web3(Web3.HTTPProvider(infura_url)) - -try: - from_account = web3.to_checksum_address(from_account) -except exceptions.InvalidAddress: - print(f"Invalid 'from_account' address: {from_account}") - -try: - to_account = web3.to_checksum_address(to_account) -except exceptions.InvalidAddress: - print(f"Invalid 'to_account' address: {to_account}") - -nonce = web3.eth.get_transaction_count(from_account) -tx = { - "type": "0x2", - "nonce": nonce, - "from": from_account, - "to": to_account, - "value": web3.to_wei(0.01, "ether"), - "maxFeePerGas": web3.to_wei("250", "gwei"), - "maxPriorityFeePerGas": web3.to_wei("3", "gwei"), - "chainId": 11155111 -} -gas = web3.eth.estimate_gas(tx) -tx["gas"] = gas -signed_tx = web3.eth.account.sign_transaction(tx, private_key) -tx_hash = web3.eth.send_raw_transaction(signed_tx.rawTransaction) -print("Transaction hash: " + str(web3.to_hex(tx_hash))) -``` - -Ensure you replace the following values in the code: - -- `` with the API key of the Web3 project. -- `` with the public key associated with the private key you added in the `.env` file. -- `` With the public key of the recipient of the transfer. - -If using a different Ethereum network, update the URL in the code. - -### 4. Execute the transaction - -Run the script: - -```bash -python eip1559_tx.py -``` - -Example output: - -``` -Transaction hash: 0x30c0ef29111ca7aecc78a99149649b5076d104afa7ed2f603ff2d2ec1aa27a8c -``` - -You can search for the transaction on a block explorer like [Sepolia Etherscan](https://sepolia.etherscan.io/tx/0x28e414889b47ba43b00086bc3ae42ea4ea521739f77b78afcaefb1b7fe42e955). diff --git a/services/tutorials/ethereum/send-a-transaction/send-a-transaction-viem.md b/services/tutorials/ethereum/send-a-transaction/send-a-transaction-viem.md deleted file mode 100644 index a4c36d973df..00000000000 --- a/services/tutorials/ethereum/send-a-transaction/send-a-transaction-viem.md +++ /dev/null @@ -1,227 +0,0 @@ ---- -description: Send a transaction using Viem. ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -# Use Viem - -In this tutorial, you'll send a transaction of 0.001 ETH from one account to another using the [Viem](https://viem.sh/) -TypeScript library. - -## Prerequisites - -- [Node.js](https://nodejs.org/en/download/) -- [Install TypeScript](https://www.typescriptlang.org/download/) -- [Install `ts-node`](https://www.npmjs.com/package/ts-node) -- An Ethereum account - -:::info -Use [MetaMask](https://metamask.io/) or similar to create an Ethereum account for testing. -::: - -## Steps - -### 1. Select your network and verify funds - -- **Sepolia** - To use the Sepolia testnet, ensure that your account has Sepolia ETH. - You can use the [MetaMask faucet](/developer-tools/faucet) to add more funds. -- **Alternative network** - To use an alternative network, ensure that your account has testnet ETH - for that network. - - :::note - When using an alternative network, update the chain name in the script (in Step 6) with the - alternative network name from the [Viem supported chains list](https://github.com/wevm/viem/blob/main/src/chains/index.ts). - ::: - -### 2. Create a project directory - -Create a new directory for your project using the command line: - -```bash -mkdir infura -``` - -Change into the new directory: - -```bash -cd infura -``` - -### 3. Initialize the project - -Create a `package.json` file with default values: - -```bash -npm init -y -``` - -Generate a `tsconfig.json` file, which is used to configure TypeScript compiler options: - -```bash -tsc --init --resolveJsonModule true -``` - -### 4. Install the required packages - -Install the required packages in the project directory. - -```bash -npm i viem -``` - -```bash -npm install -D tslib @types/node -``` - -### 5. Create a `config.ts` file - -Create a `config.ts` file in your project directory to store the private key of the sending account: - - - - -```tsx title="config.ts" -import { privateKeyToAccount } from 'viem/accounts' -export const account = privateKeyToAccount('') -``` - - - - -```tsx title="config.ts" -import { privateKeyToAccount } from 'viem/accounts' -export const account = privateKeyToAccount('0x561...x...61df') -``` - - - - -In the `config.ts` file, replace `` with the [private key of your Ethereum account](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key/). -A transaction must be signed with the sender's private key. Make sure that you prefix the private key -value with `0x`. The private key you export from MetaMask isn't prefixed with `0x`. - -:::danger -Never disclose your private key. Anyone with your private keys can steal the assets controlled by those keys. -::: - -### 6. Create a `sendTransaction.ts` file - -In the project directory, create a `sendTransaction.ts` file, which configures and sends the transaction. For example: - -```tsx -import { http, createWalletClient, parseEther } from 'viem' -import { sepolia } from 'viem/chains' -import { account } from './config' - -// Create a wallet client to interact with Ethereum accounts. -const walletClient = createWalletClient({ - chain: sepolia, - transport: http('https://sepolia.infura.io/v3/'), -}) - -async function sendTx() { - // Create and send the transaction object. - const hash = await walletClient.sendTransaction({ - account, - to: '0xc2CB3fb3924b8DE3A63C1da570a8dBaf2a533eA7', - value: parseEther('0.001'), - }) - - console.log('Mining transaction... ') - console.log(`Tx mined in https://sepolia.etherscan.io/tx/${hash}`) -} - -sendTx() -``` - -In the `sendTransaction.ts` file: - -- Update the `chain` name if you're using an alternative network. -- Replace `` with your Infura API key. -- Update the `to` account in the code if you wish to send test ETH to an account of your choice. - -### 7. Execute the transaction - -To execute the transaction, run: - -```bash -ts-node sendTransaction.ts -``` - -:::note -`ts-node` is a TypeScript execution engine for Node.js. It allows you to run TypeScript files without -manually compiling them into JavaScript first. -::: - -An alternative way to execute your transaction using Node.js is to compile your `sendTransaction.ts` file to JavaScript -first, and then run the compiled JavaScript file: - -```jsx -tsc sendTransaction.ts -node sendTransaction.js -``` - -You can also run the TypeScript file, `sendTransaction.ts`, directly from your code development environment (such as -VS Code) without using `ts-node` or pre-compiling to JavaScript. -The following is an example output: - -```bash -Mining transaction... -Tx mined https://sepolia.etherscan.io/tx/0x310588719e733118f50c0a1608e13b4e8bd5eb5891d546d89795c2041833abb6 -``` - -You can search for the transaction on a block explorer such as [Sepolia Etherscan](https://sepolia.etherscan.io/). - -### 8. (Optional) Fine tune the transaction details - -Viem automatically determines the gas limit and fees. If you want to change the default values, update -the `sendTransaction` method to include an `estimateGas` result (`gasLimit`) and the `maxFeePerGas` and -`maxPriorityFeePerGas` parameters. - -To do this you will also need to declare an `httpClient` to interface with JSON-RPC methods like `eth_estimateGas`. - -The following is a full code overview: - -```tsx -import { http, createWalletClient, createPublicClient, parseEther, parseGwei } from 'viem' -import { sepolia } from 'viem/chains' -import { account } from './config' - -// Create a wallet client to interact with Ethereum accounts. -const walletClient = createWalletClient({ - chain: sepolia, - transport: http('https://sepolia.infura.io/v3/'), -}) - -// Create a public client to interact with JSON-RPC API methods. -const httpClient = createPublicClient({ - chain: sepolia, - transport: http('https://sepolia.infura.io/v3/'), -}) - -async function sendTx() { - // Estimate gas limit. - const limit = await httpClient.estimateGas({ - account, - to: '0xc2CB3fb3924b8DE3A63C1da570a8dBaf2a533eA7', - value: parseEther('0.001'), - }) - - // Create and send the transaction object. - const hash = await walletClient.sendTransaction({ - account, - to: '0xc2CB3fb3924b8DE3A63C1da570a8dBaf2a533eA7', - value: parseEther('0.001'), - maxFeePerGas: parseGwei('20'), - maxPriorityFeePerGas: parseGwei('2'), - gas: limit, - }) - - console.log('Mining transaction... ') - console.log(`Tx: https://sepolia.etherscan.io/tx/${hash}`) -} - -sendTx() -``` diff --git a/services/tutorials/ethereum/send-a-transaction/use-ethers.js-infuraprovider-or-web3provider.md b/services/tutorials/ethereum/send-a-transaction/use-ethers.js-infuraprovider-or-web3provider.md deleted file mode 100644 index 161c69f24e0..00000000000 --- a/services/tutorials/ethereum/send-a-transaction/use-ethers.js-infuraprovider-or-web3provider.md +++ /dev/null @@ -1,373 +0,0 @@ ---- -description: Use the Ethers InfuraProvider and Web3Provider methods. ---- - -# Use Ethers.js `InfuraProvider` or `Web3Provider` - -In this tutorial, you'll create a simple React app to show the differences between using the -Ethers.js library's `InfuraProvider` and `Web3Provider` methods to send a transaction. - -The key difference is that with `Web3Provider`, you can load the private key from a web3 wallet -(for example, MetaMask), while `InfuraProvider` needs a wallet created locally with a stored private key. - -This tutorial uses the Sepolia testnet. - -## Prerequisites - -- Install [MetaMask](https://metamask.io) and create an Ethereum account for testing purposes. -- Load Sepolia ETH into your wallet from the [MetaMask faucet](/developer-tools/faucet). -- [Node.js and npm installed](https://nodejs.org/en/download/). - -You can run the following to confirm that Node and npm are installed: - -```bash -node -v && npm -v -``` - -:::info - -This tutorial was tested using ethers v5.7.2 and Node.js v16.17.0. - -::: - -## Steps - -### 1. Create the React app - -In the terminal, run the following command to create an app called `my-app`: - -```bash -npx create-react-app my-app -``` - -Change into the project directory: - -```bash -cd my-app -``` - -### 2. Install ethers.js - -Install `ethers.js` in the project directory. - -``` -npm install --save ethers -``` - -### 3. Create the environment variables - -Create a `.env` file in your project directory to store the project and Ethereum account details. - -``` -REACT_APP_API_KEY="" -REACT_APP_PRIVATE_KEY="" -``` - -Ensure you replace the following values in the `.env` file: - -- `` with the API key of the Ethereum project. -- `` with the [private key of your Ethereum account](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key/). - -:::danger - -Never disclose your private key. Anyone with your private keys can steal any assets held in your account. - -::: - -### 4. Build the app - -:::info - -You can [copy the complete code sample from the final section](use-ethers.js-infuraprovider-or-web3provider.md#complete-code-sample). - -::: - -#### Import dependencies and create providers - -Import the required dependencies and create the providers for communicating with the blockchain. - -In the `src` directory open the `App.js` file. Remove the existing code and add the following code: - -```javascript title="App.js" -import React, { useState } from 'react' -import './App.css' - -function App() { - const ethers = require('ethers') - const API_KEY = process.env.REACT_APP_API_KEY - const PRIVATE_KEY = process.env.REACT_APP_PRIVATE_KEY - const provider_Metamask = new ethers.providers.Web3Provider(window.ethereum) - const infuraProvider = new ethers.providers.InfuraProvider('sepolia', API_KEY) -} -export default App -``` - -#### Maintain the app state - -Next, use the `useState` hook function to maintain the state of the app. Add the following code below the `const` declarations (inside the `App()` declaration): - -```javascript title="App.js" -// Use the useState hook function to add state variables to a functional component. -const [blockNumber, setBlockNumber] = useState(null) -const [txSent, setTxSent] = useState(null) -const [txSentInfura, setTxSentInfura] = useState(null) -``` - -#### Create the app frontend - -Next, create the app front-end that includes two forms for sending the transactions, and buttons for each provider to fetch the latest block number. - -```javascript title="App.js" -// Configure the app frontend -return ( -
-
-

Press one of the buttons to find out the latest block number:

-
- - -

{blockNumber}

-
-

Fill out the form to send a transaction via Web3Provider:

-
-
- - - -
-

{txSent}

-
-

Fill out the form to send a transaction via InfuraProvider:

-
-
- - - -
-

{txSentInfura}

-
-
-
-) -``` - -#### Retrieve the latest block number - -Create the code to retrieve the latest block number. Add the following code above the `return` statement. - -```javascript -// Get the latest block using the InfuraProvider or wallet -const handleButton1 = async () => { - const latest_block = await infuraProvider.getBlockNumber('latest') - setBlockNumber(latest_block) -} - -const handleButton2 = async () => { - const latest_block = await provider_Metamask.getBlockNumber('latest') - setBlockNumber(latest_block) -} -``` - -#### Send the transaction - -To send the transaction, you need the target address and the amount to send. Add the following code below the code that retrieves the latest block number. - -```javascript -// Handle the form submissions to send the transactions -const handleSubmitWeb3 = async e => { - e.preventDefault() - const data = new FormData(e.target) - const address = data.get('address') - const amount = data.get('amount') - sendTransaction(address, amount) -} - -const handleSubmitInfura = async e => { - e.preventDefault() - const data = new FormData(e.target) - const address = data.get('address') - const amount = data.get('amount') - const signer = new ethers.Wallet(PRIVATE_KEY, infuraProvider) - sendTransaction(address, amount, signer) -} -``` - -Next, create the `sendTransaction()` function that sends the transaction. Place the following code below the two `handleSubmit` methods. - -```javascript -// Send the transaction using either the Web3Provider or InfuraProvider -const sendTransaction = async (address, amount, signer = null) => { - if (signer == null) { - // Web3 Provider - if (!window.ethereum) console.error('No wallet found!') - else { - await window.ethereum.send('eth_requestAccounts') - const provider = new ethers.providers.Web3Provider(window.ethereum) - const signer = provider.getSigner() - const tx = await signer.sendTransaction({ - to: address, - value: ethers.utils.parseEther(amount), - }) - console.log('tx', tx) - setTxSent('Transaction initiated! Tx hash: ' + tx.hash) - } - } // InfuraProvider - else { - const tx = await signer.sendTransaction({ - to: address, - value: ethers.utils.parseEther(amount), - }) - console.log('tx', tx) - setTxSentInfura('Transaction initiated! Tx hash: ' + tx.hash) - } -} -``` - -### 5. Run the app - -Run the app from the root of the directory: - -``` -npm start -``` - -:::warning - -If you are using Create React App version >=5 you may run into issues building, such as: - -``` -Module not found: Error: Can't resolve 'crypto' in 'C:\Users\Username\Projects\testProject\client\node_modules\eth-lib\lib' - -BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. -This is no longer the case. Verify if you need this module and configure a polyfill for it. -``` - -This is because Node.js polyfills are not included in the latest version of Create React App. - -[Follow these instructions to resolve the issue](https://github.com/ChainSafe/web3.js#web3-and-create-react-app). - -::: - -In the app, notice that when you try and send a transaction using Web3Provider, the app opens a MetaMask instance to transfer your funds. - -

- -

- -If you transfer funds using the InfuraProvider, then the funds are transferred directly from your app. - -

- -

- -## Complete code sample - -The complete code sample looks like this: - -```javascript -import React, { useState } from 'react' -import './App.css' - -function App() { - const ethers = require('ethers') - const API_KEY = process.env.REACT_APP_API_KEY - const PRIVATE_KEY = process.env.REACT_APP_PRIVATE_KEY - const provider_Metamask = new ethers.providers.Web3Provider(window.ethereum) - const infuraProvider = new ethers.providers.InfuraProvider('mainnet', API_KEY) - - // Use the useState hook function to add state variables to a functional component. - const [blockNumber, setBlockNumber] = useState(null) - const [txSent, setTxSent] = useState(null) - const [txSentInfura, setTxSentInfura] = useState(null) - - // Get the latest block using the InfuraProvider or wallet - const handleButton1 = async () => { - const latest_block = await infuraProvider.getBlockNumber('latest') - setBlockNumber(latest_block) - } - - const handleButton2 = async () => { - const latest_block = await provider_Metamask.getBlockNumber('latest') - setBlockNumber(latest_block) - } - - // Handle the form submissions to send the transactions - const handleSubmitWeb3 = async e => { - e.preventDefault() - const data = new FormData(e.target) - const address = data.get('address') - const amount = data.get('amount') - sendTransaction(address, amount) - } - - const handleSubmitInfura = async e => { - e.preventDefault() - const data = new FormData(e.target) - const address = data.get('address') - const amount = data.get('amount') - const signer = new ethers.Wallet(PRIVATE_KEY, infuraProvider) - sendTransaction(address, amount, signer) - } - - // Send the transaction using either the Web3Provider or InfuraProvider - const sendTransaction = async (address, amount, signer = null) => { - if (signer == null) { - // Web3 Provider - if (!window.ethereum) console.error('No wallet found!') - else { - await window.ethereum.send('eth_requestAccounts') - const provider = new ethers.providers.Web3Provider(window.ethereum) - const signer = provider.getSigner() - const tx = await signer.sendTransaction({ - to: address, - value: ethers.utils.parseEther(amount), - }) - console.log('tx', tx) - setTxSent('Transaction initiated! Tx hash: ' + tx.hash) - } - } // InfuraProvider - else { - const tx = await signer.sendTransaction({ - to: address, - value: ethers.utils.parseEther(amount), - }) - console.log('tx', tx) - setTxSentInfura('Transaction initiated! Tx hash: ' + tx.hash) - } - } - - // Configure the app frontend - return ( -
-
-

Press one of the buttons to find out the latest block number:

-
- - -

{blockNumber}

-
-

Fill out the form to send a transaction via Web3Provider:

-
-
- - - -
-

{txSent}

-
-

Fill out the form to send a transaction via InfuraProvider:

-
-
- - - -
-

{txSentInfura}

-
-
-
- ) -} - -export default App -``` diff --git a/services/tutorials/ethereum/send-a-transaction/use-rust.md b/services/tutorials/ethereum/send-a-transaction/use-rust.md deleted file mode 100644 index 2b99f1df670..00000000000 --- a/services/tutorials/ethereum/send-a-transaction/use-rust.md +++ /dev/null @@ -1,320 +0,0 @@ ---- -title: 'Use Rust' -description: A tutorial for legacy and EIP-1559 transactions. ---- - -# Use Rust - -In this two-part tutorial we'll use Rust and the [ethers-rs library](https://docs.rs/ethers/latest/ethers/) to: - -- Send a legacy transaction `("type":"0x0")` -- Send an EIP-1559 transaction `("type":"0x2")` - -This tutorial uses the Sepolia testnet. Also see [Transaction types](../../../concepts/transaction-types.md). - -## Prerequisites - -- Make sure that you have test ETH in your MetaMask wallet. You can obtain test ETH for the Sepolia network using the - [Infura Sepolia faucet](https://www.infura.io/faucet/sepolia). -- [Install Rust from The Cargo Book](https://doc.rust-lang.org/cargo/getting-started/installation.html). - -## Send a legacy transaction - -### 1. Create a new project - -Open a terminal and create a new project: - -```Rust -cargo new infura_rs -``` - -This creates the `infura_rs` directory with the following structure: - -```text -infura_rs -├── Cargo.toml -└── src - └── main.rs -``` - -:::info - -Refer to the [Cargo documentation](https://doc.rust-lang.org/cargo/getting-started/first-steps.html) for more information about getting started with Cargo. - -::: - -### 2. Edit the dependencies - -Open `Cargo.toml` with your preferred editor and add the following dependencies to it: - -```toml -[dependencies] -ethers = "2.0" -eyre = "0.6.8" -hex = "0.4.3" -tokio = { version = "1.28.2", features = ["full"] } -serde_json = "1.0.96" -``` - -### 3. Update the main code - -Open the Rust source `src/main.rs` and replace its contents with the following code: - -```rust showLineNumbers -use ethers::{ - core::{types::TransactionRequest}, - middleware::SignerMiddleware, - providers::{Http, Middleware, Provider}, - signers::{LocalWallet, Signer}, - utils, - prelude::* -}; -use eyre::Result; -use std::convert::TryFrom; - -#[tokio::main] -async fn main() -> Result<()> { - // Connect to the network - let provider = Provider::::try_from("https://sepolia.infura.io/v3/INFURA_API_KEY")?; - - let chain_id = provider.get_chainid().await?; - - // Define the signer. - // Replace the SIGNER_PRIVATE_KEY with - // the private key of your Ethereum account (without the 0x prefix). - // However, we recommend that you load it from - // an .env file or external vault. - let wallet: LocalWallet = "SIGNER_PRIVATE_KEY" - .parse::()? - .with_chain_id(chain_id.as_u64()); - - let to_address = "0xAED01C776d98303eE080D25A21f0a42D94a86D9c"; - - // Connect the wallet to the provider - let client = SignerMiddleware::new(provider, wallet); - - // Craft the transaction - // The below code knows how to figure out the - // default gas value and determine the next nonce - // so you do not need to explicitly add them. - let tx = TransactionRequest::new() - .to(to_address) - .value(U256::from(utils::parse_ether(0.01)?)); - - // Send it! - let pending_tx = client.send_transaction(tx, None).await?; - - // Get the mined tx - let receipt = pending_tx.await?.ok_or_else(|| eyre::format_err!("tx dropped from mempool"))?; - let tx = client.get_transaction(receipt.transaction_hash).await?; - - println!("Sent tx: {}\n", serde_json::to_string(&tx)?); - println!("Tx receipt: {}", serde_json::to_string(&receipt)?); - - Ok(()) -} -``` - -Next, make the following updates to the above code: - -- On line 16 replace the `INFURA_API_KEY` with you API key from the - [Infura dashboard](/developer-tools/dashboard/get-started/create-api). -- On line 26 replace the `SIGNER_PRIVATE_KEY` with the private key of your Ethereum account. -- On line 29, use a test address, such as [`0xAED01C776d98303eE080D25A21f0a42D94a86D9c`](https://sepolia.etherscan.io/address/0xaed01c776d98303ee080d25a21f0a42d94a86d9c). - -:::tip Secure your keys - -To better secure your keys, follow the recommended approach described in the section [Create the .env file](use-web3.js.md#4-create-a-env-file). - -::: - -### 4. Run the code - -From the `infura_rs` directory, run the code. - -```rust -cargo run -``` - -You will see an output similar to the following: - -:::note Use the wrap button -Use the wrap button on the top right of the below code block window for wrapped display. -::: - -```log -Compiling infura_rs v0.1.0 (/Users/rajkaramchedu/onboarding/traian-tutorials/infura_rs) -Finished dev [unoptimized + debuginfo] target(s) in 2.14s -Running `target/debug/infura_rs` - -Sent tx: -{ - "hash": "0x3cb5a5fac18e889457905351c9950108873a8f0789fe83e8a733b8367f49a67a", - "nonce": "0x1", - "blockHash": "0xa2787f5ec22d491588a8ffc6e7cec3ed97fccac4845e448650d02fce672a657c", - "blockNumber": "0x3a7608", - "transactionIndex": "0x3d", - "from": "0xe33fef60722ba79989aeaa1b6e6daf7f351c0fbb", - "to": "0xaed01c776d98303ee080d25a21f0a42d94a86d9c", - "value": "0x2386f26fc10000", - "gasPrice": "0x3cc", - "gas": "0x5208", - "input": "0x", - "v": "0x1546d71", - "r": "0x92aa9fe6039946db5ea291a245529a5d67f5531e95d74c483fe8283cca9ec666", - "s": "0x4a5c0de8e64c79659965fb36f2b0ea1d295ae868f5f65809ef4cf1ef55239e09", - "type": "0x0", - "chainId": "0xaa36a7" -} - -Tx receipt: -{ - "transactionHash": "0x3cb5a5fac18e889457905351c9950108873a8f0789fe83e8a733b8367f49a67a", - "transactionIndex": "0x3d", - "blockHash": "0xa2787f5ec22d491588a8ffc6e7cec3ed97fccac4845e448650d02fce672a657c", - "blockNumber": "0x3a7608", - "from": "0xe33fef60722ba79989aeaa1b6e6daf7f351c0fbb", - "to": "0xaed01c776d98303ee080d25a21f0a42d94a86d9c", - "cumulativeGasUsed": "0x406e87", - "gasUsed": "0x5208", - "contractAddress": null, - "logs": [], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x0", - "effectiveGasPrice": "0x3cc" -} -``` - -In the above transaction receipt, the transaction type shows `"type":"0x0"` indicating that this was a legacy transaction. Next, we will send an EIP-1559 transaction, which is of the type `"type":"0x2"`. - -## Send an EIP-1559 transaction - -### 1. Modify the main code - -To send an EIP-1559 transaction, use `Eip1559TransactionRequest` instead of `TransactionRequest` in the `main.rs` code. Replace the code in `main.rs` with the following code. - -```rust showLineNumbers -use ethers::{ - core::{types::TransactionRequest}, - middleware::SignerMiddleware, - providers::{Http, Middleware, Provider}, - signers::{LocalWallet, Signer}, - utils, - prelude::* -}; -use eyre::Result; -use std::convert::TryFrom; -use types::Eip1559TransactionRequest; - -#[tokio::main] -async fn main() -> Result<()> { - // Connect to the network - let provider = Provider::::try_from("https://sepolia.infura.io/v3/INFURA_API_KEY")?; - - let chain_id = provider.get_chainid().await?; - - // Define the signer. - // Replace the SIGNER_PRIVATE_KEY with - // the private key of your Ethereum account (without the 0x prefix). - // However, we recommend that you load it from - // an .env file or external vault. - let wallet: LocalWallet = "SIGNER_PRIVATE_KEY" - .parse::()? - .with_chain_id(chain_id.as_u64()); - - let to_address = "0xAED01C776d98303eE080D25A21f0a42D94a86D9c"; - - // Connect the wallet to the provider - let client = SignerMiddleware::new(provider, wallet); - - // Craft the transaction - // This also knows to estimate the `max_priority_fee_per_gas` - // but added it manually just to see how it would look - let tx = Eip1559TransactionRequest::new() - .to(to_address) - .value(U256::from(utils::parse_ether(0.01)?)) - .max_priority_fee_per_gas(U256::from(2000000000_u128)); // 2 Gwei - - // Send it! - let pending_tx = client.send_transaction(tx, None).await?; - - // Get the mined tx - let receipt = pending_tx.await?.ok_or_else(|| eyre::format_err!("tx dropped from mempool"))?; - let tx = client.get_transaction(receipt.transaction_hash).await?; - - println!("Sent tx: {}\n", serde_json::to_string(&tx)?); - println!("Tx receipt: {}", serde_json::to_string(&receipt)?); - - Ok(()) -} -``` - -### 2. Run the modified code - -From the `infura_rs` directory, run the code: - -```rust -cargo run -``` - -An output similar to the following is displayed: - -```log -Compiling infura_rs v0.1.0 (/Users/rajkaramchedu/onboarding/traian-tutorials/infura_rs) -warning: unused import: `types::TransactionRequest` - --> src/main.rs:2:12 - | -2 | core::{types::TransactionRequest}, - | ^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: `#[warn(unused_imports)]` on by default - -warning: `infura_rs` (bin "infura_rs") generated 1 warning (run `cargo fix --bin "infura_rs"` to apply 1 suggestion) -Finished dev [unoptimized + debuginfo] target(s) in 2.42s -Running `target/debug/infura_rs` - -Sent tx: -{ - "hash": "0xbbc036f4dfe00b590c3693b8a2516316dec5748b3e4085ec92dfc040d8b8492b", - "nonce": "0x4", - "blockHash": "0xe64a029af23b18738a69c6eab19b85d99dc2844e8ce54a4bedcc1a75fe18dc08", - "blockNumber": "0x3a7a42", - "transactionIndex": "0xf", - "from": "0xe33fef60722ba79989aeaa1b6e6daf7f351c0fbb", - "to": "0xaed01c776d98303ee080d25a21f0a42d94a86d9c", - "value": "0x2386f26fc10000", - "gasPrice": "0x7735940c", - "gas": "0x5208", - "input": "0x", - "v": "0x1", - "r": "0xa0e4125501b3146910750408adaa255cd3e3a06461e311e1146a0983fcd9b0e0", - "s": "0x35c5c6cf6650dcff0ed1e25689d0ce17f7f5986342276f11651976c7048172d1", - "type": "0x2", - "accessList": [], - "maxPriorityFeePerGas": "0x77359400", - "maxFeePerGas": "0xb2d05e16", - "chainId": "0xaa36a7" -} - -Tx receipt: -{ - "transactionHash": "0xbbc036f4dfe00b590c3693b8a2516316dec5748b3e4085ec92dfc040d8b8492b", - "transactionIndex": "0xf", - "blockHash": "0xe64a029af23b18738a69c6eab19b85d99dc2844e8ce54a4bedcc1a75fe18dc08", - "blockNumber": "0x3a7a42", - "from": "0xe33fef60722ba79989aeaa1b6e6daf7f351c0fbb", - "to": "0xaed01c776d98303ee080d25a21f0a42d94a86d9c", - "cumulativeGasUsed": "0x6a7187", - "gasUsed": "0x5208", - "contractAddress": null, - "logs": [], - "status": "0x1", - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "effectiveGasPrice": "0x7735940c" -} -``` - -Ignore the `"warning: unused import: types::TransactionRequest"`. -In the above transaction receipt, the transaction type shows `"type":"0x2"` indicating that this was an EIP-1559 transaction. diff --git a/services/tutorials/ethereum/send-a-transaction/use-web3.js.md b/services/tutorials/ethereum/send-a-transaction/use-web3.js.md deleted file mode 100644 index fcfab7e67e6..00000000000 --- a/services/tutorials/ethereum/send-a-transaction/use-web3.js.md +++ /dev/null @@ -1,193 +0,0 @@ ---- -description: Send a transaction using Web3.js. ---- - -import Tabs from '@theme/Tabs'; -import TabItem from '@theme/TabItem'; - -# Use web3.js - -In this tutorial, you'll send a regular transaction of 0.001 ETH from one account to another using the Web3 JavaScript library. - -## Prerequisites - -- A [Web3 project](../../../get-started/infura.md) on Infura -- [Node.js installed](https://nodejs.org/en/download/) -- An Ethereum account - -:::info - -Use [MetaMask](https://metamask.io) or similar to create an Ethereum account for testing. - -::: - -## Steps - -### 1. Select your network and verify funds - -- **Sepolia** - To use the Sepolia testnet, ensure that your account has Sepolia ETH. - You can use the [MetaMask faucet](/developer-tools/faucet) to add more funds. -- **Alternative network** - To use an alternative network, ensure that your account has testnet ETH for that network. - :::info note - When using an alternative network, you'll: - - Update your `.env` file in [Step 4](#4-create-a-env-file) with the alternative network name. - - Update the `chaindId` in [Step 5](#5-create-a-sendjs-file) with the alternative network chain ID. - ::: - -### 2. Create a project directory - -Create a new directory for your project. This can be done from the command line: - -```bash -mkdir sendTransaction -``` - -Change into the new directory: - -```bash -cd sendTransaction -``` - -### 3. Install required packages - -Install the `web3` and `dotenv` packages in the project directory. - -:::info - -The [`dotenv`](../../../how-to/javascript-dotenv.md) package allows you to use a `.env` file to securely store private environment variables on your local machine. - -::: - -Install the `web3` package: - -``` -npm install web3 -``` - -Install the `dotenv` package: - -``` -npm install dotenv --save -``` - -### 4. Create a `.env` file - -Create a `.env` file in your project directory to store the project and Ethereum account details. - - - - -```text title=".env" -ETHEREUM_NETWORK = "" -INFURA_API_KEY = "" -SIGNER_PRIVATE_KEY = "" -``` - - - - -```text title=".env" -ETHEREUM_NETWORK = "sepolia" -INFURA_API_KEY = "d23...x...6e" -SIGNER_PRIVATE_KEY = "0x561...x...61df" -``` - - - - -Replace the following values in the `.env` file: - -- `` with `sepolia` or the alternative network you are using. -- `` with your API key of the web3 project. -- `` with the [private key of your Ethereum account](https://support.metamask.io/configure/accounts/how-to-export-an-accounts-private-key/). A transaction must be signed with the sender's private key. Make sure that you prefix the `SIGNER_PRIVATE_KEY` value with `0x`. The private key you export from MetaMask isn't prefixed with `0x`. - -:::danger - -Never disclose your private key. Anyone with your private keys can steal the assets controlled by those keys. - -::: - -### 5. Create a `send.js` file - -In the project directory, create a `send.js` file, which configures and sends the transaction. -For example: - -:::warning Important - -- To send test ETH to an account of your choice, update line 20 with your selected account. -- If you are using an alternative network to Sepolia, update the `chainId` in line 39 with your - network chain ID. - -::: - -```javascript title="send.js" showLineNumbers {20,39} -const { Web3 } = require('web3') -const { ETH_DATA_FORMAT, DEFAULT_RETURN_FORMAT } = require('web3') -async function main() { - // Configuring the connection to an Ethereum node - const network = process.env.ETHEREUM_NETWORK - const web3 = new Web3( - new Web3.providers.HttpProvider(`https://${network}.infura.io/v3/${process.env.INFURA_API_KEY}`) - ) - // Creating a signing account from a private key - const signer = web3.eth.accounts.privateKeyToAccount(process.env.SIGNER_PRIVATE_KEY) - web3.eth.accounts.wallet.add(signer) - await web3.eth - .estimateGas( - { - from: signer.address, - to: '0xAED01C776d98303eE080D25A21f0a42D94a86D9c', // Replace with your selected account - value: web3.utils.toWei('0.0001', 'ether'), - }, - 'latest', - ETH_DATA_FORMAT - ) - .then(value => { - limit = value - }) - - // Creating the transaction object - const tx = { - from: signer.address, - to: '0xAED01C776d98303eE080D25A21f0a42D94a86D9c', - value: web3.utils.toWei('0.0001', 'ether'), - gas: limit, - nonce: await web3.eth.getTransactionCount(signer.address), - maxPriorityFeePerGas: web3.utils.toWei('3', 'gwei'), - maxFeePerGas: web3.utils.toWei('90', 'gwei'), - chainId: 11155111, // If you're not using Sepolia, replace with your network chain ID - type: 0x2, - } - signedTx = await web3.eth.accounts.signTransaction(tx, signer.privateKey) - console.log('Raw transaction data: ' + signedTx.rawTransaction) - // Sending the transaction to the network - const receipt = await web3.eth - .sendSignedTransaction(signedTx.rawTransaction) - .once('transactionHash', txhash => { - console.log(`Mining transaction ...`) - console.log(`https://${network}.etherscan.io/tx/${txhash}`) - }) - // The transaction is now on chain! - console.log(`Mined in block ${receipt.blockNumber}`) -} -require('dotenv').config() -main() -``` - -### 6. Execute the transaction - -To execute the transaction, run: - -```bash -node send.js -``` - -The terminal displays a log similar to the following. Select the URL to view the transaction details. - -```bash -Raw transaction data: -0x02f87383aa36a78084b2d05e0084b2d05e0082520894aed01c776d98303ee080d25a21f0a42d94a86d9c865af3107a400080c080a058b88e1e01517ecaab0349f838aa07cbc90297679b2bbf2f48fa6f53b02ae358a00564373fe50e923d87f1da8d7805533c71cf81af32d66b3b2f45e972e4896fde -Mining transaction ... -https://sepolia.etherscan.io/tx/0x31581c7ac2020de48d48363171fb3406f19fd14e67575695dafba51295959049 -Mined in block 3773903 -``` diff --git a/services/tutorials/ethereum/send-erc-20-token-rust.md b/services/tutorials/ethereum/send-erc-20-token-rust.md deleted file mode 100644 index fd69ade6552..00000000000 --- a/services/tutorials/ethereum/send-erc-20-token-rust.md +++ /dev/null @@ -1,154 +0,0 @@ ---- -description: A tutorial for sending ERC-20 tokens. -sidebar_position: 7 ---- - -# Send an ERC-20 token - -In this tutorial we'll use Rust and the [ethers-rs library](https://docs.rs/ethers/latest/ethers/) to send an ERC-20 token from one address to another. This tutorial uses the Sepolia testnet and sends the [Chainlink token (LINK)](https://sepolia.etherscan.io/token/0x779877a7b0d9e8603169ddbd7836e478b4624789#code). - -## Prerequisites - -- Make sure that you have test LINK in your MetaMask wallet. You can obtain test LINK for the Sepolia network using the [Chainlink faucet](https://faucets.chain.link/). Make sure that the `Ethereum Sepolia` network is selected on the top right of the faucet page when you connect your MetaMask wallet. -- [Install Rust from The Cargo Book](https://doc.rust-lang.org/cargo/getting-started/installation.html). - -## Send the token - -### 1. Create a new project - -Open a terminal and create a new project. - -```Rust -cargo new infura_rs -``` - -This creates the `infura_rs` directory with the following structure: - -```text -infura_rs -├── Cargo.toml -└── src - └── main.rs -``` - -:::info - -Refer to the [Cargo documentation](https://doc.rust-lang.org/cargo/getting-started/first-steps.html) for more information about getting started with Cargo. - -::: - -### 2. Edit the dependencies - -Open `Cargo.toml` with your preferred editor and add the following dependencies to it: - -```toml -[dependencies] -ethers = "2.0" -eyre = "0.6.8" -hex = "0.4.3" -tokio = { version = "1.28.2", features = ["full"] } -serde_json = "1.0.96" -``` - -### 3. Copy the contract ABI - -- Create a text file with the name `ct.json` in the `infura-rs` project directory. Visit the [ChainLink Token site on Etherscan](https://sepolia.etherscan.io/token/0x779877a7b0d9e8603169ddbd7836e478b4624789#code) and copy the `Contract ABI` (you will see it in a bottom section of the page) into the `ct.json` file. - -### 4. Update the main code - -Open the Rust source `src/main.rs` and replace its contents with the following code: - -```rust showLineNumbers -use ethers::{ - middleware::SignerMiddleware, - providers::{Http, Middleware, Provider}, - signers::{LocalWallet, Signer}, - types::{Address, U256}, - contract::abigen -}; -use eyre::Result; -use std::convert::TryFrom; -use std::sync::Arc; -use serde_json::Value; - -#[tokio::main] -async fn main() -> Result<()> { - // connect to the network, don't forget to replace your INFURA_API_KEY - let provider = Provider::::try_from("https://sepolia.infura.io/v3/INFURA_API_KEY")?; - - let chain_id = provider.get_chainid().await?; - - let contract_address = "0x779877A7B0D9E8603169DdbD7836e478b4624789".parse::
()?; - - // define a `ERC20Contract` struct from the ABI - abigen!(ERC20Contract, "./ct.json",); - - let to_address = "0xF1B792820b52e6503208CAb98ec0B7b89ac64D6A".parse::
()?; - - // Create the contract instance to let us call methods of the contract and let it sign transactions with the sender wallet. - // for simplicity replace the private key (without 0x), ofc it always recommended to load it from an .env file or external vault - let wallet: LocalWallet = "SIGNER_PRIVATE_KEY" - .parse::()? - .with_chain_id(chain_id.as_u64()); - - let signer = Arc::new(SignerMiddleware::new(provider, wallet.with_chain_id(chain_id.as_u64()))); - let contract = ERC20Contract::new(contract_address, signer); - - // Fetch the decimals used by the contract so we can compute the decimal amount to send. - let whole_amount: u64 = 1; - let decimals = contract.decimals().call().await?; - let decimal_amount = U256::from(whole_amount) * U256::exp10(decimals as usize); - - // Transfer the desired amount of tokens to the `to_address` - let tx = contract.transfer(to_address, decimal_amount); - let pending_tx = tx.send().await?; - let _mined_tx = pending_tx.await?; - - println!("Transaction Receipt: {}", serde_json::to_string(&_mined_tx)?); - - // Extract the tx hash for printing - let json_str = serde_json::to_string(&_mined_tx)?; - let json: Value = serde_json::from_str(&json_str)?; - - if let Some(transaction_hash) = json["transactionHash"].as_str() { - println!("\n URL: https://sepolia.etherscan.io/tx/{}", transaction_hash); - } else { - println!("Transaction Hash not found"); - } - - Ok(()) -} -``` - -Next, make the following updates to the above code: - -- On line 17 replace the `INFURA_API_KEY` with the API key of your API project from the - [Infura dashboard](https://app.infura.io/login). -- On line 30 replace the `SIGNER_PRIVATE_KEY` with the private key of your Ethereum account. - -:::tip Secure your keys -To better secure your keys, follow the recommended approach described in the section [Create the .env file](send-a-transaction/use-web3.js.md#4-create-a-env-file). -::: - -### 4. Run the code - -From the `infura_rs` directory, run the code. - -```rust -cargo run -``` - -You will see an output similar to the following. -:::note Use the wrap button -Use the wrap button on the top right of the below code block window for wrapped display. -::: - -```log -Finished dev [unoptimized + debuginfo] target(s) in 0.31s - Running `target/debug/infura_rs` -Transaction Receipt: {"transactionHash":"0x301ae601943c5a1822886bf36e58c289ef942ca4bb08226ea3090b685aef9c7e","transactionIndex":"0x4","blockHash":"0xba6c880b14a7927ed2b6a5ac4e434d13d051dc770fe5f68666bb4d9b9ee1faed","blockNumber":"0x3a91b7","from":"0xe33fef60722ba79989aeaa1b6e6daf7f351c0fbb","to":"0x779877a7b0d9e8603169ddbd7836e478b4624789","cumulativeGasUsed":"0xd4673","gasUsed":"0x86fe","contractAddress":null,"logs":[{"address":"0x779877a7b0d9e8603169ddbd7836e478b4624789","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","0x000000000000000000000000e33fef60722ba79989aeaa1b6e6daf7f351c0fbb","0x000000000000000000000000f1b792820b52e6503208cab98ec0b7b89ac64d6a"],"data":"0x0000000000000000000000000000000000000000000000000de0b6b3a7640000","blockHash":"0xba6c880b14a7927ed2b6a5ac4e434d13d051dc770fe5f68666bb4d9b9ee1faed","blockNumber":"0x3a91b7","transactionHash":"0x301ae601943c5a1822886bf36e58c289ef942ca4bb08226ea3090b685aef9c7e","transactionIndex":"0x4","logIndex":"0x7","removed":false}],"status":"0x1","logsBloom":"0x00000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000040000001000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000082000000000000000000000000000000008000000100000000000000000000000000008000000000000000000000000000000000000000000000000000","type":"0x2","effectiveGasPrice":"0xb2d05e09"} - - URL: https://sepolia.etherscan.io/tx/0x301ae601943c5a1822886bf36e58c289ef942ca4bb08226ea3090b685aef9c7e -``` - -Visit the URL displayed at the bottom of the above terminal log to confirm the transfer of the LINK token. diff --git a/services/tutorials/ethereum/subscribe-to-pending-transactions.md b/services/tutorials/ethereum/subscribe-to-pending-transactions.md deleted file mode 100644 index 0186b7e9e6a..00000000000 --- a/services/tutorials/ethereum/subscribe-to-pending-transactions.md +++ /dev/null @@ -1,228 +0,0 @@ ---- -description: Listen for new transactions on the blockchain. -sidebar_position: 8 ---- - -# Subscribe to pending transactions - -This tutorial shows you how to use Ethereum subscriptions to listen for new transactions on the blockchain as they get submitted. - -The tutorial uses the Python `websockets` library and Infura's WebSocket endpoint to subscribe to transactions and events on the blockchain. - -## Prerequisites - -- An [Ethereum project](../../get-started/infura.md) on Infura -- [Python installed](https://www.python.org/downloads/) - -## Steps - -### 1. Create your project directory - -Create a new directory: - -```bash -mkdir subscribe -``` - -`cd` into the directory: - -```bash -cd subscribe -``` - -### 2. Install dependencies - -Install `web3.py` and the `websockets` library: - -``` -pip install web3 websockets -``` - -### 3. Import project libraries - -Create your file (for example `subscribe.py`) and import the libraries needed for the project: - -```python -import asyncio -import json -import requests -from web3 import Web3 -from websockets import connect -``` - -### 4. Connect to Infura - -Connect to Infura's WebSockets endpoint to subscribe to new pending transactions, and Infura's HTTP Ethereum endpoint so we can make JSON-RPC calls such as `eth_get_transaction` to get more information about a specific transaction. - -Define the following endpoints in your file: - -```python -infura_ws_url = "wss://mainnet.infura.io/ws/v3/" -infura_http_url = "https://mainnet.infura.io/v3/" -web3 = Web3(Web3.HTTPProvider(infura_http_url)) -``` - -:::warning - -Replace `` with your Infura API key, you can use the same for both endpoints. - -::: - -### 5. Subscribe to pending transactions - -Create an `async` method that connects to Infura's WebSocket endpoint: - -```python -async def get_event(): - async with connect(infura_ws_url) as ws: - await ws.send('{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}') - subscription_response = await ws.recv() - print(subscription_response) # {"jsonrpc": "2.0", "id": 1, "result": "0xd67da23f62a01f58042bc73d3f1c8936"} -``` - -In the method we use `ws.send()` to start a new subscription for new pending transactions, after which we get a confirmation back from the node with our subscription ID. - -Next, we can await any new messages from the Infura node and print the transaction hash of every new transaction appearing on the Ethereum chain. - -```python -while True: - try: - message = await asyncio.wait_for(ws.recv(), timeout=15) - response = json.loads(message) - txHash = response["params"]["result"] - print(txHash) - except Exception as e: - print(f"An error occurred: {e}") - pass -``` - -Finally, we'll add an `if __name__ == "__main__"` statement, so that our program runs when we execute it from a command line. - -```python -if __name__ == "__main__": - loop = asyncio.get_event_loop() - while True: - loop.run_until_complete(get_event()) -``` - -The complete code sample should now look as follows: - -```python -import asyncio -import json -import requests -from web3 import Web3 -from websockets import connect - -infura_ws_url = "wss://mainnet.infura.io/ws/v3/" -infura_http_url = "https://mainnet.infura.io/v3/" -web3 = Web3(Web3.HTTPProvider(infura_http_url)) - -async def get_event(): - async with connect(infura_ws_url) as ws: - await ws.send('{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}') - subscription_response = await ws.recv() - print(subscription_response) - - while True: - try: - message = await asyncio.wait_for(ws.recv(), timeout=15) - response = json.loads(message) - txHash = response["params"]["result"] - print(txHash) - except Exception as e: - print(f"An error occurred: {e}") - pass - -if __name__ == "__main__": - loop = asyncio.get_event_loop() - while True: - loop.run_until_complete(get_event()) -``` - -### 6. Execute the program - -Execute the program using the following: - -```python -python3 subscribe.py -``` - -You should now see the terminal fill up with Ethereum transfers: - -``` -{"jsonrpc": "2.0", "id": 1, "result": "0xf1c8df0cb54ea89828976b86f2325930"} -0x9831d16f46bfe723514594e990cb3c66824a584fd849984f28adac8fb5523702 -0x1c3837ceffdd48325e19754f7b84fda4effd32c0c141b7dafa90d741cdc2c8f9 -0x4f8e5706c60be6482f810af9a5d9191447d55c7441f68f4019a124d04d2a40d4 -0x0e90c6b1f286b6298f01f837ea8934229af680449a5e3761585cd79139fc6531 -... -``` - -### 7. Monitor a specific address for transactions - -You can update the program to monitor incoming transactions to a specific Ethereum address. Let's define an account we'd like to monitor first, outside of the `get_event()` function: - -```python -account = "" -``` - -Then, inside the function and `try` block, append the following to check whether the recipient is the address we specified, after which it will print the transaction hash, sender address, and the value sent in Ether. - -```python -tx = web3.eth.get_transaction(txHash) -if tx.to == account: - print("Pending transaction found with the following details:") - print({ - "hash": txHash, - "from": tx["from"], - "value": web3.fromWei(tx["value"], "ether") - }) -``` - -The full program code should now look as follows: - -```python -import asyncio -import json -import requests -from web3 import Web3 -from websockets import connect - -infura_ws_url = "wss://mainnet.infura.io/ws/v3/" -infura_http_url = "https://mainnet.infura.io/v3/" -web3 = Web3(Web3.HTTPProvider(infura_http_url)) - -# Used if you want to monitor ETH transactions to a specific address -account = "" - -async def get_event(): - async with connect(infura_ws_url) as ws: - await ws.send('{"jsonrpc": "2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}') - subscription_response = await ws.recv() - print(subscription_response) - - while True: - try: - message = await asyncio.wait_for(ws.recv(), timeout=15) - response = json.loads(message) - txHash = response["params"]["result"] - print(txHash) - # Monitor transactions to a specific address - tx = web3.eth.get_transaction(txHash) - if tx.to == account: - print("Pending transaction found with the following details:") - print({ - "hash": txHash, - "from": tx["from"], - "value": web3.fromWei(tx["value"], "ether") - }) - except Exception as e: - print(f"An error occurred: {e}") - pass - -if __name__ == "__main__": - loop = asyncio.get_event_loop() - while True: - loop.run_until_complete(get_event()) -``` diff --git a/services/tutorials/ethereum/track-erc-20-token-transfers.md b/services/tutorials/ethereum/track-erc-20-token-transfers.md deleted file mode 100644 index 90886df3bca..00000000000 --- a/services/tutorials/ethereum/track-erc-20-token-transfers.md +++ /dev/null @@ -1,450 +0,0 @@ ---- -description: Track ERC-20 token transfers. -sidebar_position: 9 ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Track ERC-20 token transfers - -In this tutorial, you'll track [ERC-20 token](../../how-to/interact-with-erc-20-tokens.md) transfers from a specific address using the Web3 JavaScript library. - -## Prerequisites - -- An [Ethereum project](../../get-started/infura.md) on Infura -- [Node.js installed](https://nodejs.org/en/download/) - -## Steps - -### 1. Create a project directory - -Create a new directory for your project. This can be done from the command line: - -```bash -mkdir trackERC20 -``` - -Change into the new directory: - -```bash -cd trackERC20 -``` - -### 2. Install required packages - -Install the `web3` package in the project directory: - -```bash -npm install web3 -``` - -:::info - -This example has been written for web3js v4.x. It may not work for earlier versions. - -::: - -### 3. Set up the script - -Create a file called `trackERC20.js`. At the top of the file, add the following lines to import the web3.js library and connect to the Infura WebSocket endpoint: - -```javascript -const { Web3 } = require("web3"); - -async function main(){ - const web3 = new Web3("wss://mainnet.infura.io/ws/v3/"); - ... -} -main(); -``` - -Make sure to replace `` with your Infura API key. - -### 4. Set the ABI - -Define the ERC-20 ABI by adding the following to the script: - -```json -const abi = [ - { - constant: true, - inputs: [], - name: "symbol", - outputs: [ - { - name: "", - type: "string", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, - { - constant: true, - inputs: [], - name: "decimals", - outputs: [ - { - name: "", - type: "uint8", - }, - ], - payable: false, - stateMutability: "view", - type: "function", - }, -]; -``` - -### 5. Subscribe to contract events - -You can subscribe to the events that token contracts emit, allowing you to track every new token transfer as it occurs. - -Add the following filter to the script, which tells the `web3.eth.subscribe` function in web3.js which events to track: - -```javascript -let options = { - topics: [web3.utils.sha3('Transfer(address,address,uint256)')], -} -``` - -Then, initiate the subscription by passing along the filter: - -```javascript -let subscription = await web3.eth.subscribe('logs', options) -``` - -:::info - -In [step 3](#3-set-up-the-script), you wrap the whole script in an async function `main()`, because top level await is not allowed except in recent JavaScript versions. - -::: - -You can also add the following lines to the script to see whether the subscription started successfully or if any errors occurred: - -```javascript -subscription.on('error', err => { - throw err -}) -subscription.on('connected', nr => console.log('Subscription on ERC-20 started with ID %s', nr)) -``` - -### 6. Read ERC-20 transfers - -You can set the listener for the `subscription` created in [step 5](track-erc-20-token-transfers.md#5-subscribe-to-contract-events) by adding the following lines to the script: - -```javascript -subscription.on('data', event => { - if (event.topics.length == 3) { - // ... - } -}) -``` - -:::info - -To verify that the `Transfer` event you catch is an ERC-20 transfer, these lines check to see whether the length of the `topics` array equals 3. This is because ERC-721 events also emit a `Transfer` event but contain four items instead. - -::: - -Because you can't read the event topics on their own, you must decode them using the ERC-20 ABI. Edit the listener as follows: - -```javascript -subscription.on('data', event => { - if (event.topics.length == 3) { - let transaction = web3.eth.abi.decodeLog( - [ - { - type: 'address', - name: 'from', - indexed: true, - }, - { - type: 'address', - name: 'to', - indexed: true, - }, - { - type: 'uint256', - name: 'value', - indexed: false, - }, - ], - event.data, - [event.topics[0], event.topics[1], event.topics[2]] - ) - } -}) -``` - -You can now retrieve the sender address (`from`), receiving address (`to`), and the number of tokens transferred (`value`, though yet to be converted, see [step 7](track-erc-20-token-transfers.md#7-read-contract-data)) from the `transaction` object. - -### 7. Read contract data - -Even though you retrieve a `value` from the contract, this isn't the actual number of tokens transferred. ERC-20 tokens contain a `decimal` value, which indicates the number of decimals a token should have. You can directly call the `decimals` method of the smart contract to retrieve the decimal value, after which you can calculate the correct number of tokens sent. - -:::note -It is optional for ERC-20 contracts to implement these methods (see [EIP-20: ERC-20 Token Standard](https://eips.ethereum.org/EIPS/eip-20#methods)), so you check for errors and fall back to default values. -::: - -Outside the `subscription.on()` listener created in [step 6](track-erc-20-token-transfers.md#6-read-erc-20-transfers), define a new method that allows you to collect more information from the smart contract: - -```javascript -async function collectData(contract) { - try { - var decimals = await contract.methods.decimals().call() - } catch { - decimals = 18n - } - try { - var symbol = await contract.methods.symbol().call() - } catch { - symbol = '???' - } - return { decimals, symbol } -} -``` - -:::info - -Since you're already requesting the `decimals` value from the contract, you can also request the `symbol` value to display the ticker of the token. - -::: - -Inside the listener, call the `collectData` function every time a new ERC-20 transaction is found. You can also calculate the correct decimal value: - -```javascript -subscription.on('data', event => { - if (event.topics.length == 3) { - let transaction = web3.eth.abi.decodeLog( - [ - { - type: 'address', - name: 'from', - indexed: true, - }, - { - type: 'address', - name: 'to', - indexed: true, - }, - { - type: 'uint256', - name: 'value', - indexed: false, - }, - ], - event.data, - [event.topics[0], event.topics[1], event.topics[2]] - ) - - const contract = new web3.eth.Contract(abi, event.address) - collectData(contract).then(contractData => { - var unit = Object.keys(web3.utils.ethUnitMap).find( - key => web3.utils.ethUnitMap[key] == BigInt(10) ** contractData.decimals - ) - if (!unit) { - // Simplification for contracts that use "non-standard" units, e.g. REDDIT contract returns decimals==8 - unit = 'wei' - } - const value = web3.utils.fromWei(transaction.value, unit) - console.log( - `Transfer of ${value + ' '.repeat(Math.max(0, 30 - value.length))} ${ - contractData.symbol + ' '.repeat(Math.max(0, 10 - contractData.symbol.length)) - } from ${transaction.from} to ${transaction.to}` - ) - }) - } -}) -``` - -### 8. Track a specific address - -You can track a specific sender address by reading the `from` value of the decoded `transaction` object. Add the following line to the listener created in [step 6](track-erc-20-token-transfers.md#6-read-erc-20-transfers), replacing `` with the Ethereum address to track: - -```javascript -if (transaction.from == '') { - console.log('Specified address sent an ERC-20 token!') -} -``` - -You can also track a specific recipient address receiving any tokens by tracking the `transaction.to` value: - -```javascript -if (transaction.to == '') { - console.log('Specified address received an ERC-20 token!') -} -``` - -### 9. Track a specific token - -You can track a specific address sending a specific ERC-20 token, by checking for both `transaction.from` (the token sender) and `event.address` (the ERC-20 smart contract). Add the following line to the listener created in [step 6](track-erc-20-token-transfers.md#6-read-erc-20-transfers), replacing `` with the Ethereum address to track, and `` with the smart contract address to track: - -```javascript -if (transaction.from == '' && event.address == '') { - console.log('Specified address transferred specified token!') -} -``` - -You can also track any transactions for a specific ERC-20 token, regardless of the sender or recipient: - -```javascript -if (event.address == '') { - console.log('Specified ERC-20 transfer!') -} -``` - -### 10. Run the script - -Run the script using the following command: - - - - -```bash -node trackERC20.js -``` - - - - -```bash -Transfer of 9417.663694821564607555 RIO from 0x6b75d8AF000000e20B7a7DDf000Ba900b4009A80 to 0x5b7E3E37a1aa6369386e5939053779abd3597508 -Transfer of 1.554276118336708787 WETH from 0x60594a405d53811d3BC4766596EFD80fd545A270 to 0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD -Transfer of 2685 DAI from 0x008CE5dcC3d66e6FD7D657Ea81B54d1afFFAba4b to 0x60594a405d53811d3BC4766596EFD80fd545A270 -Specified ERC-20 transfer! -Transfer of 9964.083347473883463154 RIO from 0x5b7E3E37a1aa6369386e5939053779abd3597508 to 0x008CE5dcC3d66e6FD7D657Ea81B54d1afFFAba4b -``` - - - - -### Complete code overview - -```javascript -const { Web3 } = require('web3') - -async function main() { - const web3 = new Web3('wss://mainnet.infura.io/ws/v3/') - - let options = { - topics: [web3.utils.sha3('Transfer(address,address,uint256)')], - } - - const abi = [ - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [ - { - name: '', - type: 'string', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [ - { - name: '', - type: 'uint8', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - ] - - let subscription = await web3.eth.subscribe('logs', options) - - async function collectData(contract) { - try { - var decimals = await contract.methods.decimals().call() - } catch { - decimals = 18n - } - try { - var symbol = await contract.methods.symbol().call() - } catch { - symbol = '???' - } - return { decimals, symbol } - } - - subscription.on('data', event => { - if (event.topics.length == 3) { - let transaction = web3.eth.abi.decodeLog( - [ - { - type: 'address', - name: 'from', - indexed: true, - }, - { - type: 'address', - name: 'to', - indexed: true, - }, - { - type: 'uint256', - name: 'value', - indexed: false, - }, - ], - event.data, - [event.topics[0], event.topics[1], event.topics[2]] - ) - - const contract = new web3.eth.Contract(abi, event.address) - collectData(contract).then(contractData => { - var unit = Object.keys(web3.utils.ethUnitMap).find( - key => web3.utils.ethUnitMap[key] == BigInt(10) ** contractData.decimals - ) - if (!unit) { - // Simplification for contracts that use "non-standard" units, e.g. REDDIT contract returns decimals==8 - unit = 'wei' - } - // This is logging each transfer event found: - const value = web3.utils.fromWei(transaction.value, unit) - console.log( - `Transfer of ${value + ' '.repeat(Math.max(0, 30 - value.length))} ${ - contractData.symbol + ' '.repeat(Math.max(0, 10 - contractData.symbol.length)) - } from ${transaction.from} to ${transaction.to}` - ) - - // Below are examples of testing for transactions involving particular EOA or contract addresses - if (transaction.from == '0x495f947276749ce646f68ac8c248420045cb7b5e') { - console.log('Specified address sent an ERC-20 token!') - } - if (transaction.to == '0x495f947276749ce646f68ac8c248420045cb7b5e') { - console.log('Specified address received an ERC-20 token!') - } - if ( - transaction.from == '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D' && - event.address == '0x6b175474e89094c44da98b954eedeac495271d0f' - ) { - console.log('Specified address transferred specified token!') - } // event.address contains the contract address - if (event.address == '0x6b175474e89094c44da98b954eedeac495271d0f') { - console.log('Specified ERC-20 transfer!') - } - }) - } - }) - - subscription.on('error', err => { - throw err - }) - subscription.on('connected', nr => console.log('Subscription on ERC-20 started with ID %s', nr)) -} -main() -``` diff --git a/services/tutorials/ethereum/track-erc-721-and-erc-1155-token-transfers.md b/services/tutorials/ethereum/track-erc-721-and-erc-1155-token-transfers.md deleted file mode 100644 index a918c00f4b8..00000000000 --- a/services/tutorials/ethereum/track-erc-721-and-erc-1155-token-transfers.md +++ /dev/null @@ -1,427 +0,0 @@ ---- -description: Track ERC-721 and ERC-1155 token transfers. -sidebar_position: 10 ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Track ERC-721 and ERC-1155 token transfers - -In this tutorial, you'll track ERC-721 and ERC-1155 token transfers and mints from a specific address using the Web3 JavaScript library. - -## Prerequisites - -- An [Ethereum project](../../get-started/infura.md) on Infura -- [Node.js installed](https://nodejs.org/en/download/) - -## Steps - -### 1. Create a project directory - -Create a new directory for your project. This can be done from the command line: - -```javascript -mkdir trackERC721 -``` - -Change into the new directory: - -```javascript -cd trackERC721 -``` - -### 2. Install required packages - -Install the `web3` package in the project directory: - -```javascript -npm install web3 -``` - -:::info - -This example has been written for web3js v4.x. It may not work for earlier versions. - -::: - -### 3. Set up the script - -Create a file called `trackERC721.js`. At the top of file, add the following lines to import the web3.js library and connect to the Infura WebSocket endpoint: - -```javascript -const { Web3 } = require("web3"); - -async function main(){ - const web3 = new Web3("wss://mainnet.infura.io/ws/v3/"); - ... -} -main(); -``` - -Make sure to replace `` with your Infura API key. - -### 4. Subscribe to contract events - -You can subscribe to the events that token contracts emit, allowing you to track every new token transfer as it occurs. - -Add the following filter to the script, which tells the `web3.eth.subscribe` function in web3.js which events to track: - -```javascript -let options721 = { - topics: [web3.utils.sha3('Transfer(address,address,uint256)')], -} - -let options1155 = { - topics: [web3.utils.sha3('TransferSingle(address,address,address,uint256,uint256)')], -} -``` - -Then, initiate the subscription by passing along the filter: - -```javascript -let subscription721 = await web3.eth.subscribe('logs', options721) -let subscription1155 = await web3.eth.subscribe('logs', options1155) -``` - -:::info - -In [step 3](#3-set-up-the-script), you wrap the whole script in an async function `main()`, because top level await is not allowed except in recent JavaScript versions. - -::: - -You can also add the following lines to the script to see whether the subscription started successfully or if any errors occurred: - -```javascript -subscription721.on('error', err => { - throw err -}) -subscription1155.on('error', err => { - throw err -}) - -subscription721.on('connected', nr => console.log('Subscription on ERC-721 started with ID %s', nr)) -subscription1155.on('connected', nr => - console.log('Subscription on ERC-1155 started with ID %s', nr) -) -``` - -### 5. Read ERC-721 transfers - -Set the listener for the `subscription721` created in [step 4](#4-subscribe-to-contract-events) by adding the following lines to the script: - -```javascript -subscription721.on('data', event => { - if (event.topics.length == 4) { - // ... - } -}) -``` - -:::info - -To verify that the `Transfer` event you catch is an ERC-721 transfer, these lines check to see whether the length of the `topics` array equals 4. This is because ERC-20 events also emit a `Transfer` event but contain three items instead. - -::: - -Because you can't read the event topics on their own, you must decode them using the ERC-721 ABI. Edit the listener as follows: - -```javascript -let transaction = web3.eth.abi.decodeLog( - [ - { - type: 'address', - name: 'from', - indexed: true, - }, - { - type: 'address', - name: 'to', - indexed: true, - }, - { - type: 'uint256', - name: 'tokenId', - indexed: true, - }, - ], - event.data, - [event.topics[1], event.topics[2], event.topics[3]] -) -``` - -In order to directly call `from`, `to`, and `tokenId` on `transaction`, add the following: - -```javascript -console.log( - `\n` + - `New ERC-721 transaction found in block ${event.blockNumber} with hash ${event.transactionHash}\n` + - `From: ${transaction.from === '0x0000000000000000000000000000000000000000' ? 'New mint!' : transaction.from}\n` + - `To: ${transaction.to}\n` + - `Token contract: ${event.address}\n` + - `Token ID: ${transaction.tokenId}` -) -``` - -### 6. Read ERC-1155 transfers - -You can set the listener for the `subscription1155` created in [step 4](#4-subscribe-to-contract-events) by adding the following lines to the script: - -```javascript -subscription1155.on('data', event => { - // ... -}) -``` - -As with ERC-721 in [Step 5](#5-read-erc-721-transfers), add the ERC-1155 ABI to the listener: - -```javascript -let transaction = web3.eth.abi.decodeLog( - [ - { - type: 'address', - name: 'operator', - indexed: true, - }, - { - type: 'address', - name: 'from', - indexed: true, - }, - { - type: 'address', - name: 'to', - indexed: true, - }, - { - type: 'uint256', - name: 'id', - }, - { - type: 'uint256', - name: 'value', - }, - ], - event.data, - [event.topics[1], event.topics[2], event.topics[3]] -) -``` - -In order to directly call `from`, `to`, and `tokenId` on `transaction`, add the following: - -```javascript -console.log( - `\n` + - `New ERC-1155 transaction found in block ${event.blockNumber} with hash ${event.transactionHash}\n` + - `Operator: ${transaction.operator}\n` + - `From: ${transaction.from === '0x0000000000000000000000000000000000000000' ? 'New mint!' : transaction.from}\n` + - `To: ${transaction.to}\n` + - `id: ${transaction.id}\n` + - `value: ${transaction.value}` -) -``` - -### 7. Track a specific address - -You can track a specific sender address by reading the `from` value of the decoded `transaction` object. For each of the listeners, add the following line, replacing `` with the Ethereum address to track: - -```javascript -if (transaction.from == '') { - console.log('Specified address sent an NFT!') -} -``` - -You can also track a specific recipient address receiving any tokens by tracking the `transaction.to` value: - -```javascript -if (transaction.to == '') { - console.log('Specified address received an NFT') -} -``` - -### 8. Track a specific token - -You can track a specific address sending a specific token, by checking for both `event.address` and `transaction.tokenID`. For each of the listeners, add the following line, replacing `` with the smart contract address to track and `` with specific transaction token ID: - - - - -```javascript -if (event.address == "" && transaction.tokenId == ) { console.log("Specified ERC-721 NFT was transferred!"); } -``` - - - - -```javascript -if (event.address == '') { - console.log('Specified ERC-1155 NFT was transferred!') -} -``` - - - - -### 9. Run the script - -Run the script using the following command: - - - - -```javascript -node trackERC721.js -``` - - - - -```javascript -New ERC-721 transaction found in block 15102209 with hash 0x3b133c1ad2d138bee9a596d94da25892e12a2c95efd1f0916d6708a9b86745b0 -From: 0xDd3c42eb2660c0C7745E48f25864ff743Fef9f33 -To: 0x4c5Ca726584d9b171AE9D6ce67Ab8AFb706259CB -Token contract: 0x35f3b8f37e9341F289398b70Fa2c576Dd102DF75 -Token ID: 950 -``` - - - - -```javascript -New ERC-1155 transaction found in block 15102209 with hash 0xa08afd7696ec7424f8b403ca3733ebbb916faf68442757e2e9349c2d1b90aa9a -Operator: 0x20251a0505Ead51fb2C6ce5c1f399924ea068322 -From: New mint! -To: 0x20251a0505Ead51fb2C6ce5c1f399924ea068322 -id: 2 -value: 1 -``` - - - - -### Complete code overview - -```javascript -const { Web3 } = require('web3') - -async function main() { - const web3 = new Web3('wss://mainnet.infura.io/ws/v3/') - - let options721 = { - topics: [web3.utils.sha3('Transfer(address,address,uint256)')], - } - - let options1155 = { - topics: [web3.utils.sha3('TransferSingle(address,address,address,uint256,uint256)')], - } - - let subscription721 = await web3.eth.subscribe('logs', options721) - let subscription1155 = await web3.eth.subscribe('logs', options1155) - - subscription721.on('data', event => { - if (event.topics.length == 4) { - let transaction = web3.eth.abi.decodeLog( - [ - { - type: 'address', - name: 'from', - indexed: true, - }, - { - type: 'address', - name: 'to', - indexed: true, - }, - { - type: 'uint256', - name: 'tokenId', - indexed: true, - }, - ], - event.data, - [event.topics[1], event.topics[2], event.topics[3]] - ) - - if (transaction.from == '0x495f947276749ce646f68ac8c248420045cb7b5e') { - console.log('Specified address sent an NFT!') - } - if (transaction.to == '0x495f947276749ce646f68ac8c248420045cb7b5e') { - console.log('Specified address received an NFT!') - } - if ( - event.address == '0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D' && - transaction.tokenId == 2500 - ) { - console.log('Specified NFT was transferred!') - } - - console.log( - `\n` + - `New ERC-712 transaction found in block ${event.blockNumber} with hash ${event.transactionHash}\n` + - `From: ${transaction.from === '0x0000000000000000000000000000000000000000' ? 'New mint!' : transaction.from}\n` + - `To: ${transaction.to}\n` + - `Token contract: ${event.address}\n` + - `Token ID: ${transaction.tokenId}` - ) - } - }) - - subscription1155.on('data', event => { - let transaction = web3.eth.abi.decodeLog( - [ - { - type: 'address', - name: 'operator', - indexed: true, - }, - { - type: 'address', - name: 'from', - indexed: true, - }, - { - type: 'address', - name: 'to', - indexed: true, - }, - { - type: 'uint256', - name: 'id', - }, - { - type: 'uint256', - name: 'value', - }, - ], - event.data, - [event.topics[1], event.topics[2], event.topics[3]] - ) - - console.log( - `\n` + - `New ERC-1155 transaction found in block ${event.blockNumber} with hash ${event.transactionHash}\n` + - `Operator: ${transaction.operator}\n` + - `From: ${transaction.from === '0x0000000000000000000000000000000000000000' ? 'New mint!' : transaction.from}\n` + - `To: ${transaction.to}\n` + - `id: ${transaction.id}\n` + - `value: ${transaction.value}` - ) - }) - - subscription721.on('error', err => { - throw err - }) - subscription1155.on('error', err => { - throw err - }) - - subscription721.on('connected', nr => - console.log('Subscription on ERC-721 started with ID %s', nr) - ) - subscription1155.on('connected', nr => - console.log('Subscription on ERC-1155 started with ID %s', nr) - ) -} - -main() -``` diff --git a/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/_category_.json b/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/_category_.json deleted file mode 100644 index 42e6ac0d168..00000000000 --- a/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/_category_.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "label": "Use Infura as a reverse proxy", - "collapsible": true, - "collapsed": true, - "position": 12, - "link": { - "type": "generated-index", - "slug": "tutorials/ethereum/use-infura-as-a-reverse-proxy", - "description": "A reverse proxy is a server that typically sits on the edge of your infrastructure. It receives requests from web clients and routes them to one or more backend web servers. You can set up Infura as a reverse proxy to ensure the flow of traffic between your clients and servers remains smooth." - } -} diff --git a/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/set-up-a-simple-reverse-proxy.md b/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/set-up-a-simple-reverse-proxy.md deleted file mode 100644 index 4d804a5879a..00000000000 --- a/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/set-up-a-simple-reverse-proxy.md +++ /dev/null @@ -1,112 +0,0 @@ ---- -description: Use Caddy to set up a reverse proxy. ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; -import SectionNetworks from "@site/src/components/Sections/SectionNetworks.jsx"; - -# Set up a simple reverse proxy - -In this tutorial, you'll use [Caddy](https://caddyserver.com/) to set up a reverse proxy to route data from Infura to your own node. - -## Prerequisites - -- An [Ethereum project](../../../get-started/infura.md) on Infura -- [Node.js installed](https://nodejs.org/en/download/) -- [Homebrew](https://brew.sh/) installed - -## Steps - -### 1. Create a project directory - -Create a new directory for your project. You can do this from the command line: - -```bash -mkdir reverseProxy -``` - -Change into the new directory: - -```bash -cd reverseProxy -``` - -### 2. Install Caddy - -Install Caddy in the project directory using Homebrew: - -```bash -brew install caddy -``` - -### 3. Create the reverse proxy - -To create the reverse proxy, create a text file named `Caddyfile` with the following content: - -``` -localhost - -reverse_proxy https://mainnet.infura.io { -header_up Host -} -``` - -Ensure you replace `` with the API key for your Ethereum project. - -In this example, the reverse proxy retrieves information from the Infura endpoint, and redirects it to `localhost`. -Using `header_up Host` allows you to include your API key to both the Sepolia and localhost endpoints. - -### 4. Run the reverse proxy - -In a new terminal window, from your project directory, run the reverse proxy using Caddy: - -```bash -caddy run -``` - -### 5. Make a request - -In a new terminal window, make a curl request to `localhost`. The following example executes a `web3_clientVersion` request: - - - - -```bash -curl https://localhost/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```javascript -{"jsonrpc": "2.0", "id": 1, "result": "Geth/v1.10.8-omnibus-aef5bfb3/linux-amd64/go1.16.7"} -``` - - - - -To ensure that the reverse proxy is working, execute the same request, replacing `localhost` with `sepolia.infura.io`. You should get the same result: - - - - -```bash -curl https://sepolia.infura.io/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```javascript -{"jsonrpc": "2.0", "id": 1, "result": "Geth/v1.10.8-omnibus-aef5bfb3/linux-amd64/go1.16.7"} -``` - - - diff --git a/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/use-infura-as-a-backup-for-your-node.md b/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/use-infura-as-a-backup-for-your-node.md deleted file mode 100644 index b2092404b69..00000000000 --- a/services/tutorials/ethereum/use-infura-as-a-reverse-proxy/use-infura-as-a-backup-for-your-node.md +++ /dev/null @@ -1,170 +0,0 @@ ---- -description: Use Caddy to set Infura as a backup for your node. ---- - -import Tabs from "@theme/Tabs"; -import TabItem from "@theme/TabItem"; - -# Use Infura as a backup for your node - -In this tutorial, you'll use [Caddy](https://caddyserver.com/) to set up a reverse proxy with two upstreams, one from your own node, and one from Infura as a backup. - -## Prerequisites - -- An [Ethereum project](../../../get-started/infura.md) on Infura -- [Node.js installed](https://nodejs.org/en/download/) -- [Homebrew](https://brew.sh/) installed - -## Steps - -### 1. Create a project directory - -Create a new directory for your project. You can do this from the command line: - -```bash -mkdir reverseProxy -``` - -Change into the new directory: - -```bash -cd reverseProxy -``` - -### 2. Install Caddy - -Install Caddy in the project directory using Homebrew: - -```bash -brew install caddy -``` - -### 3. Create a Node.js stub - -You may be running your own Ethereum node, but for the sake of this tutorial, you can substitute a node with a Node.js stub. Create a file named `main.js` in the project directory with the following content: - -```javascript -const https = require('https') -const fs = require('fs') -const options = { - key: fs.readFileSync('.pem'), - cert: fs.readFileSync('.pem'), -} - -const hostname = '127.0.0.1' -const port = 9000 - -const server = https.createServer(options, function (req, res) { - res.statusCode = 200 - res.setHeader('Content-Type', 'text/plain') - setTimeout(() => { - res.end('Reverse proxy success!\n') - }, 1000) -}) - -server.listen(port, hostname, () => { - console.log(`Server running at https://${hostname}:${port}/`) -}) -``` - -This sets up a backend HTTPS service running on `127.0.0.1:9000` (`localhost:9000`) and displays a success message if the proxy works. - -:::warning - -When creating a reverse proxy with multiple upstreams, Caddy requires _all_ upstream endpoints to be HTTP or HTTPS. In this tutorial, because the backup Infura endpoint is HTTPS, you must create a TLS certificate for your localhost (if you're not already using your own private HTTPS node). - -::: - -You can [install and use mkcert](https://web.dev/how-to-use-local-https/#setup) to generate a certificate key file and certificate file for your stub: - -```bash -brew install mkcert -mkcert -install -mkcert localhost -``` - -Replace `` and `` in `main.js` with the generated files. - -### 4. Run the Node.js stub - -In a new terminal window, from your project directory, start the Node.js stub and leave that connection open: - -```bash -node main.js -``` - -### 5. Create the reverse proxy - -To create the reverse proxy, create a text file named `Caddyfile` with the following content: - -``` -localhost:3000 - -reverse_proxy https://localhost:9000 https://sepolia.infura.io { - header_up Host {/v3/} -} -``` - -Ensure you replace `` with the API key for your Ethereum project. - -In this example, the reverse proxy retrieves information from `localhost:9000`, and redirects it to `localhost:3000`. -If `localhost:9000` stops responding, Caddy will move on to retrieve information from the Sepolia endpoint. -Using `header_up Host` allows you to include your API key to both the Sepolia and localhost endpoints. - -### 6. Run the reverse proxy - -In a new terminal window, from your project directory, run the reverse proxy using Caddy: - -```bash -caddy run -``` - -### 7. Make a request - -In a new terminal window, make a curl request to `localhost`. The following example executes a `web3_clientVersion` request: - - - - -```bash -curl http://localhost:3000/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -``` -Reverse proxy success! -``` - - - - -The success message from `main.js` should display, because you've asked the reverse proxy to go to `localhost:9000` first. - -If you close the Node.js server and send the request again, you should get the result from the Sepolia node: - - - - -```bash -curl http://localhost:3000/v3/ \ - -X POST \ - -H "Content-Type: application/json" \ - -d '{"jsonrpc": "2.0", "method": "web3_clientVersion", "params": [], "id": 1}' -``` - - - - -```javascript -{"jsonrpc": "2.0", "id":1, "result": "Geth/v1.10.8-omnibus-aef5bfb3/linux-amd64/go1.16.7"} -``` - - - - -The reverse proxy ignores the localhost node, since it's not functioning, and falls back to the Sepolia node. diff --git a/services/tutorials/layer-2-networks/_category_.json b/services/tutorials/layer-2-networks/_category_.json deleted file mode 100644 index 0e61d893060..00000000000 --- a/services/tutorials/layer-2-networks/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Layer 2 networks", - "position": 2 -} diff --git a/services/tutorials/layer-2-networks/send-a-transaction.md b/services/tutorials/layer-2-networks/send-a-transaction.md deleted file mode 100644 index a02e55f572b..00000000000 --- a/services/tutorials/layer-2-networks/send-a-transaction.md +++ /dev/null @@ -1,143 +0,0 @@ ---- -description: Send a transaction of the Polygon network. ---- - -# Send a transaction with Polygon - -As with Ethereum, [transactions](https://ethereum.org/en/developers/docs/transactions/) are state-changing actions on the Polygon PoS blockchain. Examples of transactions are: - -- Regular transactions from one account to another. -- Contract deployment transactions, or calling a function in a smart contract. - -This tutorial uses the Ethereum Web3 JavaScript library to send a transaction between two accounts on the Polygon Amoy testnet. - -## Prerequisites - -- An Infura [API key](/developer-tools/dashboard/get-started/create-api) -- [Node.js installed](https://nodejs.org/en/download/) -- [MetaMask installed](https://metamask.io) and an account for testing purposes - -:::info - -You can use [MetaMask](https://metamask.io) or a similar Ethereum wallet to create an account for testing purposes on the Polygon blockchain. - -::: - -## Steps - -### 1. Add Polygon network to MetaMask - -Refer to the Polygon instructions to [add the Polygon networks to MetaMask](https://polygon.technology/blog/getting-started-with-metamask-on-polygon). This tutorial uses the Polygon Amoy network. - -### 2. Fund your account - -[Use the Polygon faucet](https://faucet.polygon.technology) to load testnet MATIC on your account for the Amoy network. - -### 3. Create a project directory - -Create a new directory for your project. This can be done from the command line: - -```bash -mkdir sendTransaction -``` - -Change into the new directory: - -```bash -cd sendTransaction -``` - -### 4. Install required packages - -Install the `web3` and `dotenv` packages in the project directory. - -:::info - -The `dotenv` package allows you to use a `.env` file to securely store private environment variables on your local machine. - -::: - -Install the `web3` package: - -``` -npm install web3 -``` - -Install the `dotenv` package: - -``` -npm install dotenv --save -``` - -### 5. Create the `.env` file - -Create a `.env` file in your project directory to store the project and account details. - -``` -POLYGON_NETWORK = "polygon-amoy" -INFURA_API_KEY = "" -SIGNER_PRIVATE_KEY = "" -``` - -Ensure you replace the following values in the `.env` file: - -- `` with the API key from your [Infura dashboard](https://app.infura.io/). -- `` with the [private key of your account](https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-Export-an-Account-Private-Key). - -:::danger - -Never disclose your private key. Anyone with your private keys can steal any assets held in your account. - -::: - -### 6. Create `send.js` file - -In this example we'll create a JavaScript file (`send.js`) in the project directory which configures and sends the transaction. - -```javascript title="send.js" -const { Web3 } = require('web3') - -async function main() { - // Configuring the connection to the Polygon node - const network = process.env.POLYGON_NETWORK - const web3 = new Web3( - new Web3.providers.HttpProvider(`https://${network}.infura.io/v3/${process.env.INFURA_API_KEY}`) - ) - // Creating a signing account from a private key - const signer = web3.eth.accounts.privateKeyToAccount(process.env.SIGNER_PRIVATE_KEY) - web3.eth.accounts.wallet.add(signer) - // Creating the transaction object - const tx = { - from: signer.address, - to: '0xAED01C776d98303eE080D25A21f0a42D94a86D9c', - value: web3.utils.toWei('0.001', 'ether'), - } - // Assigning the right amount of gas - tx.gas = await web3.eth.estimateGas(tx) - - // Sending the transaction to the network - const receipt = await web3.eth.sendTransaction(tx).once('transactionHash', txhash => { - console.log(`Mining transaction ...`) - console.log(`Transaction hash: ${txhash}`) - }) - // The transaction is now on chain! - console.log(`Mined in block ${receipt.blockNumber}`) -} - -require('dotenv').config() -main() -``` - -### 7. Execute the transaction - -To execute the transaction, run: - -```bash -node send.js -``` - -The command line will display the block number containing the transaction details. - -### 8. View the transaction details - -Copy transaction hash and view the transaction in the [Polygon Amoy block explorer](https://amoy.polygonscan.com/). diff --git a/smart-accounts-kit/guides/configure-toolkit.md b/smart-accounts-kit/guides/configure-toolkit.md index f7e0b6dbc5a..0a5302bf176 100644 --- a/smart-accounts-kit/guides/configure-toolkit.md +++ b/smart-accounts-kit/guides/configure-toolkit.md @@ -48,7 +48,7 @@ const bundlerClient = createBundlerClient({ ``` Replace the bundler and paymaster URLs with your bundler and paymaster endpoints. -For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](/services), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). +For example, you can use endpoints from [Pimlico](https://docs.pimlico.io/references/bundler), [Infura](https://docs.infura.io/), or [ZeroDev](https://docs.zerodev.app/meta-infra/intro). :::note Providing a paymaster is optional when configuring your bundler client. However, if you choose not to use a paymaster, the smart account must have enough funds to pay gas fees. diff --git a/snaps/reference/keyring-api/chain-methods.md b/snaps/reference/keyring-api/chain-methods.md index 6cd96f7ac34..f3fe9af19a1 100644 --- a/snaps/reference/keyring-api/chain-methods.md +++ b/snaps/reference/keyring-api/chain-methods.md @@ -66,7 +66,7 @@ Signs a transaction that can be submitted to the network later using An array containing: 1. Transaction object to sign, which contains: - - `type`: `string` - [Transaction type.](/services/concepts/transaction-types/) + - `type`: `string` - [Transaction type.](https://docs.infura.io/concepts/transaction-types/) - `nonce`: `string` - Anti-replay parameter. - `to`: `string` - Recipient address, or `null` if this is a contract creation transaction. - `from`: `string` - Sender address. diff --git a/src/components/CreditCost/CreditCostPrice.js b/src/components/CreditCost/CreditCostPrice.js deleted file mode 100644 index 767c03b68bb..00000000000 --- a/src/components/CreditCost/CreditCostPrice.js +++ /dev/null @@ -1,20 +0,0 @@ -// src/components/CreditCost.js - -import React from 'react' -import { API_COSTS } from '@site/src/lib/data' -import Link from '@docusaurus/Link' - -const CreditCost = ({ network, method }) => { - // Get the credit cost for the given network and method, defaulting to 80 if not found - const cost = - API_COSTS[network] && API_COSTS[network][method] !== undefined ? API_COSTS[network][method] : 80 // Default to 80 if no cost is found - - return ( - - This method uses {cost} credits from your - daily balance. - - ) -} - -export default CreditCost diff --git a/src/components/CreditCost/CreditCostTable.js b/src/components/CreditCost/CreditCostTable.js deleted file mode 100644 index 7c6651b6d90..00000000000 --- a/src/components/CreditCost/CreditCostTable.js +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react' -import { API_COSTS } from '@site/src/lib/data' - -// Function to render the tables -const renderTable = (methods, categoryName, header) => { - if (!methods || Object.keys(methods).length === 0) return null - - return ( -
- - - - {/* Use dynamic header */} - - - - - {Object.keys(methods).map(method => ( - - - - - ))} - -
{header}Credit cost
- {method} - {methods[method]} credits
-
- ) -} - -const CreditCostTable = ({ methods }) => { - // Map methods prop to the corresponding category in API_COSTS - const methodCategory = API_COSTS[methods] - - if (!methodCategory) { - return

No data available for the specified method category.

- } - - // Set header dynamically based on the category - let header = 'RPC method' - if (methods === 'gasApi') { - header = 'API endpoint' // Change header for 'gasApi' - } else if (methods === 'evm_subscription') { - header = 'Subscription events' // Change header for 'evm_subscription' - } - - return renderTable(methodCategory, methods, header) -} - -export default CreditCostTable diff --git a/src/components/NavDropdown/Products.html b/src/components/NavDropdown/Products.html index b00b9e1bdc2..6185d1e9079 100644 --- a/src/components/NavDropdown/Products.html +++ b/src/components/NavDropdown/Products.html @@ -13,8 +13,8 @@ document.getElementById("smart-accounts-kit-menu").classList.remove("selected-menu"); document.getElementById("embedded-wallets-button").classList.remove("selected"); document.getElementById("embedded-wallets").classList.remove("selected-menu"); - document.getElementById("services-menu-button").classList.remove("selected"); - document.getElementById("services-menu").classList.remove("selected-menu"); + document.getElementById("infura-menu-button").classList.remove("selected"); + document.getElementById("infura-menu").classList.remove("selected-menu"); document.getElementById("agent-wallet-menu-button").classList.remove("selected"); document.getElementById("agent-wallet-menu").classList.remove("selected-menu");' onmouseover=' @@ -24,8 +24,8 @@ document.getElementById("smart-accounts-kit-menu").classList.remove("selected-menu"); document.getElementById("embedded-wallets-button").classList.remove("selected"); document.getElementById("embedded-wallets").classList.remove("selected-menu"); - document.getElementById("services-menu-button").classList.remove("selected"); - document.getElementById("services-menu").classList.remove("selected-menu"); + document.getElementById("infura-menu-button").classList.remove("selected"); + document.getElementById("infura-menu").classList.remove("selected-menu"); document.getElementById("agent-wallet-menu-button").classList.remove("selected"); document.getElementById("agent-wallet-menu").classList.remove("selected-menu");'>
@@ -44,8 +44,8 @@

Connect to MetaMask

document.getElementById("smart-accounts-kit-menu").classList.remove("selected-menu"); document.getElementById("metamask-sdk-menu-button").classList.remove("selected"); document.getElementById("metamask-sdk-menu").classList.remove("selected-menu"); - document.getElementById("services-menu-button").classList.remove("selected"); - document.getElementById("services-menu").classList.remove("selected-menu"); + document.getElementById("infura-menu-button").classList.remove("selected"); + document.getElementById("infura-menu").classList.remove("selected-menu"); document.getElementById("agent-wallet-menu-button").classList.remove("selected"); document.getElementById("agent-wallet-menu").classList.remove("selected-menu");' onmouseover=' @@ -55,8 +55,8 @@

Connect to MetaMask

document.getElementById("smart-accounts-kit-menu").classList.remove("selected-menu"); document.getElementById("metamask-sdk-menu-button").classList.remove("selected"); document.getElementById("metamask-sdk-menu").classList.remove("selected-menu"); - document.getElementById("services-menu-button").classList.remove("selected"); - document.getElementById("services-menu").classList.remove("selected-menu"); + document.getElementById("infura-menu-button").classList.remove("selected"); + document.getElementById("infura-menu").classList.remove("selected-menu"); document.getElementById("agent-wallet-menu-button").classList.remove("selected"); document.getElementById("agent-wallet-menu").classList.remove("selected-menu");'>
@@ -75,8 +75,8 @@

Create embedded wallets

document.getElementById("smart-accounts-kit-menu").classList.add("selected-menu"); document.getElementById("embedded-wallets-button").classList.remove("selected"); document.getElementById("embedded-wallets").classList.remove("selected-menu"); - document.getElementById("services-menu-button").classList.remove("selected"); - document.getElementById("services-menu").classList.remove("selected-menu"); + document.getElementById("infura-menu-button").classList.remove("selected"); + document.getElementById("infura-menu").classList.remove("selected-menu"); document.getElementById("agent-wallet-menu-button").classList.remove("selected"); document.getElementById("agent-wallet-menu").classList.remove("selected-menu");' onmouseover=' @@ -86,8 +86,8 @@

Create embedded wallets

document.getElementById("smart-accounts-kit-menu").classList.add("selected-menu"); document.getElementById("embedded-wallets-button").classList.remove("selected"); document.getElementById("embedded-wallets").classList.remove("selected-menu"); - document.getElementById("services-menu-button").classList.remove("selected"); - document.getElementById("services-menu").classList.remove("selected-menu"); + document.getElementById("infura-menu-button").classList.remove("selected"); + document.getElementById("infura-menu").classList.remove("selected-menu"); document.getElementById("agent-wallet-menu-button").classList.remove("selected"); document.getElementById("agent-wallet-menu").classList.remove("selected-menu");'>
@@ -108,8 +108,8 @@

Create smart accounts

document.getElementById("embedded-wallets").classList.remove("selected-menu"); document.getElementById("smart-accounts-kit-menu-button").classList.remove("selected"); document.getElementById("smart-accounts-kit-menu").classList.remove("selected-menu"); - document.getElementById("services-menu-button").classList.remove("selected"); - document.getElementById("services-menu").classList.remove("selected-menu");' + document.getElementById("infura-menu-button").classList.remove("selected"); + document.getElementById("infura-menu").classList.remove("selected-menu");' onmouseover=' document.getElementById("agent-wallet-menu-button").classList.add("selected"); document.getElementById("agent-wallet-menu").classList.add("selected-menu"); @@ -119,8 +119,8 @@

Create smart accounts

document.getElementById("embedded-wallets").classList.remove("selected-menu"); document.getElementById("smart-accounts-kit-menu-button").classList.remove("selected"); document.getElementById("smart-accounts-kit-menu").classList.remove("selected-menu"); - document.getElementById("services-menu-button").classList.remove("selected"); - document.getElementById("services-menu").classList.remove("selected-menu");'> + document.getElementById("infura-menu-button").classList.remove("selected"); + document.getElementById("infura-menu").classList.remove("selected-menu");'>

Create agent wallets

@@ -128,11 +128,11 @@

Create agent wallets

  • { - const patterns = Array.isArray(section.pathPattern) - ? section.pathPattern - : [section.pathPattern] - return patterns.some(pattern => pathname.startsWith(pattern)) - }) -} diff --git a/src/components/SubNavBar/README.md b/src/components/SubNavBar/README.md index b1e0292a517..3224bdcb19b 100644 --- a/src/components/SubNavBar/README.md +++ b/src/components/SubNavBar/README.md @@ -90,12 +90,8 @@ That's it! The SubNavBar will automatically appear on pages matching your path p ## Current Configured Sections -- **Embedded Wallets** (`/embedded-wallets`) - Shows platform-specific navigation (JS, React, Android, iOS, etc.) -- **SDK** (`/sdk`) - Shows SDK documentation sections -- **Wallet API** (`/wallet`) - Shows Wallet API sections -- **Snaps** (`/snaps`) - Shows Snaps development sections -- **Services** (`/services`) - Shows Infura services sections -- **Smart Accounts Kit** (`/smart-accounts-kit`) - Shows MetaMask Smart Accounts Kit sections +- **Embedded Wallets** (`/embedded-wallets`) - Shows platform-specific navigation (Dashboard, SDKs, Authentication, EVM, Solana, and other blockchains) +- **MetaMask Connect** (`/metamask-connect`) - Shows Multichain, EVM, and Solana documentation sections ## Styling diff --git a/src/config/mobileProductsMenu.ts b/src/config/mobileProductsMenu.ts index f6dd59fa5bc..7b7e4fb579d 100644 --- a/src/config/mobileProductsMenu.ts +++ b/src/config/mobileProductsMenu.ts @@ -32,11 +32,7 @@ export const mobileProductsMenu: MobileProductItem[] = [ href: '/snaps', }, { - label: 'Services', - href: '/services', - }, - { - label: 'Developer dashboard', - href: '/developer-tools/dashboard', + label: 'Infura', + href: 'https://docs.infura.io/', }, ] diff --git a/src/lib/constants.ts b/src/lib/constants.ts index b9b2a957019..319c69cd934 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -445,11 +445,10 @@ export const GET_OPTIONS = { headers: NO_CACHE, } -export const REF_SERVICES_PATH = '/services/reference/' export const REF_WALLET_PATH = '/wallet/reference/' export const REF_FAUCET_PATH = '/developer-tools/faucet' -export const REF_ALLOW_LOGIN_PATH = [REF_SERVICES_PATH, REF_WALLET_PATH, REF_FAUCET_PATH] +export const REF_ALLOW_LOGIN_PATH = [REF_WALLET_PATH, REF_FAUCET_PATH] export const REQUEST_PARAMS = (method = 'POST', headers = {}) => ({ method, diff --git a/src/lib/data.js b/src/lib/data.js index a4742fed3c3..5025ca0a8d8 100644 --- a/src/lib/data.js +++ b/src/lib/data.js @@ -3,350 +3,122 @@ const LOGO_PATH = '/img/logos' export const NETWORK_LINKS = [ { name: 'Arbitrum', - href: '/services/reference/arbitrum', + href: 'https://docs.infura.io/reference/arbitrum', logo: `${LOGO_PATH}/logo-arbitrum.svg`, }, { name: 'Avalanche', - href: '/services/reference/avalanche-c-chain', + href: 'https://docs.infura.io/reference/avalanche-c-chain', logo: `${LOGO_PATH}/logo-avalanche.svg`, }, { name: 'Base', - href: '/services/reference/base', + href: 'https://docs.infura.io/reference/base', logo: `${LOGO_PATH}/logo-base.svg`, }, { name: 'Blast', - href: '/services/reference/blast', + href: 'https://docs.infura.io/reference/blast', logo: `${LOGO_PATH}/logo-blast.svg`, }, { name: 'BNB Smart Chain', - href: '/services/reference/bnb-smart-chain', + href: 'https://docs.infura.io/reference/bnb-smart-chain', logo: `${LOGO_PATH}/logo-bnb.svg`, }, { name: 'Celo', - href: '/services/reference/celo', + href: 'https://docs.infura.io/reference/celo', logo: `${LOGO_PATH}/logo-celo.svg`, }, { name: 'Ethereum', - href: '/services/reference/ethereum', + href: 'https://docs.infura.io/reference/ethereum', logo: `${LOGO_PATH}/logo-eth.svg`, }, { name: 'Hemi', - href: '/services/reference/hemi', + href: 'https://docs.infura.io/reference/hemi', logo: `${LOGO_PATH}/logo-hemi.svg`, }, { name: 'HyperEVM', - href: '/services/reference/hyperevm', + href: 'https://docs.infura.io/reference/hyperevm', logo: `${LOGO_PATH}/logo-hyperevm.svg`, }, { name: 'IPFS', - href: '/services/reference/ipfs', + href: 'https://docs.infura.io/reference/ipfs', logo: `${LOGO_PATH}/logo-ipfs.svg`, }, { name: 'Linea', - href: '/services/reference/linea', + href: 'https://docs.infura.io/reference/linea', logo: `${LOGO_PATH}/logo-linea.svg`, }, { name: 'Mantle', - href: '/services/reference/mantle', + href: 'https://docs.infura.io/reference/mantle', logo: `${LOGO_PATH}/logo-mantle.svg`, }, { name: 'MegaETH', - href: '/services/reference/megaeth', + href: 'https://docs.infura.io/reference/megaeth', logo: `${LOGO_PATH}/logo_megaeth.svg`, }, { name: 'Monad', - href: '/services/reference/monad', + href: 'https://docs.infura.io/reference/monad', logo: `${LOGO_PATH}/logo-monad.svg`, }, { name: 'opBNB', - href: '/services/reference/opbnb', + href: 'https://docs.infura.io/reference/opbnb', logo: `${LOGO_PATH}/logo-bnb.svg`, }, { name: 'Optimism', - href: '/services/reference/optimism', + href: 'https://docs.infura.io/reference/optimism', logo: `${LOGO_PATH}/logo-opt.svg`, }, { name: 'Palm', - href: '/services/reference/palm', + href: 'https://docs.infura.io/reference/palm', logo: `${LOGO_PATH}/logo-palm.svg`, }, { name: 'Polygon', - href: '/services/reference/polygon-pos', + href: 'https://docs.infura.io/reference/polygon-pos', logo: `${LOGO_PATH}/logo-polygon.svg`, }, { name: 'Scroll', - href: '/services/reference/scroll', + href: 'https://docs.infura.io/reference/scroll', logo: `${LOGO_PATH}/logo-scroll.svg`, }, { name: 'Sei', - href: '/services/reference/sei', + href: 'https://docs.infura.io/reference/sei', logo: `${LOGO_PATH}/logo-sei.svg`, }, { name: 'Solana', - href: '/services/reference/solana', + href: 'https://docs.infura.io/reference/solana', logo: `${LOGO_PATH}/logo-solana.svg`, }, { name: 'Starknet', - href: '/services/reference/starknet', + href: 'https://docs.infura.io/reference/starknet', logo: `${LOGO_PATH}/logo-starknet.svg`, }, { name: 'Unichain', - href: '/services/reference/unichain', + href: 'https://docs.infura.io/reference/unichain', logo: `${LOGO_PATH}/logo-unichain.svg`, }, { name: 'ZKsync Era', - href: '/services/reference/zksync', + href: 'https://docs.infura.io/reference/zksync', logo: `${LOGO_PATH}/logo-zksync.svg`, }, ] - -export const API_COSTS = { - evm: { - eth_accounts: 80, - eth_blobBaseFee: 300, - eth_blockNumber: 80, - eth_call: 80, - eth_chainId: 5, - eth_createAccessList: 80, - eth_estimateGas: 300, - eth_feeHistory: 80, - eth_gasPrice: 80, - eth_getBalance: 80, - eth_getBlockByHash: 80, - eth_getBlockByNumber: 80, - eth_getBlockReceipts: 1000, - eth_getBlockTransactionCountByHash: 150, - eth_getBlockTransactionCountByNumber: 150, - eth_getCode: 80, - eth_getLogs: 255, - eth_getProof: 150, - eth_getStorageAt: 80, - eth_getTransactionByBlockHashAndIndex: 150, - eth_getTransactionByBlockNumberAndIndex: 150, - eth_getTransactionByHash: 80, - eth_getTransactionCount: 80, - eth_getTransactionReceipt: 80, - eth_getUncleByBlockHashAndIndex: 150, - eth_getUncleByBlockNumberAndIndex: 150, - eth_getUncleCountByBlockHash: 150, - eth_getUncleCountByBlockNumber: 150, - eth_getWork: 80, - eth_hashrate: 5, - eth_maxPriorityFeePerGas: 80, - eth_mining: 5, - eth_protocolVersion: 5, - eth_sendRawTransaction: 80, - eth_sign: 80, - eth_simulateV1: 300, - eth_submitWork: 80, - eth_subscribe: 5, - eth_syncing: 5, - eth_unsubscribe: 10, - net_listening: 5, - net_peerCount: 80, - net_version: 5, - web3_clientVersion: 80, - }, - evm_trace: { - trace_block: 300, - trace_call: 300, - trace_callMany: 300, - trace_filter: 300, - trace_transaction: 300, - }, - evm_debug: { - //debug_getBadBlocks: 1000, - debug_storageRangeAt: 1000, - debug_traceBlock: 1000, - debug_traceBlockByHash: 1000, - debug_traceBlockByNumber: 1000, - debug_traceCall: 1000, - debug_traceTransaction: 1000, - }, - evm_subscription: { - logs: 300, - newHeads: 50, - newPendingTransaction: 200, - }, - evm_filter: { - eth_getFilterChanges: 140, - eth_getFilterLogs: 255, - eth_newBlockFilter: 80, - eth_newFilter: 80, - eth_uninstallFilter: 80, - }, - hyperevm: { - eth_bigBlockGasPrice: 80, - eth_usingBigBlocks: 80, - eth_getSystemTxsByBlockNumber: 80, - eth_getSystemTxsByBlockHash: 80, - }, - megaeth: { - eth_callMany: 80, - eth_getAccount: 80, - eth_getRawTransactionByHash: 80, - }, - linea: { - linea_estimateGas: 100, - linea_getTransactionExclusionStatusV1: 160, - }, - polygon: { - bor_getAuthor: 80, - bor_getCurrentProposer: 80, - bor_getCurrentValidators: 80, - bor_getRootHash: 80, - bor_getSignersAtHash: 80, - }, - solana: { - // Digital Asset Standard (DAS) API - getAsset: 160, - getAssetProof: 160, - getAssetProofBatch: 160, - getAssets: 160, - getAssetsByAuthority: 160, - getAssetsByCreator: 160, - getAssetsByGroup: 160, - getAssetsByOwner: 160, - getAssetSignatures: 160, - getNftEditions: 160, - getTokenAccounts: 160, - searchAssets: 160, - // Core Solana methods - getAccountInfo: 160, - getBalance: 160, - getBlock: 160, - getBlockCommitment: 160, - getBlockHeight: 160, - getBlockProduction: 160, - getBlocks: 160, - getBlocksWithLimit: 160, - getClusterNodes: 160, - getEpochInfo: 160, - getEpochSchedule: 160, - getFeeForMessage: 160, - getFirstAvailableBlock: 160, - getGenesisHash: 160, - getHealth: 160, - getHighestSnapshotSlot: 160, - getIdentity: 160, - getInflationGovernor: 160, - getInflationRate: 160, - getInflationReward: 160, - getLargestAccounts: 160, - getLatestBlockhash: 160, - getLeaderSchedule: 160, - getMaxRetransmitSlot: 160, - getMaxShredInsertSlot: 160, - getMinimumBalanceForRentExemption: 160, - getMultipleAccounts: 160, - getProgramAccounts: 160, - getRecentPerformanceSamples: 160, - getRecentPrioritizationFees: 160, - getSignaturesForAddress: 160, - getSignatureStatuses: 160, - getSlot: 160, - getSlotLeader: 160, - getSlotLeaders: 160, - getStakeMinimumDelegation: 160, - getSupply: 160, - getTokenAccountBalance: 160, - getTokenAccountsByDelegate: 160, - getTokenAccountsByOwner: 160, - getTokenLargestAccounts: 160, - getTokenSupply: 160, - getTransaction: 160, - getTransactionCount: 160, - getVersion: 160, - getVoteAccounts: 160, - isBlockhashValid: 160, - minimumLedgerSlot: 160, - requestAirdrop: 160, - sendTransaction: 160, - simulateTransaction: 160, - }, - starknet: { - starknet_addDeclareTransaction: 700, - starknet_addDeployAccountTransaction: 700, - starknet_addInvokeTransaction: 700, - starknet_blockHashAndNumber: 80, - starknet_blockNumber: 80, - starknet_call: 80, - starknet_chainId: 5, - starknet_estimateFee: 240, - starknet_getBlockTransactionCount: 80, - starknet_getBlockWithTxHashes: 80, - starknet_getBlockWithTxs: 80, - starknet_getClass: 80, - starknet_getClassAt: 80, - starknet_getClassHashAt: 80, - starknet_getEvents: 200, - starknet_getNonce: 80, - starknet_getStateUpdate: 80, - starknet_getStorageAt: 80, - starknet_getTransactionByBlockIdAndIndex: 80, - starknet_getTransactionByHash: 80, - starknet_getTransactionReceipt: 80, - starknet_pendingTransactions: 160, - starknet_simulateTransactions: 160, - starknet_specVersion: 5, - starknet_syncing: 5, - }, - zksync: { - zks_estimateFee: 80, - zks_estimateGasL1ToL2: 80, - zks_getAllAccountBalances: 80, - zks_getBlockDetails: 80, - zks_getBridgeContracts: 80, - zks_getBytecodeByHash: 80, - zks_getL1BatchBlockRange: 80, - zks_getL1BatchDetails: 80, - zks_getL2ToL1LogProof: 80, - zks_getL2ToL1MsgProof: 80, - zks_getMainContract: 80, - zks_getProof: 80, - zks_getRawBlockTransactions: 80, - zks_getTestnetPaymaster: 80, - zks_getTransactionDetails: 80, - zks_L1BatchNumber: 80, - zks_L1ChainId: 80, - }, - gasApi: { - baseFeeHistory: 80, - baseFeePercentile: 80, - busyThreshold: 80, - suggestedGasFees: 80, - }, - bundler: { - eth_estimateUserOperationGas: 1980, - eth_getUserOperationByHash: 100, - eth_getUserOperationReceipt: 100, - eth_sendUserOperation: 4950, - eth_supportedEntryPoints: 10, - pimlico_getUserOperationGasPrice: 100, - pimlico_getUserOperationStatus: 50, - pimlico_simulateAssetChanges: 4950, - }, -} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index a8cc8193a08..93b6b73c56f 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -100,18 +100,6 @@ export default function Home(): JSX.Element { href: '/agent-wallet', buttonIcon: 'arrow-right', }, - { - title: 'Build and scale your dapp', - leadIcon: 'globe', - description: ( - <> - Use high performance APIs provided by MetaMask and{' '} - Infura to build and scale your dapp or Snap. - - ), - href: '/services', - buttonIcon: 'arrow-right', - }, { title: 'Extend MetaMask', leadIcon: 'controls', diff --git a/src/pages/tutorials/android-wallet.mdx b/src/pages/tutorials/android-wallet.mdx index 22265c745f5..288c978c6d1 100644 --- a/src/pages/tutorials/android-wallet.mdx +++ b/src/pages/tutorials/android-wallet.mdx @@ -24,11 +24,13 @@ For those who want to skip straight to the code, find it on [GitHub](https://git This is what your application will look like: + Android Wallet Screenshots + ## Step 1: Set up the Embedded Wallets dashboard @@ -241,8 +243,8 @@ class MainViewModel(private val web3AuthHelper: Web3AuthHelper) : ViewModel() { ### 2.4 Authentication If the user is not authenticated, we can utilize the `login` method to authenticate the user. For the -wallet, we will add an Email Passwordless login. We'll create a helper function, `login` inside -`MainViewModel`. The login method is pretty straightforward in Embedded Wallets and takes `LoginParams` as input. +wallet, we will add an Email Passwordless sign-in. We'll create a helper function, `login` inside +`MainViewModel`. The sign-in flow is straightforward in Embedded Wallets and takes `LoginParams` as input. After successfully logging in, we'll generate and prepare the `Credentials`, required to interact with the blockchain. Along with that, we'll retrieve user info, and navigate them to `HomeScreen`. @@ -326,7 +328,7 @@ interface EthereumUseCase { } ``` -Generally, for any blockchain provider, you'll only require the `getBalance`, `sendTransaction`, and +For most blockchain providers, you'll only require the `getBalance`, `sendTransaction`, and `signMessage`. The `getBalance` and `approve` can be used to interact with smart contracts. To interact with smart contracts, we'll be required to generate smart contract function wrappers in Java from Solidity ABI files. @@ -409,7 +411,7 @@ any changes in the smart contract. Next, we'll create `EthereumUseCaseImpl` and implement the methods. To create the `Web3j` instance, you'll require the RPC target URL. If you are using public RPCs, you can face -some network congestion. It's ideal to use [paid RPCs](/services) for production. +some network congestion. It's ideal to use [paid RPCs](https://docs.infura.io/) for production. The `getBalance`, and `approve` methods are used to interact with smart contracts in the Ethereum ecosystem. The `getBalance` is used to read the balance from the ERC-20 smart contracts, whereas the `approve` is used to diff --git a/src/pages/tutorials/create-custom-caveat-enforcer.md b/src/pages/tutorials/create-custom-caveat-enforcer.md index bd46c9dbdfc..e5549018c38 100644 --- a/src/pages/tutorials/create-custom-caveat-enforcer.md +++ b/src/pages/tutorials/create-custom-caveat-enforcer.md @@ -24,7 +24,7 @@ In this tutorial, you'll create and apply a caveat enforcer that only allows a d - Install [Yarn](https://yarnpkg.com/), [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), or another package manager. - [Install Foundry and Forge](https://getfoundry.sh/introduction/installation). -- Get an [Infura API key](/developer-tools/dashboard/get-started/create-api) from the MetaMask Developer dashboard. +- Get an [Infura API key](https://docs.infura.io/dashboard/get-started/create-api) from the [Infura dashboard](https://app.infura.io). - Have a MetaMask account with some Sepolia ETH to deploy your contract. :::note You can use the [MetaMask faucet](/developer-tools/faucet) to get Sepolia ETH. diff --git a/src/pages/tutorials/flutter-wallet.mdx b/src/pages/tutorials/flutter-wallet.mdx index 6a5cbd0a21d..7744d393045 100644 --- a/src/pages/tutorials/flutter-wallet.mdx +++ b/src/pages/tutorials/flutter-wallet.mdx @@ -14,7 +14,7 @@ import WalletPreview from '@site/static/img/tutorials/flutter-wallet-preview.png In this guide, we'll use the MetaMask Embedded Wallets SDK (formerly Web3Auth) to build your chain-agnostic web3 wallet in Flutter. The wallet will support the Ethereum and Solana ecosystems. -You'll create a demo app which supports user login, displays user details, and performs blockchain interactions. Blockchain transaction signing is done through the Embedded Wallets SDK. +You'll create a demo app which supports user sign-in, displays user details, and performs blockchain interactions. Blockchain transaction signing is done through the Embedded Wallets SDK. :::tip @@ -24,11 +24,13 @@ See the [Embedded Wallets management infrastructure](/embedded-wallets/infrastru This is what your application will look like: + Flutter Wallet Screenshots + ## Step 1: Set up the Embedded Wallets dashboard @@ -166,8 +168,8 @@ class _MainAppState extends State { ### 2.4 Authentication -If the user isn't authenticated, call the `login` method. Provide two sign-in options for the wallet: Google and passwordless email login. Embedded Wallets supports two authentication flows: single page authentication, and regular web application. In this guide, you use the single-page authentication flow. -We'll create a helper function, `_login` inside `LoginScreen`. The login method `LoginParams` as input. After a successful sign-in, navigate the user to `HomeScreen`. +If the user isn't authenticated, call the `login` method. Provide two sign-in options for the wallet: Google and passwordless email sign-in. Embedded Wallets supports two authentication flows: single page authentication, and regular web application. In this guide, you use the single-page authentication flow. +We'll create a helper function, `_login` inside `LoginScreen`. The sign-in flow uses `LoginParams` as input. After a successful sign-in, navigate the user to `HomeScreen`. :::tip @@ -304,7 +306,7 @@ With our base class in place, we'll create `EthereumProvider` and implement the :::note -If you are using public RPCs, you could face some network congestion. Ideally, use [paid RPCs](/services) for production. +If you are using public RPCs, you could face some network congestion. Ideally, use [paid RPCs](https://docs.infura.io/) for production. ::: @@ -880,7 +882,7 @@ class _HomeScreenState extends State { } ``` -5.3.3 In `HomeScreen` we'll also give users an option to logout from the wallet in navigation drawer. To do so, we'll utilize the `Web3AuthFlutter.logout`. Upon success, we'll navigate users back to `LoginScreen`. Checkout `SideDrawer` widget for navigation drawer implementation. +5.3.3 In `HomeScreen` we'll also give users an option to sign out from the wallet in navigation drawer. To do so, we'll utilize the `Web3AuthFlutter.logout`. Upon success, we'll navigate users back to `LoginScreen`. Checkout `SideDrawer` widget for navigation drawer implementation. ### 5.4 Chain interactions diff --git a/src/pages/tutorials/integrate-solana-pay.mdx b/src/pages/tutorials/integrate-solana-pay.mdx index 9721486d6eb..71662263a19 100644 --- a/src/pages/tutorials/integrate-solana-pay.mdx +++ b/src/pages/tutorials/integrate-solana-pay.mdx @@ -13,17 +13,17 @@ toc_max_heading_level: 4 import TabItem from '@theme/TabItem' import Tabs from '@theme/Tabs' -MetaMask Embedded Wallets enable users to log in with familiar web2 socials by using [Shamir's +MetaMask Embedded Wallets enable users to sign in with familiar web2 socials by using [Shamir's Secret Sharing](../../embedded-wallets/infrastructure/sss-architecture/) Multi-Party Computation (MPC) to ensure the wallet key is distributed and non-custodial. This tutorial demonstrates how to integrate Solana Pay with [MetaMask Embedded Wallets](/embedded-wallets) to create a -seamless payment experience for your users. By combining Embedded Wallets' familiar web2 social logins with Solana Pay's -QR code functionality, you can enable users to make payments directly from their social login wallets. +seamless payment experience for your users. By combining Embedded Wallets' familiar web2 social sign-in with Solana Pay's +QR code functionality, you can enable users to make payments directly from their social sign-in wallets. -MetaMask Embedded Wallets social login allows users to: +MetaMask Embedded Wallets social sign-in allows users to: -- Log in using familiar web2 social providers (such as Google and Apple). +- Sign in using familiar web2 social providers (such as Google and Apple). - Generate Solana Pay QR codes for transactions. - Make payments using their embedded wallet. @@ -348,7 +348,7 @@ export function SolanaPay() { confirmation using websockets. This allows you to update your application's state and perform reconciliation in your database. - **Production RPCs:** For scalable production usage, use dedicated Solana RPC services from providers like - [MetaMask](/services/reference/solana), as public RPCs may have rate limits. + [Infura](https://docs.infura.io/reference/solana), as public RPCs may have rate limits. - **Security:** Validate all payment parameters server-side before processing transactions. ## Next steps diff --git a/src/pages/tutorials/upgrade-eoa-to-smart-account.md b/src/pages/tutorials/upgrade-eoa-to-smart-account.md index 5a38a49c1a9..4ca48a8beed 100644 --- a/src/pages/tutorials/upgrade-eoa-to-smart-account.md +++ b/src/pages/tutorials/upgrade-eoa-to-smart-account.md @@ -14,7 +14,7 @@ You will use a provided template, which sets up MetaMask SDK with a [Next.js](ht ## Prerequisites - [Node.js](https://nodejs.org/) version 18 or later installed -- An [Infura API key](/developer-tools/dashboard/get-started/create-api) from the MetaMask Developer dashboard +- An [Infura API key](https://docs.infura.io/dashboard/get-started/create-api) from the [Infura dashboard](https://app.infura.io/) - [MetaMask](https://metamask.io/) installed, with an EOA that has Sepolia ETH :::note You can use the [MetaMask faucet](/developer-tools/faucet) to get Sepolia ETH. diff --git a/src/plugins/llms-html-injector/index.js b/src/plugins/llms-html-injector/index.js index 03cab71db25..ceb46d669e0 100644 --- a/src/plugins/llms-html-injector/index.js +++ b/src/plugins/llms-html-injector/index.js @@ -118,13 +118,7 @@ const ALL_PAGES_BUCKETS = [ filename: 'llms-all-smart-accounts-kit.txt', title: 'All Smart Accounts Kit pages', }, - { prefix: '/services/', filename: 'llms-all-services.txt', title: 'All Services pages' }, { prefix: '/snaps/', filename: 'llms-all-snaps.txt', title: 'All Snaps pages' }, - { - prefix: '/developer-tools/', - filename: 'llms-all-dashboard.txt', - title: 'All Developer dashboard pages', - }, { prefix: '/tutorials/', filename: 'llms-all-tutorials.txt', title: 'All Tutorials pages' }, ] const ALL_PAGES_MISC_FILENAME = 'llms-all-misc.txt' @@ -605,7 +599,7 @@ function stripDottedTrailingSlashInMetadata(html) { * - The upstream `docusaurus-plugin-llms` reads raw source MDX and * cannot resolve `import` partials, leaving pages built from imported * components nearly empty in the upstream `.md` (e.g. - * `services/reference/.../eth_sendrawtransaction`). Regenerating from + * `docs.infura.io/reference/.../eth_sendrawtransaction`). Regenerating from * the rendered HTML resolves every partial and component. * * - Some pages exist in the build with NO upstream-emitted `.md` at all diff --git a/src/plugins/llms-html-injector/options.js b/src/plugins/llms-html-injector/options.js index 18b34ed4606..2634012c416 100644 --- a/src/plugins/llms-html-injector/options.js +++ b/src/plugins/llms-html-injector/options.js @@ -172,38 +172,6 @@ const customLLMFiles = [ title: 'Tutorials', description: 'Complete documentation for MetaMask tutorials', }, - { - filename: 'llms-dashboard.txt', - includePatterns: ['developer-tools/dashboard/**/*.{md,mdx}'], - fullContent: false, - title: 'Developer dashboard documentation', - description: 'Documentation links for MetaMask Developer dashboard', - }, - { - filename: 'llms-dashboard-full.txt', - includePatterns: ['developer-tools/dashboard/**/*.{md,mdx}'], - fullContent: true, - title: 'Developer dashboard documentation', - description: 'Complete documentation for MetaMask Developer dashboard', - }, - { - filename: 'llms-services.txt', - // `*.{md,mdx}` (not `*.md`) is required: every `services/reference/**` - // JSON-RPC method page is an `.mdx` file (e.g. `zks_l1chainid.mdx`, - // `starknet_syncing.mdx`, `eth_simulatev1.mdx`). Matching only `.md` - // here silently excluded ~1k reference pages from the generated index. - includePatterns: ['services/**/*.{md,mdx}'], - fullContent: false, - title: 'Services documentation', - description: 'Documentation links for MetaMask services', - }, - { - filename: 'llms-services-full.txt', - includePatterns: ['services/**/*.{md,mdx}'], - fullContent: true, - title: 'Services documentation', - description: 'Complete documentation for MetaMask services', - }, { filename: 'llms-agent-wallet.txt', includePatterns: ['agent-wallet/**/*.{md,mdx}'], diff --git a/src/theme/AnnouncementBar/index.tsx b/src/theme/AnnouncementBar/index.tsx index 73e5a25f69e..fbe08fa09db 100644 --- a/src/theme/AnnouncementBar/index.tsx +++ b/src/theme/AnnouncementBar/index.tsx @@ -1,16 +1,11 @@ import React from 'react' -import { useLocation } from '@docusaurus/router' export default function AnnouncementBar(): JSX.Element | null { - const location = useLocation() - return ( ) diff --git a/src/theme/DocSidebar/Desktop/index.tsx b/src/theme/DocSidebar/Desktop/index.tsx index 6de40837ca1..50f6f4e97c3 100644 --- a/src/theme/DocSidebar/Desktop/index.tsx +++ b/src/theme/DocSidebar/Desktop/index.tsx @@ -6,14 +6,10 @@ import Logo from '@theme/Logo' import CollapseButton from '@theme-original/DocSidebar/Desktop/CollapseButton' import Content from '@theme-original/DocSidebar/Desktop/Content' import SidebarVersionDropdown from '@site/src/components/SidebarVersionDropdown/SidebarVersionDropdown' -import SidebarSectionDropdown, { - SidebarStaticTitle, -} from '@site/src/components/SidebarSectionDropdown/SidebarSectionDropdown' +import SidebarStaticTitle from '@site/src/components/SidebarSectionDropdown/SidebarStaticTitle' import { - SERVICES_DASHBOARD_CONFIG, SNAPS_CONFIG, SMART_ACCOUNTS_KIT_CONFIG, - isPathInSections, } from '@site/src/components/SidebarSectionDropdown/configs' import type { PropSidebar } from '@docusaurus/plugin-content-docs' import styles from './styles.module.css' @@ -35,10 +31,6 @@ function DocSidebarDesktop({ path, sidebar, onCollapse, isHidden }: Props) { const location = useLocation() const isSmartAccountsKitDocs = location.pathname.startsWith('/smart-accounts-kit') - const isServicesOrDashboard = isPathInSections( - location.pathname, - SERVICES_DASHBOARD_CONFIG.sections - ) const isSnaps = location.pathname.startsWith('/snaps') let smartAccountsKitTitle = null @@ -60,19 +52,6 @@ function DocSidebarDesktop({ path, sidebar, onCollapse, isHidden }: Props) { console.error('Failed to render smart accounts kit components:', e) } - let servicesDropdown = null - try { - if (isServicesOrDashboard) { - servicesDropdown = ( -
    - -
    - ) - } - } catch (e) { - console.error('Failed to render services dropdown:', e) - } - let snapsTitle = null try { if (isSnaps) { @@ -96,7 +75,6 @@ function DocSidebarDesktop({ path, sidebar, onCollapse, isHidden }: Props) { {hideOnScroll && } {smartAccountsKitTitle} {versionDropdown} - {servicesDropdown} {snapsTitle} {hideable && } diff --git a/src/theme/DocSidebar/Mobile/index.tsx b/src/theme/DocSidebar/Mobile/index.tsx index d822629097d..a811da52222 100644 --- a/src/theme/DocSidebar/Mobile/index.tsx +++ b/src/theme/DocSidebar/Mobile/index.tsx @@ -9,27 +9,18 @@ import { useNavbarMobileSidebar } from '@docusaurus/theme-common/internal' import { useLocation } from '@docusaurus/router' import DocSidebarItems from '@theme/DocSidebarItems' import SidebarVersionDropdown from '@site/src/components/SidebarVersionDropdown/SidebarVersionDropdown' -import SidebarSectionDropdown, { - SidebarStaticTitle, -} from '@site/src/components/SidebarSectionDropdown/SidebarSectionDropdown' +import SidebarStaticTitle from '@site/src/components/SidebarSectionDropdown/SidebarStaticTitle' import { - SERVICES_DASHBOARD_CONFIG, SNAPS_CONFIG, SMART_ACCOUNTS_KIT_CONFIG, - isPathInSections, } from '@site/src/components/SidebarSectionDropdown/configs' import type { Props } from '@theme/DocSidebar/Mobile' import styles from './styles.module.css' -// eslint-disable-next-line react/function-component-definition const DocSidebarMobileSecondaryMenu: NavbarSecondaryMenuComponent = ({ sidebar, path }) => { const mobileSidebar = useNavbarMobileSidebar() const location = useLocation() const isSmartAccountsKitDocs = location.pathname.startsWith('/smart-accounts-kit') - const isServicesOrDashboard = isPathInSections( - location.pathname, - SERVICES_DASHBOARD_CONFIG.sections - ) const isSnaps = location.pathname.startsWith('/snaps') return ( @@ -44,11 +35,6 @@ const DocSidebarMobileSecondaryMenu: NavbarSecondaryMenuComponent = ({ si
  • )} - {isServicesOrDashboard && ( -
  • - -
  • - )} {isSnaps && (
  • diff --git a/vercel.json b/vercel.json index f850a1ea4d5..b2e8ea8ae77 100644 --- a/vercel.json +++ b/vercel.json @@ -51,6 +51,21 @@ } ], "redirects": [ + { + "source": "/services/:path*", + "destination": "https://docs.infura.io/:path*", + "permanent": true + }, + { + "source": "/developer-tools/dashboard/:path*", + "destination": "https://docs.infura.io/dashboard/:path*", + "permanent": true + }, + { + "source": "/developer-tools/", + "destination": "https://docs.infura.io/dashboard/", + "permanent": true + }, { "source": "/whats-new/", "destination": "/" @@ -63,14 +78,6 @@ "source": "/search/", "destination": "/" }, - { - "source": "/developer-tools/", - "destination": "/developer-tools/dashboard/" - }, - { - "source": "/developer-tools/dashboard/how-to/project-sharing/", - "destination": "/developer-tools/dashboard/" - }, { "source": "/wallet/how-to/connect/access-accounts/", "destination": "/metamask-connect/evm/guides/manage-user-accounts/" @@ -591,110 +598,10 @@ "source": "/snaps/tags/keyring-api/", "destination": "/snaps/features/custom-evm-accounts/" }, - { - "source": "/services/get-started/", - "destination": "/services/get-started/infura/" - }, - { - "source": "/services/how-to/", - "destination": "/services/how-to/avoid-rate-limiting/" - }, - { - "source": "/services/how-to/use-ipfs/access-ipfs-content/", - "destination": "/services/how-to/use-ipfs/access-ipfs-content/dedicated-gateways/" - }, - { - "source": "/services/concepts/", - "destination": "/services/concepts/failover-protection/" - }, - { - "source": "/services/tutorials/", - "destination": "/services/tutorials/ethereum/authenticate-with-jwt/" - }, - { - "source": "/services/tutorials/ethereum/", - "destination": "/services/tutorials/ethereum/authenticate-with-jwt/" - }, - { - "source": "/services/tutorials/layer-2-networks/deploy-an-nft-smart-contract-on-palm/", - "destination": "/services/" - }, - { - "source": "/services/tutorials/layer-2-networks/", - "destination": "/services/tutorials/layer-2-networks/send-a-transaction/" - }, - { - "source": "/services/reference/", - "destination": "/services/reference/arbitrum/" - }, - { - "source": "/services/gas-api/", - "destination": "/services/reference/gas-api/" - }, - { - "source": "/services/gas-api/quickstart/", - "destination": "/services/reference/gas-api/quickstart/" - }, - { - "source": "/services/gas-api/supported-networks/", - "destination": "/services/get-started/endpoints/#gas-api/" - }, - { - "source": "/services/gas-api/api-reference/", - "destination": "/services/reference/gas-api/api-reference/" - }, - { - "source": "/services/gas-api/api-reference/basefeehistory/", - "destination": "/services/reference/gas-api/api-reference/basefeehistory/" - }, - { - "source": "/services/gas-api/api-reference/basefeepercentile/", - "destination": "/services/reference/gas-api/api-reference/basefeepercentile/" - }, - { - "source": "/services/gas-api/api-reference/busythreshold/", - "destination": "/services/reference/gas-api/api-reference/busythreshold/" - }, - { - "source": "/services/reference/:path*/json-rpc-methods/eth_sign/", - "destination": "/services/get-started/infura/" - }, - { - "source": "/services/reference/:path*/json-rpc-methods/eth_sendtransaction/", - "destination": "/services/get-started/infura/" - }, - { - "source": "/services/reference/swellchain/", - "destination": "/services/reference/" - }, - { - "source": "/services/reference/swellchain/:path*/", - "destination": "/services/reference/" - }, - { - "source": "/services/reference/:path*/json-rpc-methods/eth_coinbase/", - "destination": "/services/get-started/infura/" - }, { "source": "/developer-tools/faucet/sepolia/", "destination": "/developer-tools/faucet/" }, - { - "source": "/services/api/learn/pricing/", - "destination": "/services/get-started/pricing/credit-cost/" - }, - { - "source": "/services/reference/:path*/eth_newpendingtransactionfilter/", - "destination": "/services/reference/:path*/" - }, - { - "source": "/services/reference/ethereum/how-to/secure-a-project/project-secret/", - "destination": "/developer-tools/dashboard/how-to/secure-an-api/api-key-secret/" - }, - { - "source": "/services/reference/ipfs/how-to/:path*/", - "destination": "/services/how-to/use-ipfs/:path*/" - }, { "source": "/delegation-toolkit/:path*/", "destination": "/smart-accounts-kit/" @@ -703,14 +610,6 @@ "source": "/smart-accounts-kit/get-started/use-with-openclaw/", "destination": "/smart-accounts-kit/get-started/use-skills/" }, - { - "source": "/developer-tools/dashboard/how-to/", - "destination": "/developer-tools/dashboard/" - }, - { - "source": "/developer-tools/dashboard/how-to/secure-an-api/", - "destination": "/developer-tools/dashboard/how-to/secure-an-api/api-key-secret/" - }, { "source": "/embedded-wallets/connect-blockchain/custom-chains/", "destination": "/embedded-wallets/connect-blockchain/other/"