Skip to content

Commit

Permalink
Banxa billing (#318)
Browse files Browse the repository at this point in the history
* Banxa billing

* Fixes

* small fix

* Small updates & details

* Switching lines

* Billing with Banxa
  • Loading branch information
MichaelMacaulay authored Mar 23, 2023
1 parent 1b1fb43 commit 5255e8f
Showing 1 changed file with 37 additions and 14 deletions.
51 changes: 37 additions & 14 deletions website/pages/en/billing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,38 @@
title: Billing
---

## Billing on Arbitrum

> Invoices are generated on a weekly basis.
There are two options for paying for your query fees:

- [Paying with fiat currency with Banxa](#billing-with-banxa)
- [Paying with crypto wallet](#billing-on-arbitrum)

## Billing with Banxa

Banxa enables you to bypass the need for an exchange and pay for your query fees using the fiat currency of your choice. The fiat currency will be converted to GRT, added to your account balance on the billing contract, and used to pay for queries associated with your API keys.

There may be KYC requirements depending on the regulations in your country. For more information about KYC, please visit [Banxa's FAQ page](https://docs.banxa.com/docs/faqs).

You can learn more about Banxa by reading their [documentation](https://docs.banxa.com/docs).

### Paying for query fees with Banxa

1. Select “Pay with Card” option in [Subgraph Studio](https://thegraph.com/studio/billing/?show=Deposit).
2. Enter the amount of GRT to be added to your account balance.
3. Click the 'Continue with Banxa' button.
4. Enter necessary banking information on Banxa including payment method & fiat currency of choice.
5. Finish the transaction.

It may take up to 10 minutes to complete the transaction. Once the transaction is confirmed, the purchased GRT will automatically be added to your account balance on Arbitrum.

## Billing on Arbitrum

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 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.
- Add and withdraw GRT from your account balance.
- Keep track of your balances based on how much GRT you have added to your account 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 account balance.

### Adding GRT using a crypto wallet

Expand All @@ -22,17 +45,17 @@ While The Graph protocol operates on Ethereum Mainnet, [the billing contract](ht

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 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.
4. Enter the amount of GRT you want to add to your account balance. You can also select the maximum amount of GRT you want to add to your account 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 billing balance. Sign the associated transaction in your wallet. This will cost gas.
6. Click 'Add GRT to account balance' to add the GRT to your account 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 billing balance within an hour.
7. Once the transaction is confirmed, you'll see the GRT added to your account balance within an hour.

### Withdrawing GRT using a crypto wallet

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

Expand All @@ -42,9 +65,9 @@ While The Graph protocol operates on Ethereum Mainnet, [the billing contract](ht

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

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.
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.

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

### Adding GRT using a multisig wallet

Expand All @@ -54,11 +77,11 @@ While The Graph protocol operates on Ethereum Mainnet, [the billing contract](ht

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 billing balance within an hour.
4. Once the transaction is confirmed, you'll see the GRT added to your account balance within an hour.

### Withdrawing GRT using a multisig wallet

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

Expand All @@ -68,7 +91,7 @@ While The Graph protocol operates on Ethereum Mainnet, [the billing contract](ht

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 billing balance. Sign the associated transaction in your wallet. This will cost gas.
5. Click 'Withdraw GRT' to withdraw the GRT from your account 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

0 comments on commit 5255e8f

Please sign in to comment.