There is no way to actually know if the parameters you put in are enough for the miner until you actually submit it to the node! And sometimes it is accepted and not actually mined.
See the fixed BigInt values in api_test.go for ContractCreate/ContractCall Txs. Somehow, setting GasLimit to 1e5 instead of 1e9 makes the contract call tx work?!!
There is no way to actually know if the parameters you put in are enough for the miner until you actually submit it to the node! And sometimes it is accepted and not actually mined.
See the fixed BigInt values in api_test.go for ContractCreate/ContractCall Txs. Somehow, setting GasLimit to 1e5 instead of 1e9 makes the contract call tx work?!!