arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

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:


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

hashtag
Contract Details

  • Circuit Node Sale Contract (Sepolia Testnet):


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

hashtag
Steps to Read the Node License Price

  1. Go to the Node License contract on .

  2. Scroll down to “17. price” in the Read Contract section.

    • Input: Enter the number of keys (licenses) you want to purchase.


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

hashtag
Steps to Purchase Circuit License Chips

  1. Connect to the Node License contract on

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


hashtag
Verifying Purchase on Sepolia Testnet

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

hashtag
Steps to Verify:

  1. Open the GRIDNodeSale contract on .

  2. Use the Read Contract section to:

    • Check ownership of licenses.


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

Output: The uint256 value returned represents the price in Wei.

  • Convert the Wei value to Ether using an Ethereum Unit Converterarrow-up-right.

    • Example:

      • Wei value: 220986939450000000

      • Converted to Ether: 0.22098693945 ETH

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

  • Click “Write” to submit the transaction.

  • Approve the transaction in your connected wallet.

  • Retrieve license data based on your wallet address.
    0xA338BB7Ded469dF044390403c1Bec3D699B546D4arrow-up-right
    etherscanarrow-up-right
    etherscanarrow-up-right
    Sepolia Etherscanarrow-up-right