Uploading a Citizen Through the Contract: Difference between revisions

From Neo Tokyo Citizen Wiki
(Created page with "You can upload using the Citizen contract: 0xb668beB1Fa440F6cF2Da0399f8C28caB993Bdd65 Use function #4. createCitizen. You need to fill in every parameter. So if you don't h...")
 
No edit summary
Line 1: Line 1:
You can upload using the Citizen contract: 0xb668beB1Fa440F6cF2Da0399f8C28caB993Bdd65
If Web3 functionality of the [https://neotokyo.codes official website] is unreachable or disabled,
a [[Citizen]] can be created interacting with the Citizen contract and all the component contracts on [https://etherscan.io/ Etherscan].
 
== Using Etherscan and contracts to upload ==
This process requires the user to write information to several contracts with ethereum transactions using the wallet containing the correct Neo Tokyo component NFTs.
 
=== Requirements ===
Creating a Citizen requires:
* Enough ETH for multiple, large gas fees (0.2+ to ensure that you can complete the process)
* These component NFTs must be in the ethereum wallet you are connecting to Etherscan:
** An [[Identity]] or a [[Bought Identity]]
** [[Item Cache]]
** [[Land Deed]] NFT
** (Optional) a [[Vault]] can be used to increase the [[$BYTE]] yield of the resulting Citizen.
 
'''Note:''' You can reduce costs by uploading a Citizen when gas fees are low.
 
[[File:S1_Info.jpg|800px|thumb|left]]
<br clear=all>
 
=== Etherscan Instructions ===
{| class="wikitable"
|-
! Contract !! Etherscan URL
|-
| Citizen Contract || https://etherscan.io/address/0xb668beb1fa440f6cf2da0399f8c28cab993bdd65
|-
| [[ID]] or [[Bought ID]] (you only need one of the Identity contracts, depending on your ID) || [https://etherscan.io/address/0x86357a19e5537a8fba9a004e555713bc943a66c0#writeContract ID: https://etherscan.io/address/0x86357a19e5537a8fba9a004e555713bc943a66c0#writeContract]<br />--<br />[https://etherscan.io/address/0x835a60cc60b808e47825daa79a9da6c9ff3a892e#writeContract Bought ID: https://etherscan.io/address/0x835a60cc60b808e47825daa79a9da6c9ff3a892e#writeContract]
|-
| [[Items Cache]] || https://etherscan.io/address/0x0938e3f7ac6d7f674fed551c93f363109bda3af9#writeContract
|-
| [[Land Deed]] || https://etherscan.io/address/0x3c54b798b3aad4f6089533af3bdbd6ce233019bb#writeContract
|-
| [[Vault]] (optional) || https://etherscan.io/address/0xab0b0dd7e4eab0f9e31a539074a03f1c1be80879#writeContract
|}
 
# Open each contract in a browser tab.


Use function #4. createCitizen.  
Use function #4. createCitizen.  
Line 9: Line 45:
To approve you need to go into each contract and call "setApprovalForAll".
To approve you need to go into each contract and call "setApprovalForAll".
Pass in the citizen contract (0xb668beB1Fa440F6cF2Da0399f8C28caB993Bdd65) as the operator, and 1 for approved
Pass in the citizen contract (0xb668beB1Fa440F6cF2Da0399f8C28caB993Bdd65) as the operator, and 1 for approved
Bought Identities: https://etherscan.io/address/0x835a60cc60b808e47825daa79a9da6c9ff3a892e#writeContract
Original Identities (you only need one of the identity contracts approved depending on your id): https://etherscan.io/address/0x86357a19e5537a8fba9a004e555713bc943a66c0#writeContract
Items: https://etherscan.io/address/0x0938e3f7ac6d7f674fed551c93f363109bda3af9#writeContract
Land: https://etherscan.io/address/0x3c54b798b3aad4f6089533af3bdbd6ce233019bb#writeContract
Vault (optional): https://etherscan.io/address/0xab0b0dd7e4eab0f9e31a539074a03f1c1be80879#writeContract

Revision as of 09:32, 21 September 2022

If Web3 functionality of the official website is unreachable or disabled, a Citizen can be created interacting with the Citizen contract and all the component contracts on Etherscan.

Using Etherscan and contracts to upload

This process requires the user to write information to several contracts with ethereum transactions using the wallet containing the correct Neo Tokyo component NFTs.

Requirements

Creating a Citizen requires:

  • Enough ETH for multiple, large gas fees (0.2+ to ensure that you can complete the process)
  • These component NFTs must be in the ethereum wallet you are connecting to Etherscan:

Note: You can reduce costs by uploading a Citizen when gas fees are low.

S1 Info.jpg


Etherscan Instructions

Contract Etherscan URL
Citizen Contract https://etherscan.io/address/0xb668beb1fa440f6cf2da0399f8c28cab993bdd65
ID or Bought ID (you only need one of the Identity contracts, depending on your ID) ID: https://etherscan.io/address/0x86357a19e5537a8fba9a004e555713bc943a66c0#writeContract
--
Bought ID: https://etherscan.io/address/0x835a60cc60b808e47825daa79a9da6c9ff3a892e#writeContract
Items Cache https://etherscan.io/address/0x0938e3f7ac6d7f674fed551c93f363109bda3af9#writeContract
Land Deed https://etherscan.io/address/0x3c54b798b3aad4f6089533af3bdbd6ce233019bb#writeContract
Vault (optional) https://etherscan.io/address/0xab0b0dd7e4eab0f9e31a539074a03f1c1be80879#writeContract
  1. Open each contract in a browser tab.

Use function #4. createCitizen.

You need to fill in every parameter. So if you don't have a vault, put 0. Put 0 for gender too until females are released. And if you don't want a message put "".

If you're getting an error, make sure you've approved all of the token's contracts. You’ll need to do this before uploading:

To approve you need to go into each contract and call "setApprovalForAll". Pass in the citizen contract (0xb668beB1Fa440F6cF2Da0399f8C28caB993Bdd65) as the operator, and 1 for approved