Xai Network
English
English
  • About Xai
    • Welcome to Xai
    • Xai Introduction
      • Xai Blockchain
      • Xai Foundation
      • Xai Token
      • Blockchain Gaming
        • Current Limitations
        • The Future of Gaming
        • Gaming Evolved
      • Ex Populus Partnership
      • Offchain Labs Partnership
      • Vanguard League
      • FAQ
      • Important Links
      • Xai Brand Kit
    • Xai Protocol
      • Xai Basic Concepts
      • AnyTrust: Revolutionizing Blockchain Infrastructure
        • Reducing Costs through Trust Assumptions
        • Keysets for Flexibility
        • Data Availability Certificates (DACerts)
        • Dual Data Posting Mechanisms
        • Data Availability Servers (DAS)
        • Sequencer-Committee Interaction
      • Security considerations
    • Xai Governance Voting Guide
    • XAI Tokenomics
      • XAI Token’s Utility & Purpose
      • esXAI Token’s Utility & Purpose
      • The Redemption Process
      • Token metrics and initial allocation
      • XAI & esXAI Emissions & Burning
      • Network Rewards
      • Sentry Key Pricing Tiers
    • Sentry Keys Explained
      • How do Sentry Nodes Work
      • Who Can Operate A Sentry Node
      • Referee Smart Contract
        • Submission of Assertions
        • Claiming Rewards
        • Creating Assertion Hash and Checking Payout
      • Challenger Component
      • Key (NFT-based)
      • Sentry Download and Operation
      • Sentry Wallet Functionality
      • Licensing Impact
      • Sentry Node Hardware Requirements
      • Sentry Node Utility
      • Accruing Key Rewards
    • Sentry Key Purchase & Setup
      • Step 1: Purchase a Sentry Key
        • Option 1: Buy Sentry Key via the website
        • Option 2: Buy Sentry Key via Xai Sentry Node desktop app
        • Option 3: Buy Sentry Key via Xai Sentry Node CLI (command line interface)
          • How to view the price of a Key via the CLI
        • Option 4: Buy Sentry Key via Node License Contract on Arbiscan
      • Step 2: Download & Run the Xai Sentry Node
      • Step 3: Complete Requirements to Accrue esXAI
        • Step 3a: Set Up & Fund the Sentry Wallet
          • How to Obtain Arbitrum ETH
          • How to import your wallet as the Sentry Wallet in the desktop app
        • Step 3b: Start the Sentry Wallet (a.k.a Operator)
          • How to create a wallet using the CLI
        • Step 3c: Assign Keys to the Sentry Wallet
      • Step 4: Complete KYC (or KYB) to Claim XAI redemptions
        • How to interpret a Pending KYC status
      • Common Troubleshooting Steps
        • How do I run a Xai Node on VPS?
          • Step 1: Choose a VPS
          • Step 2: Log in to a server
          • Step 3: Set up Xai Sentry Node
          • Step 4: Set up a Screen
          • Step 5: Start Xai Sentry Node
          • Step 6: Monitor your Node via Screen
          • Step 7: Updating your node
        • How do I prevent others from using my Sentry Wallet or Operator?
        • Why don't I see the KYC link on the desktop app?
        • How do I know my Node is running in the CLI?
        • How do I KYC if I'm using the CLI?
        • How can I see my rewards?
        • Crashing, inconsistent Emissions / missing revert data errors
        • According to BlockPass, my KYC is approved, but the desktop app still says I am not approved
        • I see "Transaction in progress" message after assigning my wallet. Did my wallet not get assigned?
        • How do I delegate my Keys to another user's operator?
        • Why did my Accrued esXAI balance decrease?
        • What are the legitimate contracts owned & operated by Xai Foundation?
        • Why do I get an error for challenge 2012?
      • How To Videos
        • Desktop Client
          • Download & Install Xai Node Desktop Client
          • Import & Start Your Sentry Wallet
          • Assign Wallets Containing Keys to the Sentry Wallet
          • Fund Sentry Wallet with Arbitrum One ETH
          • Submit KYC
          • Claim Node Rewards after Passing KYC
        • Command Line Interface (CLI)
          • Download & Install Xai Node CLI
          • Boot Operator & Interpret Status Logs
          • Add Custom Operator
          • Track Accrued esXAI
          • KYC When Using CLI
      • Redeem Referral Rewards
    • Open Initiatives
      • Completed Initiatives
      • Xai & Sentry Nodes Initiatives
      • Xai Protocol Initiatives
  • Staking Explained
    • Staking v1 and v2
    • Staking Pool Guide
      • Create a Pool
      • Stake esXAI
      • Stake Sentry Keys
      • Generating Rewards
      • Unstaking
    • Staking Rewards & Tiers
    • Time Cooldown
    • Gas Optimizations
  • Tiny Sentry Key FAQ
    • FAQ (Indonesian / Bahasa Indonesia)
    • FAQ (Korean / 한국어)
    • FAQ (Hindi / हिन्दी) - कुंजी विभाजन सामान्य प्रश्न
    • FAQ (Chinese / 中文)
  • Key Sale Referrals
  • Key Split Update (technical)
  • Build on Xai
    • Xai Chains & Parameters
      • Connect to Xai Mainnet
      • Bridge to Xai Mainnet
      • Connect to Xai Testnet (Sepolia)
      • Bridge to Xai Testnet
      • Bridged Token Addresses
      • Contract Addresses
    • How to run a full node for Xai chain
    • How to get $XAI
      • Centralized Exchanges
      • Decentralized Exchanges
        • Camelot
    • Developer Tools
      • Block Explorers
      • RPC
        • Ankr
        • Nirvana
        • QuickNode
      • Token Bridges
        • Xai native bridge
        • Gas.zip
        • Relay
      • Wallets
      • Marketplace
        • Reservoir
        • Snag Solutions
        • RaribleX
      • On chain randomisation
        • Supra VRF
  • Xai Gaming Dev Resources
    • Xai Connect
      • Overview
      • Integrate with Xai Connect
    • Build with thirdweb
      • Overview
      • Connect
      • Contracts
      • Wallets
      • Account Abstraction
      • SDKs
      • Engine
      • Web3 APIs
    • Build with Sequence
    • Subgraph
    • Xai Gas Subsidy
  • Xai Vanguard: Genesis
    • Getting Started
      • Leaderboard
      • Discord
    • Chapter 01: Onboarding
    • Chapter 02: Minting
      • Minting from Contract
    • Chapter 03: Discord
      • Obtaining esXAI
      • Obtaining XAI
      • Buy Sentry Key
    • Chapter 04: Xai Staking Pools
    • Chapter 05: Unicorn Bingo
    • Chapter 06: Bridging
    • Chapter 08: Build on Xai
      • Thirdweb: Creator Portal Walkthrough
      • Sequence: Xai Builder Walkthrough
    • Chapter 09: Camelot
    • Chapter 10: Crypto Unicorns
    • Chapter 11: Tarochi
    • Chapter 12 - My Angry Yakuza Girlfriend
    • Chapter 13 - Rainbow Rumble
    • Chapter 14 - The Lost Glitches
  • Xai Vanguard: Previous Seasons
    • XAI Token Claim
      • Claim Details
  • Play Games on Xai
    • Connect your wallet to Xai
    • Xai Games Catalog
    • Final Form
      • Card Sets
      • Card System
      • Where to Get Cards
      • ❔FAQ
