How to claim XCP?

Okay, so the input is like this (divisible assets are quoted in 100 million units, so no 535…):

{
"method": "create_send",
"params": {
"source": "1AbgbDkm3TD3prVWKxu8DcxvAN6zttpQMA", 
"destination": "19w9LciXjWi1Cch7pdXdrezWZ8x4wgpVVB",
"asset": "XCP", 
"quantity": 53572727273},
"jsonrpc": "2.0",
"id": 1
}

And response from the server:

{
  "result": "010000000150ce87d4185ff038742abe9589196a7e57f11775767783cdf00a3631f5ac525b000000001976a914694852a4688bdfcd7173ffde09feb2e2d3a77bec88acffffffff0336150000000000001976a91461fe6db7f9473079e34070454f8e3e7c26b8ed2e88ac00000000000000001e6a1cc4df1c2f25a347a5096a55807be4b746cf2bf93f81821e1cba8770d905890e00000000001976a914694852a4688bdfcd7173ffde09feb2e2d3a77bec88ac00000000",
  "id": 1,
  "jsonrpc": "2.0"
}

Now in Bitcoin debug console or CLI run the two commands as per that how-to linked above:

  • signrawtransaction (use the result string from above)
  • sendrawtransaction (use the output from signrawtransaction)

I recommend you to the whole process by yourself (I’ll shortly post a Windows how-to) or at least when you sign the transaction and before you send it, paste the signed transaction into https://blockchain.info/decode-tx to make sure the “in” and “out” addresses are correct.

Edit: see How to use curl to access the Counterparty API from Windows