Transfer Ether on truffle test network

Hi everyone,
How can transfer ethereum another account,on truffle test network with openzeppelin ?

1 Like

Hi @ibrahimcss,

You can send Ether using the following:

truffle(develop)> web3.eth.sendTransaction({to:accounts[1], from:accounts[0], value: web3.utils.toWei('1')})

See the web3 documentation:
https://web3js.readthedocs.io/en/v1.3.4/web3-eth.html?highlight=sendTransaction#sendtransaction

1 Like