These are chat archives for Nethereum/Nethereum

20th
Feb 2017
undertuga
@undertuga
Feb 20 2017 00:20
hi there, how can i make a simple transfer from address X to Y!?
do i have to write a contract just for that!?
like an geth command : eth.sendTransaction({from:sender, to:receiver, value: amount})
Juan Blanco
@juanfranblanco
Feb 20 2017 12:01
Hi to do a contract transfer put a value amount when you send the transaction. There is an option on the function send transaction overloaded.
Oh, just realised the question.
To send an amount just use the web3.Eth.Transactions.SendTransaction and use the Transaction Input using From To and Value.
Juan Blanco
@juanfranblanco
Feb 20 2017 12:13
If you are using 2.0.0 rc1 use the transaction manager if you are not managing externally your account. web3.TransactionManager.SendTransactionAsync
undertuga
@undertuga
Feb 20 2017 17:14
Hi there! That worked Juan! Was able to make a transaction input like this:
Web3.Eth.Transactions.SendTransaction.SendRequestAsync(
new TransactionInput("", destinationAddress, new HexBigInteger(NodeAPI.Convert.ToWei(ammount)))
)
currently having the following issue while trying to unlock an account: "invalid argument 2: json: cannot unmarshal string into Go value of type uint64"
any ideias on what might be blowing up in my face this time!?
Trying to unlock the account with something like this:
Web3.Personal.UnlockAccount.SendRequestAsync(
account, pwd, new HexBigInteger(120)
)
where both account and pwd arguments are strings...
Juan Blanco
@juanfranblanco
Feb 20 2017 22:10
Hi that is the new version of geth it uses integers instead of hexbiginteger
So pass 120 instead
undertuga
@undertuga
Feb 20 2017 22:40
Damn! Thanks a lot Juan (y)! Just tried it out and it worked flawlessly ! ;)