|
2 | 2 | title: 计费 |
3 | 3 | --- |
4 | 4 |
|
5 | | -## Querying Plans |
| 5 | +## 查询计划 |
6 | 6 |
|
7 | 7 | There are two plans to use when querying Subgraphs on The Graph Network. |
8 | 8 |
|
9 | | -- **Free Plan**: The Free Plan includes 100,000 free monthly queries with full access to the Subgraph Studio testing environment. This plan is designed for hobbyists, hackathoners, and those with side projects to try out The Graph before scaling their dapp. |
| 9 | +- **免费计划**:免费计划包括每月100000次免费查询,可完全访问Subgraph Studio测试环境。这个计划是为业余爱好者、黑客马拉松者和那些有副项目的人设计的,他们可以在扩展他们的dapp之前尝试Graph。 |
10 | 10 |
|
11 | | -- **Growth Plan**: The Growth Plan includes everything in the Free Plan with all queries after 100,000 monthly queries requiring payments with GRT or credit card. The Growth Plan is flexible enough to cover teams that have established dapps across a variety of use cases. |
| 11 | +- **增长计划**:增长计划包括免费计划中的所有内容,以及每月100000次查询后需要使用GRT或信用卡付款的所有查询。增长计划足够灵活,可以覆盖在各种用例中建立dapp的团队。 |
12 | 12 |
|
13 | 13 | <VideoEmbed title="How to Set Up Billing on The Graph Network" youtube="Nn771WagX2I" /> |
14 | 14 |
|
15 | 15 | ## Query Payments with credit card |
16 | 16 |
|
17 | | -- To set up billing with credit/debit cards, users should access Subgraph Studio (https://thegraph.com/studio/) |
18 | | - 1. Go to the [Subgraph Studio Billing page](https://thegraph.com/studio/subgraphs/billing/). |
| 17 | +- 要使用信用卡/借记卡设置账单,用户应访问Subgraph Studio(https://thegraph.com/studio/)。 |
| 18 | + 1. 转到 [Subgraph Studio计费页面](https://thegraph.com/studio/subgraphs/billing/)。 |
19 | 19 | 2. 单击页面右上角的“Connect Wallet”(连接钱包)按钮。您将被重定向到钱包选择页面。选择您的钱包,然后单击“Connect”(连接)。 |
20 | 20 | 3. Choose “Upgrade plan” if you are upgrading from the Free Plan or choose “Manage Plan” if you have already added GRT to your billing balance in the past. Next, you can estimate the number of queries to get a pricing estimate, but this is not a required step. |
21 | | - 4. To choose a credit card payment, choose “Credit card” as the payment method and fill out your credit card information. Those who have used Stripe before can use the Link feature to autofill their details. |
22 | | -- Invoices will be processed at the end of each month and require an active credit card on file for all queries beyond the free plan quota. |
| 21 | + 4. 要选择信用卡付款,请选择“信用卡”作为付款方式,并填写您的信用卡信息。以前使用过Stripe的人可以使用链接功能自动填充他们的详细信息。 |
| 22 | +- 发票将在每月月底处理,对于超出免费计划配额的所有查询,都需要一张有效的信用卡存档。 |
23 | 23 |
|
24 | | -## Query Payments with GRT |
| 24 | +## 使用GRT查询付款 |
25 | 25 |
|
26 | | -Subgraph users can use The Graph Token (or GRT) to pay for queries on The Graph Network. With GRT, invoices will be processed at the end of each month and require a sufficient balance of GRT to make queries beyond the Free Plan quota of 100,000 monthly queries. You'll be required to pay fees generated from your API keys. Using the billing contract, you'll be able to: |
| 26 | +Subgraph用户可以使用Graph代币(或GRT)在Graph网络上支付查询费用。使用GRT,发票将在每月末处理,并需要足够的GRT余额来进行超过每月100000次查询的免费计划配额的查询。您将被要求支付API密钥产生的费用。使用计费合约,您将能够: |
27 | 27 |
|
28 | 28 | - 从您的账户余额中添加和提取GRT。 |
29 | 29 | - 根据您的账户添加的GRT数量、移除的数量和发票,跟踪您的余额。 |
30 | 30 | - 只要您的账单余额中有足够的GRT,就可以根据生成的查询费用自动支付发票。 |
31 | 31 |
|
32 | | -### GRT on Arbitrum or Ethereum |
| 32 | +### Arbitrum或以太坊上的GRT |
33 | 33 |
|
34 | 34 | The Graph’s billing system accepts GRT on Arbitrum, and users will need ETH on Arbitrum to pay their gas. While The Graph protocol started on Ethereum Mainnet, all activity, including the billing contracts, is now on Arbitrum One. |
35 | 35 |
|
36 | | -To pay for queries, you need GRT on Arbitrum. Here are a few different ways to achieve this: |
| 36 | +因此,要为查询付费,您需要Arbitrum上的GRT。以下是实现这一目标的几种不同方法: |
37 | 37 |
|
38 | 38 | - If you already have GRT on Ethereum, you can bridge it to Arbitrum. You can do this via the GRT bridging option provided in Subgraph Studio or by using one of the following bridges: |
39 | 39 |
|
40 | 40 | - [The Arbitrum Bridge](https://bridge.arbitrum.io/?l2ChainId=42161) |
41 | 41 |
|
42 | 42 | - [TransferTo](https://transferto.xyz/swap) |
43 | 43 |
|
44 | | -- If you already have assets on Arbitrum, you can swap them for GRT via a swapping protocol like Uniswap. |
| 44 | +- 如果你在Arbitrum上有其他资产,你可以通过Uniswap等交换协议将它们交换为GRT。 |
45 | 45 |
|
46 | | -- Alternatively, you acquire GRT directly on Arbitrum through a decentralized exchange. |
| 46 | +- 或者,您可以通过去中心化交易所直接在Arbitrum上获得GRT。 |
47 | 47 |
|
48 | | -> This section is written assuming you already have GRT in your wallet, and you're on Arbitrum. If you don't have GRT, you can learn how to get GRT [here](#getting-grt). |
| 48 | +> 本节假设您的加密钱包中已经有GRT,并且您在以太坊主网上。如果你没有GRT,你可以在[这里](#getting-grt)学习如何获得GRT。 |
49 | 49 |
|
50 | 50 | Once you bridge GRT, you can add it to your billing balance. |
51 | 51 |
|
52 | | -### Adding GRT using a wallet |
| 52 | +### 使用加密钱包添加GRT |
53 | 53 |
|
54 | | -1. Go to the [Subgraph Studio Billing page](https://thegraph.com/studio/subgraphs/billing/). |
| 54 | +1. 转到 [Subgraph Studio计费页面](https://thegraph.com/studio/subgraphs/billing/)。 |
55 | 55 | 2. 单击页面右上角的“Connect Wallet”(连接钱包)按钮。您将被重定向到钱包选择页面。选择您的钱包,然后单击“Connect”(连接)。 |
56 | | -3. Select the "Manage" button near the top right corner. First time users will see an option to "Upgrade to Growth plan" while returning users will click "Deposit from wallet". |
57 | | -4. Use the slider to estimate the number of queries you expect to make on a monthly basis. |
58 | | - - For suggestions on the number of queries you may use, see our **Frequently Asked Questions** page. |
| 56 | +3. 选择右上角附近的“管理”按钮。首次用户将看到“升级到增长计划”的选项,而回头客将点击“从钱包存款”。 |
| 57 | +4. 使用滑块估算您每月预计进行的查询数量。 |
| 58 | + - 有关您可以使用的查询数量的建议,请参阅我们的**常见问题**页面。 |
59 | 59 | 5. Choose "Cryptocurrency". GRT is currently the only cryptocurrency accepted on The Graph Network. |
60 | | -6. Select the number of months you would like to prepay. |
61 | | - - Paying in advance does not commit you to future usage. You will only be charged for what you use and you can withdraw your balance at any time. |
62 | | -7. Pick the network from which you are depositing your GRT. GRT on Arbitrum or Ethereum are both acceptable. |
63 | | -8. Click "Allow GRT Access" and then specify the amount of GRT that can be taken from you wallet. |
64 | | - - If you are prepaying for multiple months, you must allow access to the amount that corresponds with that amount. This interaction will not cost any gas. |
| 60 | +6. 选择您要预付的月数。 |
| 61 | + - 提前付款并不意味着您将来会使用。您只需支付您使用的费用,您可以随时提取余额。 |
| 62 | +7. 选择您存入GRT的网络。Arbitrum或以太坊上的GRT都是可以接受的。 |
| 63 | +8. 点击“允许GRT访问”,然后指定可以从钱包中提取的GRT金额。 |
| 64 | + - 如果您预付了几个月,您必须允许访问与该金额相对应的金额。这种相互作用不会消耗任何燃气费。 |
65 | 65 | 9. Lastly, click on "Add GRT to Billing Balance". This transaction will require ETH on Arbitrum to cover the gas costs. |
66 | 66 |
|
67 | 67 | - Note that GRT deposited from Arbitrum will process within a few moments while GRT deposited from Ethereum will take approximately 15-20 minutes to process. Once the transaction is confirmed, you'll see the GRT added to your account balance. |
68 | 68 |
|
69 | | -### Withdrawing GRT using a wallet |
| 69 | +### 使用加密钱包提取GRT |
70 | 70 |
|
71 | | -1. Go to the [Subgraph Studio Billing page](https://thegraph.com/studio/subgraphs/billing/). |
72 | | -2. Click on the "Connect Wallet" button on the top right corner of the page. Select your wallet and click on "Connect". |
73 | | -3. Click the "Manage" button at the top right corner of the page. Select "Withdraw GRT". A side panel will appear. |
74 | | -4. Enter the amount of GRT you would like to withdraw. |
75 | | -5. Click 'Withdraw GRT' to withdraw the GRT from your account balance. Sign the associated transaction in your wallet. This will cost gas. The GRT will be sent to your Arbitrum wallet. |
76 | | -6. Once the transaction is confirmed, you'll see the GRT withdrawn from your account balance in your Arbitrum wallet. |
| 71 | +1. 转到 [Subgraph Studio计费页面](https://thegraph.com/studio/subgraphs/billing/)。 |
| 72 | +2. 单击页面右上角的“Connect Wallet”(连接钱包)按钮。选择您的钱包,然后单击“Connect”(连接)。 |
| 73 | +3. 单击页面右上角的“管理”按钮。选择“提取GRT”。将出现一个侧面板。 |
| 74 | +4. 输入您要提取的GRT金额。 |
| 75 | +5. 单击“提取GRT”,从您的账单余额中提取GRT。在您的钱包中签署相关交易。这将耗费燃气费。GRT将发送到您的Arbitrum钱包。 |
| 76 | +6. 一旦交易被确认,您将在一小时内看到GRT提取到您的Arbitrum钱包的账单余额中。 |
77 | 77 |
|
78 | 78 | ### 使用多签钱包添加GRT |
79 | 79 |
|
80 | | -1. Go to the [Subgraph Studio Billing page](https://thegraph.com/studio/subgraphs/billing/). |
81 | | -2. Click on the "Connect Wallet" button on the top right corner of the page. Select your wallet and click on "Connect". If you're using [Gnosis-Safe](https://gnosis-safe.io/), you'll be able to connect your multisig as well as your signing wallet. Then, sign the associated message. This will not cost any gas. |
82 | | -3. Select the "Manage" button near the top right corner. First time users will see an option to "Upgrade to Growth plan" while returning users will click "Deposit from wallet". |
83 | | -4. Use the slider to estimate the number of queries you expect to make on a monthly basis. |
84 | | - - For suggestions on the number of queries you may use, see our **Frequently Asked Questions** page. |
85 | | -5. Choose "Cryptocurrency". GRT is currently the only cryptocurrency accepted on The Graph Network. |
86 | | -6. Select the number of months you would like to prepay. |
87 | | - - Paying in advance does not commit you to future usage. You will only be charged for what you use and you can withdraw your balance at any time. |
| 80 | +1. 转到 [Subgraph Studio计费页面](https://thegraph.com/studio/subgraphs/billing/)。 |
| 81 | +2. 点击页面右上角的“连接钱包”按钮。选择您的钱包,然后单击“连接”。如果您使用的是[Gnosis-Safe](https://gnosis-safe.io/),您将能够连接您的多重签名和签名钱包。然后,在相关消息上签名。这不会花费任何燃气费。 |
| 82 | +3. 选择右上角附近的“管理”按钮。首次用户将看到“升级到增长计划”的选项,而回头客将点击“从钱包存款”。 |
| 83 | +4. 使用滑块估算您每月预计进行的查询数量。 |
| 84 | + - 有关您可以使用的查询数量的建议,请参阅我们的**常见问题**页面。 |
| 85 | +5. 选择“加密货币”。GRT目前是The Graph网络上唯一接受的加密货币。 |
| 86 | +6. 选择您要预付的月数。 |
| 87 | + - 提前付款并不意味着您将来会使用。您只需支付您使用的费用,您可以随时提取余额。 |
88 | 88 | 7. Pick the network from which you are depositing your GRT. GRT on Arbitrum or Ethereum are both acceptable. 8. Click "Allow GRT Access" and then specify the amount of GRT that can be taken from you wallet. |
89 | | - - If you are prepaying for multiple months, you must allow access to the amount that corresponds with that amount. This interaction will not cost any gas. |
| 89 | + - 如果您预付了几个月,您必须允许访问与该金额相对应的金额。这种相互作用不会消耗任何燃气费。 |
90 | 90 | 8. Lastly, click on "Add GRT to Billing Balance". This transaction will require ETH on Arbitrum to cover the gas costs. |
91 | 91 |
|
92 | 92 | - Note that GRT deposited from Arbitrum will process within a few moments while GRT deposited from Ethereum will take approximately 15-20 minutes to process. Once the transaction is confirmed, you'll see the GRT added to your account balance. |
93 | 93 |
|
94 | | -## Getting GRT |
| 94 | +## 获取GRT |
95 | 95 |
|
96 | 96 | This section will show you how to get GRT to pay for query fees. |
97 | 97 |
|
@@ -149,61 +149,61 @@ This is how you can purchase GRT on Uniswap. |
149 | 149 |
|
150 | 150 | You can learn more about getting GRT on Uniswap [here](https://support.uniswap.org/hc/en-us/articles/8370549680909-How-to-Swap-Tokens-). |
151 | 151 |
|
152 | | -## Getting Ether |
| 152 | +## 获取以太币 |
153 | 153 |
|
154 | | -This section will show you how to get Ether (ETH) to pay for transaction fees or gas costs. ETH is necessary to execute operations on the Ethereum network such as transferring tokens or interacting with contracts. |
| 154 | +这一部分将向您展示如何获取以太币(ETH)以支付交易费用或燃气费用。在以太坊网络上执行操作,例如转移代币或与智能合约交互,都需要以太币(ETH)。 |
155 | 155 |
|
156 | 156 | ### Coinbase |
157 | 157 |
|
158 | | -This will be a step by step guide for purchasing ETH on Coinbase. |
| 158 | +这将是在Coinbase上购买ETH的分步指南。 |
159 | 159 |
|
160 | | -1. Go to [Coinbase](https://www.coinbase.com/) and create an account. |
| 160 | +1. 转到[Coinbase](https://www.coinbase.com/) 并创建一个账户。 |
161 | 161 | 2. 创建账户后,您需要通过KYC(或了解您的客户)流程验证您的身份。这是所有中心化或托管加密交易所的标准程序。 |
162 | | -3. Once you have verified your identity, purchase ETH by clicking on the "Buy/Sell" button on the top right of the page. |
| 162 | +3. 一旦您验证了自己的身份,就可以购买ETH。您可以通过单击页面右上方的“买入/卖出”按钮来完成此操作。 |
163 | 163 | 4. 选择要购买的货币。选择ETH。 |
164 | 164 | 5. Select your preferred payment method. |
165 | | -6. Enter the amount of ETH you want to purchase. |
166 | | -7. Review your purchase and click "Buy ETH". |
167 | | -8. Confirm your purchase and you will have successfully purchased ETH. |
168 | | -9. You can transfer the ETH from your Coinbase account to your wallet such as [MetaMask](https://metamask.io/). |
169 | | - - To transfer the ETH to your wallet, click on the "Accounts" button on the top right of the page. |
170 | | - - Click on the "Send" button next to the ETH account. |
171 | | - - Enter the amount of ETH you want to send and the wallet address you want to send it to. |
172 | | - - Ensure that you are sending to your Ethereum wallet address on Arbitrum One. |
| 165 | +6. 输入要购买的ETH金额。 |
| 166 | +7. 查看您的购买并单击“购买ETH”。 |
| 167 | +8. 确认您的购买,您将成功购买ETH。 |
| 168 | +9. 您可以将ETH从您的帐户转移到您的钱包,如 [MetaMask](https://metamask.io/)。 |
| 169 | + - 要将ETH转移到您的加密钱包,请单击页面右上方的“账户”按钮。 |
| 170 | + - 单击ETH账户旁边的“发送”按钮。 |
| 171 | + - 输入您要发送的ETH金额和您要发送到的钱包地址。 |
| 172 | + - 确保您正在发送到Arbitrum One上的以太坊钱包地址。 |
173 | 173 | - 单击“继续”并确认您的交易。 |
174 | 174 |
|
175 | | -You can learn more about getting ETH on Coinbase [here](https://help.coinbase.com/en/coinbase/trading-and-funding/buying-selling-or-converting-crypto/how-do-i-buy-digital-currency). |
| 175 | +您可以在[此处]了解有关在Coinbase上获取ETH的更多信息。(https://help.coinbase.com/en/coinbase/trading-and-funding/buying-selling-or-converting-crypto/how-do-i-buy-digital-currency)。 |
176 | 176 |
|
177 | 177 | ### Binance |
178 | 178 |
|
179 | | -This will be a step by step guide for purchasing ETH on Binance. |
| 179 | +这将是在Binance上购买ETH的分步指南。 |
180 | 180 |
|
181 | 181 | 1. Go to [Binance](https://www.binance.com/en) and create an account. |
182 | 182 | 2. 创建账户后,您需要通过KYC(或了解您的客户)流程验证您的身份。这是所有中心化或托管加密交易所的标准程序。 |
183 | 183 | 3. 一旦您完成了身份验证,您可以通过在首页横幅上点击“立即购买”按钮来购买ETH。 |
184 | 184 | 4. 选择要购买的货币。选择ETH。 |
185 | 185 | 5. Select your preferred payment method. |
186 | | -6. Enter the amount of ETH you want to purchase. |
187 | | -7. Review your purchase and click "Buy ETH". |
| 186 | +6. 输入要购买的ETH金额。 |
| 187 | +7. 查看您的购买并单击“购买ETH”。 |
188 | 188 | 8. 确认您的购买,您将能够在Binance现货钱包中看到您的ETH。 |
189 | | -9. You can withdraw the ETH from your account to your wallet such as [MetaMask](https://metamask.io/). |
190 | | - - To withdraw the ETH to your wallet, add your wallet's address to the withdrawal whitelist. |
| 189 | +9. 您可以将ETH从您的帐户转移到您的钱包,如 [MetaMask](https://metamask.io/)。 |
| 190 | + - 想要将ETH提现到你的加密钱包,先将你的加密钱包地址添加到提现白名单。 |
191 | 191 | - 单击“钱包”按钮,单击提取,然后选择ETH。 |
192 | 192 | - 输入您要发送的ETH金额和您要发送到的白名单钱包地址。 |
193 | | - - Ensure that you are sending to your Ethereum wallet address on Arbitrum One. |
| 193 | + - 确保您正在发送到Arbitrum One上的以太坊钱包地址。 |
194 | 194 | - 单击“继续”并确认您的交易。 |
195 | 195 |
|
196 | | -You can learn more about getting ETH on Binance [here](https://www.binance.com/en/support/faq/how-to-buy-cryptocurrency-on-binance-homepage-400c38f5e0cd4b46a1d0805c296b5582). |
| 196 | +您可以在[此处]了解有关在Binance上获取ETH的更多信息。(https://www.binance.com/en/support/faq/how-to-buy-cryptocurrency-on-binance-homepage-400c38f5e0cd4b46a1d0805c296b5582)。 |
197 | 197 |
|
198 | 198 | ## Billing FAQs |
199 | 199 |
|
200 | | -### How many queries will I need? |
| 200 | +### 我需要多少个查询? |
201 | 201 |
|
202 | | -You don't need to know how many queries you'll need in advance. You will only be charged for what you use and you can withdraw GRT from your account at any time. |
| 202 | +你不需要提前知道你需要多少查询。您只需支付您使用的费用,您可以随时从您的账户中提取GRT。 |
203 | 203 |
|
204 | | -We recommend you overestimate the number of queries you will need so that you don’t have to top up your balance frequently. A good estimate for small to medium sized applications is to start with 1M-2M queries per month and monitor usage closely in the first weeks. For larger apps, a good estimate is to use the number of daily visits your site gets multiplied by the number of queries your most active page makes upon opening. |
| 204 | +我们建议您高估所需的查询次数,这样您就不必经常充值余额。对于中小型应用程序,一个很好的估计是每月从1M-2M的查询开始,并在头几周密切监控使用情况。对于较大的应用程序,一个很好的估计是使用您的网站每天的访问次数乘以您最活跃的页面在打开时的查询次数。 |
205 | 205 |
|
206 | | -Of course, both new and existing users can reach out to Edge & Node's BD team for a consult to learn more about anticipated usage. |
| 206 | +当然,新用户和现有用户都可以联系Edge&Node的BD团队进行咨询,以了解更多关于预期使用情况的信息。 |
207 | 207 |
|
208 | 208 | ### Can I withdraw GRT from my billing balance? |
209 | 209 |
|
|
0 commit comments