Powered by GitBook
On this page
  • Mint with ETH
  • Mint with USDC
  • Mint with XAI/esXAI
  • 1. Get the Price
  • 2. Approve the NodeLicense Contract as a Spender
  • 3. Mint Your Keys
  1. About Xai
  2. Sentry Key Purchase & Setup
  3. Step 1: Purchase a Sentry Key

Option 4: Buy Sentry Key via Node License Contract on Arbiscan

PreviousHow to view the price of a Key via the CLINextStep 2: Download & Run the Xai Sentry Node

Last updated 4 months ago

Mint with ETH

  1. Go to the Node License contract on Arbiscan:

  1. Scroll down to the "24. price" function at the bottom of the page.

  2. Enter the number of Keys you want to purchase in "amount" and your promo code in "_promoCode" (Note: if you do not have a promo code you can put any string e.g. "na") to get the price.

  3. Click on the number next to uint256. In this example, the value 16459353290000000.

  4. Connect your Web3 wallet.

    1. Paste in the value from Step 6 into the "mint" field

  5. Enter the quantity of Keys you would like to purchase in the "_amount (uint256)" field. Use the same amount you entered in Step 3.

  6. Enter in your Promo Code in the "_promoCode" field". Note: if you do not have a promo code you can put any string i.e. "na"

  7. Click Write.

  8. Approve the transaction in your wallet.

Mint with USDC

You can input a slightly higher amount to cover any slight price changes between steps. Any excess funds will be refunded

  1. Go to the Node License contract on Arbiscan:

  1. Use the "24. price" function at the bottom of the page.

  2. Enter the number of Keys you want to purchase in "amount" and your promo code in "_promoCode" (Note: if you do not have a promo code you can put any string e.g. "na") to get the price.

  3. Click on the number next to uint256. In this example, the value 16459353290000000.

  4. Get the latest quote for ETH / USD

    1. Use latestAnswer to get the current ETH / USD value (Note this is with 8 decimals)

    2. Calculate latestAnswer x price (from step 4)

  5. Connect your Web3 wallet.

    1. Paste in the value from Step 7 (c) into the "_expectedCostUSDC" field.

  6. Enter the quantity of Keys you would like to purchase in the "_amount (uint256)" field. Use the same amount you entered in Step 3.

  7. Enter in your Promo Code in the "_promoCode" field". Note: if you do not have a promo code you can put any string in

  8. Enter in the wallet that will own the key in the "_to" field".

  9. Click Write.

  10. Approve the transaction in your wallet.

Mint with XAI/esXAI

You can input a slightly higher amount to cover any slight price changes between steps. Any excess funds will be refunded

1. Get the Price

  1. Go to the Node License contract on Arbiscan:

  1. Scroll down to the "24. price" function at the bottom of the page.

  2. Enter the number of Keys you want to purchase in "amount" and your promo code in "_promoCode" (Note: if you do not have a promo code you can put "na") to get the price.

  3. At this point, you have the total XAI/esXAI amount required to mint your keys.

2. Approve the NodeLicense Contract as a Spender

You need to allow the NodeLicense contract to spend your XAI or esXAI tokens before minting. You can do this either directly from the key sale page (if available) or via Arbiscan.

Approving XAI

2. Connect your wallet.

- amount: The XAI amount you got from Step 1.

4. Submit the transaction to approve spending.

Approving esXAI

2. Connect your wallet.

- amount: The esXAI amount you got from Step 1.

4. Submit the transaction to approve spending.

3. Mint Your Keys

  1. Connect your Web3 wallet.

  2. Paste in the value from Step 9 into the "_expectedCost" field.

  3. Enter the quantity of Keys you would like to purchase in the "_amount (uint256)" field. Use the same amount you entered in Step 3.

  4. Enter in your Promo Code in the "_promoCode" field". Note: if you do not have a promo code you can put any string in

  5. Enter in the wallet that will own the key in the "_to" field"

  6. Choose if you are using EsXai or Xai for the purchase set _useEsXai as either true or false

    1. true if you're using esXAI for payment

    2. false if you're using XAI

  7. Click Write.

  8. Approve the transaction in your wallet.

  9. You've now successfully minted your keys using XAI/esXAI.

Find the ETH(1) row. In the screenshot, the value 0.01645935329

Click on the Copy value button

Go back to the Node License contract on Arbiscan:

Call the mint function

Find the ETH(1) row. In the screenshot, the value 0.01645935329

Click on the Copy value button

The NodeLicense will use the price oracle at

Go back to the Node License contract on Arbiscan:

Call mintToWithUSDC -

Click on the number next to uint256. In this example, the value .

Find the ETH(1) row. In the screenshot, the value 0.01645935329

Click on the Copy value button

Input into the function 10. ethToXai the value you got from Step 5, in this example:

Find the ETH(1) row. In the screenshot, the value 215.942123600761418936

Click on the Copy value button

1. Go to the XAI contract Write Proxy page:

3. Find the 1. approve function.

- spender: (NodeLicense address)

1. Go to the esXAI contract **Write Proxy** page:

3. Find the 2. approve function.

- spender: (NodeLicense address)

Go back to the Node License contract on Arbiscan:

Find the mintWithXAI function -

https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F8
https://arbiscan.io/address/0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612#readContract#F8
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F10
16459353290000000
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F10
https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract
https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract#F1
0xbc14d8563b248B79689ECbc43bBa53290e0b6b66
https://arbiscan.io/address/0x4C749d097832DE2FEcc989ce18fDc5f1BD76700c#writeProxyContract
https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract#F1
0xbc14d8563b248B79689ECbc43bBa53290e0b6b66
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F13
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F24arbiscan.io
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F24arbiscan.io
https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F24arbiscan.io