Getting an empty value (0x) calling eth_getCode after deploying contract via RPC

I'm trying to deploy a contract on a private blockchain using geth with RPC.

I deploy the following:

{"jsonrpc":"2.0","method":"eth_sendTransaction", "params":[{"from":"0x3ce10c3273b83981ad81467dbd39af525405ea54", "data":"0x0x6060604052603b8060106000396000f3606060405260e060020a600035046360fe47b1811460245780636d4ce63c14602e575b005b6004356000556022565b6000546060908152602090f3","gas":"0x8301[a8","gasPrice":"0x9184e72a000"}], "id":3}

And upon calling eth_getTransactionReceipt, I get:

{"id":4,"jsonrpc":"2.0","result":{"transactionHash":"0xc3aac23af322e659437e5c50df30ef96aae96af8a79c292b0b7bb7925fd5109f","transactionIndex":"0x0","blockNumber":"0x3e4","blockHash":"0x84b4fda3c73eb18b58f054a744219b60d9721440eff75ba6bdfdca778795051d","cumulativeGasUsed":"0x5208","gasUsed":"0x5208","contractAddress":"0x3e0418c69d01c39473ffccf8b85f7ff88b7639be","logs":[]}}

So I call eth_getCode:

{"jsonrpc":"2.0", "method":"eth_getCode", "params":["0x3e0418c69d01c39473ffccf8b85f7ff88b7639be", "0x3e4"], "id":5}

... and I get 0x.

I tried raising the gas amount past the default, but it seems like if getTransactionReceipt returns a non-zero amount of gas, it should have deployed... right? I am very confused and any help would be appreciated.

Comments

Sign In or Register to comment.