以太坊存档请求现在是免费的,对于 Core Free 用户,每天的存档数据最多占您每天总请求的 25%,对于开发者计划用户,每天最多占您每天总请求的 50%,对于团队和成长用户,最多不超过您的请求限制。这将允许您更好地使用请求来为您的项目提供您和您的用户所需的数据。
在 Infura 的构建之旅将变得更加轻松和美好。从今天开始,我们将推出简化的定价计划,让您可以专注于构建和扩展您的产品,而不必担心基础设施。
我们将为所有用户自动启用支持的网络。网络启动后,您将立即无缝访问在该网络上发送请求所需的端点。无需附加组件或信用卡。目前,Infura 支持 Ethereum、Polygon、Arbitrum、Optimism、Filecoin、NEAR 和 Aurora 网络。有关如何在 Infura 仪表板上访问这些网络的更多信息,请参阅我们的文档。
以太坊存档请求现在是免费的,对于 Core Free 用户,每天的存档数据最多占您每天总请求的 25%,对于开发者计划用户,每天最多占您每天总请求的 50%,对于团队和成长用户,最多不超过您的请求限制。这将允许您更好地使用请求来为您的项目提供您和您的用户所需的数据。要了解有关存档数据以及使用用途,请阅读本文的其余部分。
| 核心 (Core) | 开发者(Developer) | 团队 (Team) | 增长 (Growth) |
| —————————————— | ——————————- | ———————————— | ——————————- |
| Free | $50/mo | $225/mo | $1000/mo |
| Multiple Blockchain Mainnet and Testnets | All core tier benefits, plus: | All developer tier benefits, plus: | All team tier benefits, plus: |
| 100,000 Requests/Day | 200,000 Requests/Day | 1,000,000 Requests/Day | 5,000,000 Requests/Day |
| 25,000 Archive Requests/Day | 100,000 Archive Requests/Day | Unlimited Archive Requests | Unlimited Archive Requests |
| Community Support Forum | | Direct Customer Support | Direct Customer Support |
## 在 Infura 计划中使用存档数据
如果您正在编写与历史数据交互的智能合约,那么您可能已经熟悉或使用集成的区块链开发套件,例如 Truffle 或 Hardhat。它们都有各种各样的内置工具,可以让你的 dApp 的整个开发生命周期变得更加容易。连接到存档节点就像将提供的 API URL 端点设置为要在前端代码中使用的变量一样简单。
Infura 使用的 Ethereum JSON-RPC 和 Websocket API 包括几种可能需要访问存档节点的方法。这些方法包括一个额外的参数,用于指定请求的块号。如果您有兴趣检查下面列出的任何方法的历史数据(最近 128 个块之外的数据),您的请求就需要访问存档数据。
—
* eth_getBalance
* Returns the balance of the account of the given address.
* -d ‘{“jsonrpc”:”2.0″,”method”:”eth_getBalance”,”params”: [“0xc94770007dda54cF92009BFF0dE90c06F603a09f”, “latest”],”id”:1}’
* eth_getCode
* Returns the compiled smart contract code, if any, at a given address.
* -d ‘{“jsonrpc”:”2.0″,”method”:”eth_getCode”,”params”: [“0x06012c8cf97bead5deae237070f9587f8e7a266d”, “0x65a8db”],”id”:1}’
* eth_getTransactionCount
* Returns the number of transactions sent from an address.
* -d ‘{“jsonrpc”:”2.0″,”method”:”eth_getTransactionCount”,”params”: [“0xc94770007dda54cF92009BFF0dE90c06F603a09f”,”0x5bad55″],”id”:1}’
* eth_getStorageAt
* Returns the value from a storage position at a given address.
* -d ‘{“jsonrpc”:”2.0″,”method”:”eth_getStorageAt”,”params”: [“0x295a70b2de5e3953354a6a8344e616ed314d7251”, “0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9”, “0x65a8db”],”id”:1}’
* eth_call
* Executes a new message call immediately without creating a transaction on the blockchain
* -d ‘{“jsonrpc”:”2.0″,”method”:”eth_call”,”params”: [{“from”: “0xb60e8dd61c5d32be8058bb8eb970870f07233155″,”to”: “0xd46e8dd67c5d32be8058bb8eb970870f07244567″,”gas”: “0x76c0″,”gasPrice”: “0x9184e72a000″,”value”: “0x9184e72a”,”data”: “0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675”}, “latest”],”id”:1}’
—
> 本文首发于:https://mp.weixin.qq.com/s/rosE6k3pxK9E_91OycGR4A
>
在 Infura 的构建之旅将变得更加轻松和美好。从今天开始,我们将推出简化的定价计划,让您可以专注于构建和扩展您的产品,而不必担心基础设施。
我们将为所有用户自动启用支持的网络。网络启动后,您将立即无缝访问在该网络上发送请求所需的端点。无需附加组件或信用卡。目前,Infura 支持 Ethereum、Polygon、Arbitrum、Optimism、Filecoin、NEAR 和 Aurora 网络。有关如何在 Infura 仪表板上访问这些网络的更多信息,请参阅我们的文档。
以太坊存档请求现在是免费的,对于 Core Free 用户,每天的存档数据最多占您每天总请求的 25%,对于开发者计划用户,每天最多占您每天总请求的 50%,对于团队和成长用户,最多不超过您的请求限制。这将允许您更好地使用请求来为您的项目提供您和您的用户所需的数据。要了解有关存档数据以及使用用途,请阅读本文的其余部分。
核心 (Core) | 开发者(Developer) | 团队 (Team) | 增长 (Growth) |
---|---|---|---|
Free | $50/mo | $225/mo | $1000/mo |
Multiple Blockchain Mainnet and Testnets | All core tier benefits, plus: | All developer tier benefits, plus: | All team tier benefits, plus: |
100,000 Requests/Day | 200,000 Requests/Day | 1,000,000 Requests/Day | 5,000,000 Requests/Day |
25,000 Archive Requests/Day | 100,000 Archive Requests/Day | Unlimited Archive Requests | Unlimited Archive Requests |
Community Support Forum | Direct Customer Support | Direct Customer Support |
在 Infura 计划中使用存档数据
如果您正在编写与历史数据交互的智能合约,那么您可能已经熟悉或使用集成的区块链开发套件,例如 Truffle 或 Hardhat。它们都有各种各样的内置工具,可以让你的 dApp 的整个开发生命周期变得更加容易。连接到存档节点就像将提供的 API URL 端点设置为要在前端代码中使用的变量一样简单。
Infura 使用的 Ethereum JSON-RPC 和 Websocket API 包括几种可能需要访问存档节点的方法。这些方法包括一个额外的参数,用于指定请求的块号。如果您有兴趣检查下面列出的任何方法的历史数据(最近 128 个块之外的数据),您的请求就需要访问存档数据。
-
eth_getBalance
- Returns the balance of the account of the given address.
- -d ‘{“jsonrpc”:”2.0″,”method”:”eth_getBalance”,”params”: [“0xc94770007dda54cF92009BFF0dE90c06F603a09f”, “latest”],”id”:1}’
- eth_getCode
- Returns the compiled smart contract code, if any, at a given address.
- -d ‘{“jsonrpc”:”2.0″,”method”:”eth_getCode”,”params”: [“0x06012c8cf97bead5deae237070f9587f8e7a266d”, “0x65a8db”],”id”:1}’
- eth_getTransactionCount
- Returns the number of transactions sent from an address.
- -d ‘{“jsonrpc”:”2.0″,”method”:”eth_getTransactionCount”,”params”: [“0xc94770007dda54cF92009BFF0dE90c06F603a09f”,”0x5bad55″],”id”:1}’
- eth_getStorageAt
- Returns the value from a storage position at a given address.
- -d ‘{“jsonrpc”:”2.0″,”method”:”eth_getStorageAt”,”params”: [“0x295a70b2de5e3953354a6a8344e616ed314d7251”, “0x6661e9d6d8b923d5bbaab1b96e1dd51ff6ea2a93520fdc9eb75d059238b8c5e9”, “0x65a8db”],”id”:1}’
- eth_call
- Executes a new message call immediately without creating a transaction on the blockchain
- -d ‘{“jsonrpc”:”2.0″,”method”:”eth_call”,”params”: [{“from”: “0xb60e8dd61c5d32be8058bb8eb970870f07233155″,”to”: “0xd46e8dd67c5d32be8058bb8eb970870f07244567″,”gas”: “0x76c0″,”gasPrice”: “0x9184e72a000″,”value”: “0x9184e72a”,”data”: “0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675”}, “latest”],”id”:1}’
本文首发于:https://mp.weixin.qq.com/s/rosE6k3pxK9E_91OycGR4A
- 发表于 2022-06-09 12:37
- 阅读 ( 228 )
- 学分 ( 0 )
- 分类:以太坊