# Circuit Node Sale Contract

Here’s the revised page for the **Circuit Node Sale** contract, tailored to the **Ethereum Sepolia Testnet** and updated to reflect the latest deployment details:

***

## **Circuit Node Sale Contract Guide**

This guide walks you through interacting with the **Circuit Node Sale contract**, deployed on the **Ethereum Sepolia Testnet**. We’ll cover how to access the contract, read the price, and purchase node licenses.

#### **Contract Details**

* **Circuit Node Sale Contract (Sepolia Testnet)**:\
  [0xA338BB7Ded469dF044390403c1Bec3D699B546D4](https://sepolia.etherscan.io/address/0xA338BB7Ded469dF044390403c1Bec3D699B546D4#readContract)

***

### **How to Read the Circuit License Chip Price**

The **Circuit License Chip contract** price is dynamic. Use the steps below to get the latest price for the number of keys (licenses) you want to buy.

#### **Steps to Read the Node License Price**

1. **Go to the Node License contract** on [etherscan](https://sepolia.etherscan.io/address/0xA338BB7Ded469dF044390403c1Bec3D699B546D4#readContract).
2. **Scroll down** to **“17. price”** in the **Read Contract** section.
   * **Input**: Enter the number of keys (licenses) you want to purchase.
   * **Output**: The **uint256 value** returned represents the price in **Wei**.
3. **Convert the Wei value to Ether** using an [Ethereum Unit Converter](https://eth-converter.com).
   * **Example**:
     * Wei value: `220986939450000000`
     * Converted to Ether: `0.22098693945 ETH`

***

### **Purchasing Circuit License Chip**

After retrieving the price for the number of licenses, follow these steps to make a purchase using the **Circuit License Chip contract** on Ethereum Sepolia.

#### **Steps to Purchase Circuit License Chips**

1. **Connect to the Node License contract** on [etherscan](https://sepolia.etherscan.io/address/0xA338BB7Ded469dF044390403c1Bec3D699B546D4#readContract)
   * Use a **Web3 wallet** (e.g., MetaMask) connected to the Ethereum Sepolia network.
2. **Go to the “5. mint” function** under the **Write Contract** section.
3. **Enter the following inputs:**
   * **Wei value**: Paste the price you calculated in the previous step.
   * **\_amount (uint256)**: Enter the number of keys (licenses) you want to mint.
4. **Click “Write”** to submit the transaction.
5. **Approve the transaction** in your connected wallet.

***

### **Verifying Purchase on Sepolia Testnet**

After purchasing, you can verify the transaction by interacting with the **GRIDNodeSale** contract on the **Sepolia Testnet**.

#### **Steps to Verify:**

1. **Open the GRIDNodeSale contract** on [Sepolia Etherscan](https://sepolia.etherscan.io/address/0xA338BB7Ded469dF044390403c1Bec3D699B546D4#readContract).
2. **Use the Read Contract section** to:
   * **Check ownership** of licenses.
   * **Retrieve license data** based on your wallet address.

***

### **Troubleshooting**

* **Insufficient Gas**: Ensure your wallet has enough **ETH** on Sepolia for gas fees.
* **Transaction Errors**: Verify the **price input** in Wei and ensure it's correctly converted from Ether.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gr1d.network/circuit-nodes-101/power-your-circuit-node/circuit-node-sale-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
