then I send transaction with from myaccount address to contract instance address with the data above

Bung

@bung87

and the contract instance contains 20 wei,and the price for sell is 1,10 tokens just costs 10 wei

Steve

@swatarianess

and when you do that you get an invalid address error?

Where did you deploy the contract? Testnet ?

Bung

@bung87

no , invalid address just occurs when I call ins.sell(10),

transaction result like other transaction returns,I deploy it on private network

N-B-V

@N-B-V

Hi there, how can i connect a UI to my crowdsale contract that will display all the relevant info of my crowdsale to a user going to my site? ie. number of tokens available, token price, amount raised, ect... i cannot find a guide on how to do it anywhere.

N-B-V

@N-B-V

So after asking my question if figured it out :) --- etherscan.io sees all public tokens and have API's to interact with them. just incase anyone was wondering.