Я пытаюсь взаимодействовать с расширенным контрактом через командную строку, запуская скрипт, но после запуска процесс останавливается.
const Web3 = require('web3');
const Tx = require('ethereumjs-tx');
const provider = new Web3.providers.HttpProvider("http://146.185.128.50:8541");
const web3 = new Web3(provider);
console.log("Parity server", web3.version.api);
const pkey = 'privatekey';
const account = web3.eth.accounts.privateKeyToAccount('0x' + pkey);
console.log("Account:", account.address);
web3.eth.getBalance(account.address).
then(r => console.log("Balance:", web3.utils.fromWei(r), "ETH"));
console.log("Set account as default:", account.address);
web3.eth.accounts.wallet.add(account);
web3.eth.defaultAccount = account.address;
var abi = [{ABI contract...}];
var myContract = new web3.eth.Contract(abi, 'Contract address...');
myContract
.methods
.submitTransaction("Contract address...", 2, '0x7065cb480000000000000000000000000053583ecb7fceba61be60629c4b7c2490748d65')
.send({from : account.address,
gas: 800000,
gasPrice: '0x09184e72a000'
})
С этим кодом ничего не происходит.Подскажите, пожалуйста, как мне правильно сделать скрипт?