Getting "Intrinsic gas too low" trying to create a contract

motoaddictmotoaddict Fort Myers, FloridaPosts: 52Member
I'm using python to interact with geth using JSON. When I try to deploy my contract (the simple "multiply" example) I'm getting a message "Intrinsic gas too low". Not sure how to fix this. I'm executing eth_sendTransaction() with the following params:

{'data': u'0x6060604052606d8060116000396000f30060606040526000357c010000000000000000000000000000000000000000000000000000000090048063c6888fa1146037576035565b005b6046600480359060200150605c565b6040518082815260200191505060405180910390f35b60006007820290506068565b91905056', u'from': u'0xbe0de7be0eacc23d728f5255b13668b5b074e678', u'gas': u'21000'}

I'm running a private client and my gas balance is:
> eth.getBalance(eth.coinbase)
'295000000000000000000'




Best Answer

Answers

  • motoaddictmotoaddict Fort Myers, FloridaPosts: 52Member
    Here's the JSON that's sent to geth:
    {"method": "eth_sendTransaction", "jsonrpc": "2.0", "params": [{"gas": "21000", "from": "0xbe0de7be0eacc23d728f5255b13668b5b074e678", "data": "0x6060604052606d8060116000396000f30060606040526000357c010000000000000000000000000000000000000000000000000000000090048063c6888fa1146037576035565b005b6046600480359060200150605c565b6040518082815260200191505060405180910390f35b60006007820290506068565b91905056"}]}
  • motoaddictmotoaddict Fort Myers, FloridaPosts: 52Member
    Guess that's all it was. Thanks.
Sign In or Register to comment.