I'm new on Ethereum blockchain and I'm working on deploy and using smart contract using truffle on my private blockchain.
I have followed exactly this guide https://www.trufflesuite.com/docs/truffle/getting-started/interacting-with-your-contracts
But every time i call getBalance() function
truffle(develop)> let balance = await instance.getBalance(accounts) truffle(develop)> balance.toNumber()
I get the error: Returned values are not valid, did it run Out of Gas
So I added a simply smart contract getNumber() then return a simply integer (3) and I always get the same error.
But if I invoke sendCoin() function I don't get any error and i write correctly the transaction.
So i get the error any time i try to get values from blockchain.
Someone can help me?