You may want to check out https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABIthe ABI specification . Source http://stackoverflow.com/questions/35076404/send-transactions-to-ethereum-contracts-via-json-rpc-api , which specifies how call and return arguments are encoded.