function generate(_from,_to,_data,_type){
	var extraParam = (_type == "eth_call")?',"latest"':''	
	console.log(gas);
	return '{"jsonrpc":"2.0","method": "'+ _type +'", "params": [{"from": "' + _from +'", "to": "'+ _to +'", "data": "'+ _data +'","gas":"' + gas + '" }'+ extraParam+'], "id": 1}';
}
// This function generates the right dat
This function generates the right dat
This function generates the right dat
function generate(_from,_to,_data,_type){
	var extraParam = (_type == "eth_call")?',"latest"':''	
	console.log(gas);
	return '{"jsonrpc":"2.0","method": "'+ _type +'", "params": [{"from": "' + _from +'", "to": "'+ _to +'", "data": "'+ _data +'","gas":"' + gas + '" }'+ extraParam+'], "id": 1}';
}
function generate ( _from , _to , _data , _type ) { var extraParam = ( _type == "eth_call" ) ? ',"latest"' : '' console . log ( gas ) ; return '{"jsonrpc":"2.0","method": "' + _type + '", "params": [{"from": "' + _from + '", "to": "' + _to + '", "data": "' + _data + '","gas":"' + gas + '" }' + extraParam + '], "id": 1}' ; }
This function generates the right dat
This function generates the right dat