You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
641 B
15 lines
641 B
7 years ago
|
@echo off
|
||
|
set /p TMPUSERPASS=<userpass
|
||
|
set USERPASS=%TMPUSERPASS: =%
|
||
|
rem *** Change coin and outputs before use (!) ***
|
||
|
set COIN=KMD
|
||
|
set OUTPUTS=[{\"RDecker69MM5dhDBosUXPNTzfoGqxPQqHu\":0.00007777}]
|
||
|
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"withdraw\",\"coin\":\"%COIN%\",\"outputs\":%OUTPUTS%}" > withdraw.txt
|
||
|
type withdraw.txt
|
||
|
timeout /t 5 /nobreak
|
||
|
for /f "tokens=4 delims=:," %%a in (' find "hex" "withdraw.txt" ') do (
|
||
|
rem echo [%%~a]
|
||
|
curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"%USERPASS%\",\"method\":\"sendrawtransaction\",\"coin\":\"%COIN%\",\"signedtx\":\"%%~a\"}"
|
||
|
)
|
||
|
|