Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions pages/en/billing.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: Billing on Subgraph Studio
title: Billing
---

## Billing on Arbitrum

> Invoices are generated on a weekly basis.

While The Graph protocol operates on Ethereum Mainnet, the billing contract lives on the [Arbitrum](https://arbitrum.io/) network to reduce transaction times and cost. You'll be required to pay fees based on the query fees you generate using your API keys. Using the billing contract, you'll be able to:
While The Graph protocol operates on Ethereum Mainnet, [the billing contract](https://arbiscan.io/address/0x1b07d3344188908fb6deceac381f3ee63c48477a) lives on the [Arbitrum](https://arbitrum.io/) network to reduce transaction times and cost. You'll be required to pay the query fees generated from your API keys. Using the billing contract, you'll be able to:

- Add and remove GRT from your wallet.
- Keep track of your balances based on how much GRT you have added to your account, how much you have removed, and your invoices.
- Automatically pay invoices based on query fees generated, as long as there is enough billing balance in your account.
- Add and withdraw GRT from your billing balance.
- Keep track of your balances based on how much GRT you have added to your billing balance, how much you have removed, and your invoices.
- Automatically pay invoices based on query fees generated, as long as there is enough GRT in your billing balance.

### Adding GRT using a crypto wallet

Expand All @@ -22,17 +22,17 @@ While The Graph protocol operates on Ethereum Mainnet, the billing contract live

3. Click the 'Add GRT' button at the center of the page. A side panel will appear.

4. Enter the amount of GRT you want to add to your account. You can also select the maximum amount of GRT you want to add to your account by clicking on the "Max" button.
4. Enter the amount of GRT you want to add to your billing balance. You can also select the maximum amount of GRT you want to add to your billing balance by clicking on the "Max" button.

5. Click 'Allow GRT Access' to allow the Subgraph Studio to access your GRT. Sign the associated transaction in your wallet. This will not cost any gas.

6. Click 'Add GRT to billing balance' to add the GRT to your account. Sign the associated transaction in your wallet. This will cost gas.
6. Click 'Add GRT to billing balance' to add the GRT to your billing balance. Sign the associated transaction in your wallet. This will cost gas.

7. Once the transaction is confirmed, you'll see the GRT added to your account within an hour.
7. Once the transaction is confirmed, you'll see the GRT added to your billing balance within an hour.

### Withdrawing GRT using a crypto wallet

> This section is written assuming you have deposited GRT into your billing account on [Subgraph Studio](https://staging.thegraph.com/studio/billing/) and that you're on the Arbitrum network.
> This section is written assuming you have deposited GRT into your billing balance on [Subgraph Studio](https://staging.thegraph.com/studio/billing/) and that you're on the Arbitrum network.

1. Go to the [Subgraph Studio Billing page](https://staging.thegraph.com/studio/billing/).

Expand All @@ -42,9 +42,9 @@ While The Graph protocol operates on Ethereum Mainnet, the billing contract live

4. Enter the amount of GRT you would like to withdraw.

5. Click 'Withdraw GRT' to withdraw the GRT from your account. Sign the associated transaction in your wallet. This will cost gas. The GRT will be sent to your Arbitrum wallet.
5. Click 'Withdraw GRT' to withdraw the GRT from your billing balance. Sign the associated transaction in your wallet. This will cost gas. The GRT will be sent to your Arbitrum wallet.

6. Once the transaction is confirmed, you'll see the GRT withdrawn from your account in your Arbitrum wallet.
6. Once the transaction is confirmed, you'll see the GRT withdrawn from your billing balance in your Arbitrum wallet.

### Adding GRT using a multisig wallet

Expand All @@ -54,11 +54,11 @@ While The Graph protocol operates on Ethereum Mainnet, the billing contract live

3. Click the 'Add GRT' button at the center of the page. A side panel will appear.

4. Once the transaction is confirmed, you'll see the GRT added to your account within an hour.
4. Once the transaction is confirmed, you'll see the GRT added to your billing balance within an hour.

### Withdrawing GRT using a multisig wallet

> This section is written assuming you have deposited GRT into your billing account on [Subgraph Studio](https://staging.thegraph.com/studio/billing/) and that you're on Ethereum mainnet.
> This section is written assuming you have deposited GRT into your billing balance on [Subgraph Studio](https://staging.thegraph.com/studio/billing/) and that you're on Ethereum mainnet.

1. Go to the [Subgraph Studio Billing page](https://staging.thegraph.com/studio/billing/).

Expand All @@ -68,7 +68,7 @@ While The Graph protocol operates on Ethereum Mainnet, the billing contract live

4. Enter the amount of GRT you would like to withdraw. Specify the receiving wallet which will receive the GRT from this transaction. The GRT will be sent to the receiving wallet on Arbitrum.

5. Click 'Withdraw GRT' to withdraw the GRT from your account. Sign the associated transaction in your wallet. This will cost gas.
5. Click 'Withdraw GRT' to withdraw the GRT from your billing balance. Sign the associated transaction in your wallet. This will cost gas.

6. Once the transaction is confirmed, you'll see the GRT added to your Arbitrum wallet within an hour.

Expand Down