Bitcoin Forum
July 05, 2024, 03:58:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Automatic transfer from ERC-20 token wallet.  (Read 32 times)
Si9ma (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
October 10, 2021, 07:58:18 PM
 #1

Im a web developer, im trying to code a feature that upon completion of a task, a user is credited with a set amount of tokens to his wallet. Basically a reward in ETH upon demand of the server, is there a way i can do this? Do i need to have a centralized wallet which will send coins to the user, if so is there an API? Otherwise is there a simpler way to do this such as directly getting the coins from the blockchain?
Thanks in advance
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2926
Merit: 2347


View Profile
October 10, 2021, 09:10:17 PM
 #2

You will most likely need to run an implementation of an etherum node that accepts RPC calls. The specific calls you will have to make in order to create/sign a transaction will depend on the client implementation you are running.

Depending on the values involved, you may also consider crediting tokens to a database balance for the user, and allowing the user to withdraw upon certain criteria being met. Anytime you move a token to a user's ETH address/"wallet", you will have to pay a gas fee.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!