View Single Post
Old 02-12-2021, 08:25 AM  
MrPinksPornReviews
Confirmed User
 
MrPinksPornReviews's Avatar
 
Industry Role:
Join Date: Oct 2015
Posts: 115
This is so helpful! I really appreciate it. Do you know if BTC can convert US Dollars (fiat) to bitcoin and then proceed with outgoing payments?

Quote:
Originally Posted by zijlstravideo View Post
If you're just going to use it to make bulk payouts to your affiliates, you don't need to setup and host your own public BTC node at all.

At the end of the month simply make a dump of all the affiliate earnings and save it as a txt file (or CSV etc)... Each seperate line should show the affiliate partner's BTC address and amount he has earned that period, and use some random seperator in between those two values.

If you haven't already, download and install the official BTW wallet to your local PC.
Then, just run a Windows batch script which reads that that dump file (txt file) line by line and passes that data directly to your local BTC wallet daemon (in a loop), using the CLI (and its build in JSON-RPC api).

Batch script for Windows should probably look something like this:

----
@echo on
setlocal enableDelayedExpansion
for /f "tokens=1,2 delims=|" %%A in ("C:\path\to\dump\file.txt) do (
bitcoind.exe sendtoaddress "%%A" "%%B"
)
exit
------

Where %%A is the affiliate BTC address and %%B is the earnings amount (in BTC).
Just save as a .bat file and double click to run it.

That way, your wallet never gets exposed to the public which is a lot less risky.
MrPinksPornReviews is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote