Thanks! Do you know if this allows payout to affiliates or does it only accept bitcoin as a form of payment?
It's open source, it can do whatever you want it to do.
But it's already build in:
"Balance withdraw system (where a high-volume service allows users to request withdrawals from their balance, the service can then easily batch all the payouts to many users, at fixed intervals)"
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.
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?
Originally posted by zijlstravideo
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.
Comment