I am new and I am trying to make my first transaction using geth and truffle.
to specify a sender address I type in the truffle console:
src = web3.eth.accounts
but I get "undefined"
if I type
accounts = web3.eth.getAccounts() it seems it works and I get an array with 10 accounts
but if I want only the first account of the list and I type
src = accounts I get again "undefined"
What am I doing wrong? Many thanks