I can deploy a simple contract without any input by using JSON-RPC, like:

curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"sender's address","code":"compiled contract"}],"id":67}' localhost:8545 

However, I have no idea how to deploy other contracts which has inputs. Could you please show me a demo how to deploy a contract which has inputs by using JSON-RPC? Thanks a lot.

  • Did you mean constructor? – eth Dec 22 '16 at 3:29