Timeline for Sending tokens getting error
Current License: CC BY-SA 3.0
24 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 4, 2016 at 7:57 | comment | added | Omry Rozenfeld | by reset i mean i restarted my computer and the terminal :), and thanks for the advice about the token standard! the contract i was trying was just me trying to do some basic things over the ethereum but its good to know there are conventions of how to deploy tokens | |
Sep 2, 2016 at 21:59 | comment | added | o0ragman0o |
You might also want to consider implementing the ERC20 standard so your token can be accessible to the Mist wallet. The functionality of what you've called send is called transfer in ERC20. Calling it send is a bit confusing given that send is already a standard function to send ether and not transfer tokens.
|
|
Sep 1, 2016 at 16:54 | comment | added | Xavier Leprêtre B9lab | Cheers. Maybe you can paste the reset command here. Was it the shell's reset? | |
Sep 1, 2016 at 16:03 | comment | added | Omry Rozenfeld | ok it worked ! thank you so much this was the answer i just had to reset the terminal, thanks for sticking with me man i appericiate it alot | |
Sep 1, 2016 at 16:02 | vote | accept | Omry Rozenfeld | ||
Sep 1, 2016 at 15:57 | comment | added | Omry Rozenfeld | i reset my terminal and now i did eth.getCode("0x97ca476528AB7548B25f6cA8fe6418664F9610b2") and got a response with a long 0x address | |
Sep 1, 2016 at 15:55 | comment | added | Omry Rozenfeld | i get 0x now like you said i should on the other 1 | |
Sep 1, 2016 at 15:54 | comment | added | Xavier Leprêtre B9lab |
How about eth.getCode("0xed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d") ?
|
|
Sep 1, 2016 at 15:42 | comment | added | Omry Rozenfeld | i get invalid too now when i use the address | |
Sep 1, 2016 at 15:40 | comment | added | Xavier Leprêtre B9lab |
Take the address of your contract: myContractInstance.address . And then do eth.getCode(theAddress) . Do you get 0x or something bigger?
|
|
Sep 1, 2016 at 15:36 | comment | added | Omry Rozenfeld | the first one says "invalid address" again and the second one works and shows me 971891495430357219404 | |
Sep 1, 2016 at 15:33 | comment | added | Xavier Leprêtre B9lab |
How about myContractInstance.balances("0xed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d") and eth.getBalance("0xed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d") ?
|
|
Sep 1, 2016 at 15:22 | comment | added | Omry Rozenfeld | > myContractInstance.send("0x8b7cb5f2311f37f8ffd3501e8353cf69f290bf8f",100,{ from: '0xed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d'}); | |
Sep 1, 2016 at 15:20 | comment | added | Xavier Leprêtre B9lab | Can you paste the whole command? | |
Sep 1, 2016 at 15:12 | comment | added | Omry Rozenfeld | ye i replaced it to my token because i created it | |
Sep 1, 2016 at 15:11 | comment | added | Xavier Leprêtre B9lab |
In { from: tokenOwner } , you need to replace tokenOwner with the proper address of the token owner, and which you have in your node.
|
|
Sep 1, 2016 at 15:04 | comment | added | Omry Rozenfeld | now it says "invalid address" but atleast its different! :) | |
Sep 1, 2016 at 14:27 | comment | added | Xavier Leprêtre B9lab | That's right. See if it works first. | |
Sep 1, 2016 at 14:19 | review | Low quality posts | |||
Sep 1, 2016 at 16:06 | |||||
Sep 1, 2016 at 14:10 | comment | added | Omry Rozenfeld | ah i see, so everything thats optional i dont have to send really am i right? | |
Sep 1, 2016 at 14:08 | history | edited | Xavier Leprêtre B9lab | CC BY-SA 3.0 |
added 14 characters in body
|
Sep 1, 2016 at 14:08 | comment | added | Xavier Leprêtre B9lab |
This github.com/ethereum/wiki/wiki/JavaScript-API#parameters-24 transaction object. Minus data: String , which is populated with .send( "0xed7a39b8cd4c217f99af29b5e5d7cbfd3c53030d", 100) .
|
|
Sep 1, 2016 at 14:05 | comment | added | Omry Rozenfeld | what do you mean by "Rest of the transaction elements."? | |
Sep 1, 2016 at 14:02 | history | answered | Xavier Leprêtre B9lab | CC BY-SA 3.0 |