0

I'm facing issue with private chain, when I run the node, it shows the logs as below, and transaction went in pending status.

enter image description here

Folder structure

enter image description here

All the wallet file reside into keystore folder.

Node.sh file

GLOBAL_ARGS="--nodiscover --gasprice 0 --targetgaslimit 470000000000 --rpc --rpcaddr 0.0.0.0 --rpcapi admin,db,eth,debug,net,shh,txpool,personal,web3 --mine --minerthreads 1"
echo "Starting node 1.....!"

nohup /usr/bin/geth --port 30304 --datadir=/node1 $GLOBAL_ARGS --rpcport 8545 --rpccorsdomain "*" --allow-insecure-unlock --unlock "address" --password password.txt &

Geth Version: 1.9.14-stable

Edit-1 Here is the code I'm using to send transactions.

const newAccount =  await provider.web3.personal.newAccount(request.wallet_password);        
if (newAccount != null) {

    await provider.web3.eth.sendTransaction({
        from: provider.web3.eth.coinbase,
        to: newAccount,
        value: provider.web3.toWei(1, "ether")
    });
} 
4
  • How was the account created ? Can you see your address when doing "eth.accounts" ? – clement Aug 27 '20 at 8:38
  • Accounts created using web3js, yes it shows all the addresses on eth.accounts @clement – Div Aug 27 '20 at 9:39
  • Ok, can you show the part of your code responsible for sending the transaction ? – clement Aug 27 '20 at 10:32
  • Sure, I have added the code in the question @clement – Div Aug 27 '20 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.