An erc20 token has been smart contracted in MyEtherWallet(Ropsten) and verified & published in etherscan.io. I want to list this token in an exchange I've built. Can I do it by installing a private blockchain(geth) in my exchange server and able to do rpc calls like it's done for ETH? If it is not possible, what are the other options?


Yes you need to setup a local Geth instance and start it in testnet non-mining mode as described in Ropsten docs.

Wait for it to sync, then you'll be able to access it via RPC (WS-RPC is needed to be able to subscribe to new events, HTTP-RPC can be used for listing past events).

Then you can subscribe to and list the Transfer events of your contact using the ERC20 ABI.

  • Thank you Rusty. Could you elaborate why http-rpc won't work? – krk Jul 16 '18 at 17:31
  • Can I do real-time trades on testnet instance? – krk Jul 16 '18 at 17:47
  • 1
    Http-rpc is request-reply, for asynchronous events you need websocket protocol. You can do trades using your local instance, provided you use a funded account and specify some gas amount. Only funded transactions get propagated through the network, also in a testnet. – rustyx Jul 16 '18 at 17:52
  • I read that testnets are for only testing purpose. Does a testnet become mainnet if we apply gas price for it? If that is true, is it applicable for only erc20-tokens? – krk Jul 17 '18 at 6:10
  • 1
    A testnet is like a mainnet except its ether is worthless. Instead of mining testnet ether, the testnet gives it out for free to anyone interested. The main principle of paying for gas though is still the same. A testnet never becomes mainnet. – rustyx Jul 17 '18 at 6:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.