I need to send ERC20 tokens (golem to be precise) in an automated manner, so I set up a geth json-rpc server with
./geth --fast --rpc
So I can call the api just fine.
The documentation for eth_sendtransaction makes it easy to send ethereum to another address, but I couldn't find how to send ERC20 tokens. I saw the data field which allowed to trigger a smart contracts. So I suppose I need to trigger a function within the smart contract of the ERC20 token but since I would need to learn solidity and read through the whole golem smart contract I thought I'd ask here first.
Thanks !
transfer()
function on the smart contract to transfer x tokens to y address. The function is as follows:transfer(address _to, uint256 _value)
. – ʰᵈˑ Sep 18 '17 at 11:21