Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to buy and sell tanks manually using MyEtherWallet (MEW):
- Setup:
- 1) Go to MEW's contracts section: https://www.myetherwallet.com/#contracts
- 2) Copy EtherTank's contract address and ABI info from EtherScan at https://etherscan.io/address/0x336db6c1ead9cc4d5b0a33ac03c057e20640126a#code
- 3) You can now directly call the buy and sell functions through MEW
- Buy someone's tank:
- 1) Select "bid" and enter the Tank ID number the seller listed
- 2) Click "WRITE"
- 2) Enter the amount of ETH you are buying the tank for (i.e. 0.65 ETH)
- *if you enter more ETH than needed, the extra will be credited to you on EtherTanks, which you can cash out
- 3) Enter 500000 for the gas limit
- 4) Click generate transaction
- To verify the price of someone's tank before you buy (no transaction fee):
- 1) Select "getCurrentPriceAuction" and enter the Tank ID number the seller listed
- 2) Click "READ"
- 3) The number displayed is the current price of the tank in WEI (shift 18 decimal places to get ETH)
- To sell your tank:
- 1) Select "sellTank"
- 2) Find the Tank ID number of the tank you want to sell:
- a) Find the transaction you bought your tank with on EtherScan
- b) Click on "Event Logs"
- c) Your tank ID will be the SECOND "HEX" line
- d) Convert the HEX value to decimal (https://www.binaryhexconverter.com/hex-to-decimal-converter)
- 3) Enter the starting sale price in WEI (IMPORTANT - shift 18 decimal places to get ETH)
- 4) Enter the ending sale price in WEI
- 5) Enter the amount of time in SECONDS you want your tank to be on sale
- 5) Enter 300000 for the gas limit
- 6) Click generate transaction
- 7) Give your Tank ID number to the buyer
- Notes:
- These transactions all use EtherTank's official smart contract, and should be the exact same functions that their official marketplace will use once it is launched. There is a 3% "auction fee" built into the smart contract, where the seller will receive 3% less than the actual selling price.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement