Okay so I have deployed my contract to network, and my wallet or account via which I deployed it contains all my tokens of the newly created contract. I dont want to list my token anywhere since since only people who are in my app/website can purchase my tokens that's the business logic. so how could I obtain an automated process that if someone say wallet address 0xXYZ... transfers 0.001 eth to my wallet (plus gas) . Consider my token name Test is eqvivalent to 0.0001 eth so what i want is automatically transfer 9 (since 10 Test Token = 0.001 eth and assuming my gas on this transfer would be 0.0001 eth which is equal to 1 Test so 10 - 1 = 9 Test is to be transferred) Test tokens to 0xXYZ wallet. I can do this manually when I see the transfer in my wallet but I want this to be automated , i.e. the user is buying my token automatically. ERC20 based contract / token
I am new to this domain so I am not sure if this is possible or is this is allowed. I tried to find a lot but didnt find anything like this. Thanks in advance