In LiveCode versions up to and including 6.6.5 in Windows 7, this code:
Code: Select all
on NewKeyPair
set the shellcommand to "c:\program files\bitcoin\daemon\bitcoin-cli.exe"
put shell(getnewaddress) into newAddy
put "dumpprivkey"&&newAddy into PrivKeyDump
put shell(PrivKeyDump) into newPrivKey
put "Address:"&&newAddy&cr&"Private Key:"&&newprivkey
end NewKeyPair
Code: Select all
Address: 17AdYTMMRMxwACBevv5SLrHVs7PNfhhHnP
Private Key: KwXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXBEH
From LiveCode 6.7.x and 7.x.x the same script yields a result like this:
Code: Select all
Address: 1AWCPekoZwHz97rsdSTUDNw4a7QAn2emKr
Private Key: error: {"code":-32601,"message":"Method not found"}
After doing a bit of experimentation, and seeing as the first shell(getnewaddress) seems to be working fine in all versions, I am 99% certain that the problem is that the second shell function includes a space. All shell commands I've tried that do not have spaces work fine, commands that have a space return that error code. Anybody care to help test on this theory?
--Sefro
Forgive me if this is in the wrong area, or if it has been covered already. I've been absent the past couple of months and a quick search didn't turn up anything.