All pages
Powered 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:


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):


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 .

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

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


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

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


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 .

  2. Use the Read Contract section to:

    • Check ownership of licenses.


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

    • 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.
    0xA338BB7Ded469dF044390403c1Bec3D699B546D4
    etherscan
    etherscan
    Sepolia Etherscan