Post
Topic
Board Announcements (Altcoins)
Re: [ANN][CLAM] CLAMs, Proof-Of-Chain, Proof-Of-Working-Stake, a.k.a. "Clamcoin"
by
FrankS
on 10/12/2017, 10:32:21 UTC
So in your case you would do this:

Quote
$ clamd signrawtransaction $(clamd createrawtransaction '[{"txid":"71f2cbe9ff92b8c62a2bcfba5dfc9bc32a2d0c71bf55834e6d884b9ab0de201c","vout":69}]' '{"xK8vfFyKC4J2SHR2Hhk7whQAaCTGWbEEwW ":3.5}') '[{"txid":"71f2cbe9ff92b8c62a2bcfba5dfc9bc32a2d0c71bf55834e6d884b9ab0de201c","vout":69,"scriptPubKey":"1976a914c6580bcf8320c3ddaadebc9be9f38ac6fb59d21688ac"}]' '["Lo2RApGkaDZDePA347i56Lo4xRNGBwuxUgyQBC5cK9Ea2Kpn2mnt"]'
{
  "hex" : "020000004abe2c5a011c20deb09a4b886d4e8355bf710c2d2ac39bfc5dbacf2b2ac6b892ffe9cbf 2714500000000ffffffff018093dc14000000001976a91476d3380912c1dda6d575bdbac5348db0 e46d8c4e88ac0000000034706c6179206f7220696e766573742077697468206120312520686f757 3652065646765202d2d204a7573742d446963652e636f6d",
  "complete" : true
}

I got the 40 hex characters for your address by base58 decoding it:

Quote
$ python
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import binascii, base58
>>> binascii.hexlify(base58.b58decode_check('xSPPAQsgYTUsiH51xG3u4Shf7Cc7dt5V7g')[1:])
'c6580bcf8320c3ddaadebc9be9f38ac6fb59d216'
Thanks! That sure explains quite a lot Smiley
With that info I managed to create a little python script that outputs the pubkey hash.

One last hurdle is there though: signrawtransaction returns the unsigned tx I put in although "complete" is true: http://picpaste.com/QkeLmHPi.png
Is there maybe a difference between clamd and clam-qt on Windows?
Quote
createrawtransaction '[{"txid":"71f2cbe9ff92b8c62a2bcfba5dfc9bc32a2d0c71bf55834e6d884b9ab0de201c","vout":69}]' '{"xK8vfFyKC4J2SHR2Hhk7whQAaCTGWbEEwW ":3.5}'
01000000b7092d5a011c20deb09a4b886d4e8355bf710c2d2ac39bfc5dbacf2b2ac6b892ffe9cbf 2714500000000ffffffff018093dc14000000001976a91476d3380912c1dda6d575bdbac5348db0 e46d8c4e88ac00000000

signrawtransaction "0100000032082d5a011c20deb09a4b886d4e8355bf710c2d2ac39bfc5dbacf2b2ac6b892ffe9cbf 2714500000000ffffffff018093dc14000000001976a91476d3380912c1dda6d575bdbac5348db0 e46d8c4e88ac00000000" '[{"txid":"71f2cbe9ff92b8c62a2bcfba5dfc9bc32a2d0c71bf55834e6d884b9ab0de201c","vout":69,"scriptPubKey":"1976a914c6580bcf8320c3ddaadebc9be9f38ac6fb59d21688ac"}]' '["Lo2RApGkaDZDePA347i56Lo4xRNGBwuxUgyQBC5cK9Ea2Kpn2mnt"]'
{
"hex" : "0100000032082d5a011c20deb09a4b886d4e8355bf710c2d2ac39bfc5dbacf2b2ac6b892ffe9cbf 2714500000000ffffffff018093dc14000000001976a91476d3380912c1dda6d575bdbac5348db0 e46d8c4e88ac00000000",
"complete" : true
}
Thanks for your patience Smiley