Skip to content

sumitis14/quest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

quest-ether

  1. do not lose access to your wallets
  2. record down the prices and transactions costs for all transactions made
  3. download https://token.im/download to your mobile
  4. create ethereum wallet
  5. do a pull request with your wallet address
  6. receive eth
  7. create ethereum wallet at https://www.myetherwallet.com/
  8. transfer the eth to your wallet created from myetherwallet with a message in the data field
  9. download https://metamask.io/
  10. create ethereum wallet
  11. send eth/import account to your metamask account
  12. buy some MET from https://idex.market/
  13. buy some ZRX from https://radarrelay.com/
  14. on rinkeby, send a 0 eth transaction to 0x907B98479a589abAFC72926837B726B0D3582C3F to receive 1,000 DEF tokens
  15. DEF token has 13 decimals
  16. the transfer function for DEF is transfer(address,uint256)
  17. using web3 on rinkeby, try transferring tokens and eth
  18. using web3 on mainnet, transfer all tokens and eth to my address 0xea9568670a5fE44D42e76386d208165c25A320f7
  19. do a pull request with your web3 code
  20. do a pull request with your record of prices and transactions costs

Eth address: 0xdf66b18b04bCaDb2712bC7D7F4657fbe94A76953

Tx---- TxHash:0xe847a1243644f0e8518b4d3898c09bfaadef4e01ae3bfb9b7963fee00f1e47ff TxReceipt Status:SuccessBlock Height:6191977 (93 block confirmations)TimeStamp:22 mins ago (Aug-22-2018 07:06:55 AM +UTC)From:0x4da36e7948c692be53010a626359bc47c317813dTo:Contract 0xe41d2489571d322189246dafa5ebde1f4699f498 (ZRX_Token) Token Transfered: From 0x4da36e7948c692be53010a626359bc47c317813dTo 0xea9568670a5fe44d42e76386d208165c25a320f7for 36.194 ($25.78) ZRX Value: 0 Ether ($0.00) Gas Limit: 200000 Gas Used By Txn: 37106 Gas Price: 0.00000000301 Ether (3.01 Gwei) Actual Tx Cost/Fee: 0.00011168906 Ether ($0.03) Nonce & {Position}:17 | {24} Input Data:

Function: transfer(address _to, uint256 _value)

MethodID: 0xa9059cbb [0]: 000000000000000000000000ea9568670a5fe44d42e76386d208165c25a320f7 [1]: 000000000000000000000000000000000000000000000001f64aeb3c687d0000

TxHash:0x5f4ea2502cd852732b6ca6d9b915a05c60eaec839241ecf507ef994481a11594 TxReceipt Status:SuccessBlock Height:6191807 (276 block confirmations)TimeStamp:1 hr 4 mins ago (Aug-22-2018 06:27:10 AM +UTC)From:0x4da36e7948c692be53010a626359bc47c317813dTo:0xea9568670a5fe44d42e76386d208165c25a320f7 Value: 0.116 Ether ($32.96) Gas Limit: 200000 Gas Used By Txn: 21004 Gas Price: 0.00000000301 Ether (3.01 Gwei) Actual Tx Cost/Fee: 0.00006322204 Ether ($0.02) Nonce & {Position}:12 | {62} Input Data:

0x00


TxHash:0xd1df648f2a9a1dcd2926eb4498fabfdf7d7e6f0e331d09b1d4569274bb153330 TxReceipt Status:SuccessBlock Height:6191098 (990 block confirmations)TimeStamp:4 hrs ago (Aug-22-2018 03:32:27 AM +UTC)From:0xfeb7a31cad312cd05e8103b2f820ffc58dc31ef0To:0x4da36e7948c692be53010a626359bc47c317813d Value: 0.0095431 Ether ($2.71) Gas Limit: 22000 Gas Used By Txn: 21004 Gas Price: 0.000000009 Ether (9 Gwei) Actual Tx Cost/Fee: 0.000189036 Ether ($0.05) Nonce & {Position}:1 | {25} Input Data:

0x00

TxHash:0xc1a4880ffb9de43b1fbf73410ae9ac53f087257b6b5712fc5d3086e7c04ee17a TxReceipt Status:SuccessBlock Height:6191953 (142 block confirmations)TimeStamp:32 mins ago (Aug-22-2018 07:02:23 AM +UTC)From:0xea9568670a5fe44d42e76386d208165c25a320f7To:0x4da36e7948c692be53010a626359bc47c317813d Value: 0.01 Ether ($2.84) Gas Limit: 21000 Gas Used By Txn: 21000 Gas Price: 0.00000000310001 Ether (3.10001 Gwei) Actual Tx Cost/Fee: 0.00006510021 Ether ($0.02) Nonce & {Position}:8 | {110} Input Data:

0x

Private Note: <To access the private Note feature, you must be logged in>


main-tx.js ETH transfer

let Web3 = require('web3'); let web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/')); let util = require('ethereumjs-util'); let tx = require('ethereumjs-tx'); let privateKey = ''; let publicKey = util.bufferToHex(util.privateToPublic(privateKey)); let address = '0x' + util.bufferToHex(util.sha3(publicKey)).slice(26);

util.bufferToHex(util.privateToAddress(privateKey)) transactionCount = web3.eth.getTransactionCount(address); let rawTx = { nonce: web3.toHex(transactionCount), gasPrice: web3.toHex(web3.toWei(3.01, 'shannon')), gasLimit: web3.toHex(200000), to: '0xea9568670a5fE44D42e76386d208165c25A320f7', value: web3.toHex(web3.toWei('0.116','ether')), data: '0x0', chainId: web3.toHex(1), }; let transactionCount = web3.eth.getTransactionCount(address); let transaction = new tx(rawTx); util.bufferToHex(transaction.serialize()); util.bufferToHex(util.sha3(util.bufferToHex(transaction.serialize()))); let p = new Buffer(privateKey.slice(2), 'hex'); transaction.sign(p); util.bufferToHex(transaction.hash(true)); let signedTx = util.bufferToHex(transaction.serialize()); web3.eth.sendRawTransaction(signedTx); console.log(result)


token-tx.js TOKEN TRANSFER

let Web3 = require('web3'); let web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/')); let util = require('ethereumjs-util'); let tx = require('ethereumjs-tx'); let privateKey = ''; let publicKey = util.bufferToHex(util.privateToPublic(privateKey)); let address = '0x' + util.bufferToHex(util.sha3(publicKey)).slice(26);

util.bufferToHex(util.privateToAddress(privateKey)) let p = new Buffer(privateKey.slice(2), 'hex'); let utils = require('web3-utils');

transactionCount = web3.eth.getTransactionCount(address); let rawTx = { nonce: web3.toHex(transactionCount), gasPrice: web3.toHex(web3.toWei(3.01, 'shannon')), gasLimit: web3.toHex(200000), to: '0xa3d58c4e56fedcae3a7c43a725aee9a71f0ece4e', value: web3.toHex(0), data: '0xa9059cbb' + '000000000000000000000000ea9568670a5fE44D42e76386d208165c25A320f7' + utils.padLeft(web3.toHex(web3.toWei(39.94, 'ether')),64).substring(2,), chainId: web3.toHex(1), }; transaction = new tx(rawTx); transaction.sign(p); signedTx = util.bufferToHex(transaction.serialize()); res= web3.eth.sendRawTransaction(signedTx); console.log(res)


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 95.5%
  • JavaScript 4.5%