Option 4: Buy Sentry Key via Node License Contract on Arbiscan
Last updated
Last updated
Go to the Node License contract on Arbiscan:
Scroll down to the "24. price" function at the bottom of the page.
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.
Click on the number next to uint256. In this example, the value 16459353290000000.
Go back to the Node License contract on Arbiscan: https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract
Connect your Web3 wallet.
Call the mint function https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F8
Paste in the value from Step 6 into the "mint" field
Enter the quantity of Keys you would like to purchase in the "_amount (uint256)" field. Use the same amount you entered in Step 3.
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"
Click Write.
Approve the transaction in your wallet.
You can input a slightly higher amount to cover any slight price changes between steps. Any excess funds will be refunded
Go to the Node License contract on Arbiscan:
Use the "24. price" function at the bottom of the page.
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.
Click on the number next to uint256. In this example, the value 16459353290000000.
Get the latest quote for ETH / USD
The NodeLicense will use the price oracle at https://arbiscan.io/address/0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612#readContract#F8
Use latestAnswer
to get the current ETH / USD value (Note this is with 8 decimals)
Calculate latestAnswer
x price
(from step 4)
Go back to the Node License contract on Arbiscan: https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract
Connect your Web3 wallet.
Call mintToWithUSDC - https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F10
Paste in the value from Step 7 (c) into the "_expectedCostUSDC" field.
Enter the quantity of Keys you would like to purchase in the "_amount (uint256)" field. Use the same amount you entered in Step 3.
Enter in your Promo Code in the "_promoCode" field". Note: if you do not have a promo code you can put any string in
Enter in the wallet that will own the key in the "_to" field".
Click Write.
Approve the transaction in your wallet.
You can input a slightly higher amount to cover any slight price changes between steps. Any excess funds will be refunded
Go to the Node License contract on Arbiscan:
Scroll down to the "24. price" function at the bottom of the page.
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.
Click on the number next to uint256. In this example, the value 16459353290000000.
Input into the function 10. ethToXai
the value you got from Step 5, in this example: https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#readProxyContract#F10
At this point, you have the total XAI/esXAI amount required to mint your keys.
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.
1. Go to the XAI contract Write Proxy
page: https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract
2. Connect your wallet.
3. Find the 1. approve
function. https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract#F1
- spender
: 0xbc14d8563b248B79689ECbc43bBa53290e0b6b66
(NodeLicense address)
- amount
: The XAI amount you got from Step 1.
4. Submit the transaction to approve spending.
1. Go to the esXAI contract **Write Proxy** page: https://arbiscan.io/address/0x4C749d097832DE2FEcc989ce18fDc5f1BD76700c#writeProxyContract
2. Connect your wallet.
3. Find the 2. approve
function. https://arbiscan.io/address/0x4Cb9a7AE498CEDcBb5EAe9f25736aE7d428C9D66#writeProxyContract#F1
- spender
: 0xbc14d8563b248B79689ECbc43bBa53290e0b6b66
(NodeLicense address)
- amount
: The esXAI amount you got from Step 1.
4. Submit the transaction to approve spending.
Go back to the Node License contract on Arbiscan: https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract
Connect your Web3 wallet.
Find the mintWithXAI
function - https://arbiscan.io/address/0xbc14d8563b248B79689ECbc43bBa53290e0b6b66#writeProxyContract#F13
Paste in the value from Step 9 into the "_expectedCost" field.
Enter the quantity of Keys you would like to purchase in the "_amount (uint256)" field. Use the same amount you entered in Step 3.
Enter in your Promo Code in the "_promoCode" field". Note: if you do not have a promo code you can put any string in
Enter in the wallet that will own the key in the "_to" field"
Choose if you are using EsXai or Xai for the purchase set _useEsXai as either true
or false
true
if you're using esXAI for payment
false
if you're using XAI
Click Write.
Approve the transaction in your wallet.
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
Find the ETH(1) row. In the screenshot, the value 0.01645935329
Click on the Copy value button
Find the ETH(1) row. In the screenshot, the value 0.01645935329
Click on the Copy value button
Find the ETH(1) row. In the screenshot, the value 215.942123600761418936
Click on the Copy value button