# How to claim XCP?

**URL:** <https://forums.counterparty.io/t/how-to-claim-xcp/2577>\
**Category:** Support\
**Created:** [January 5, 2017, 3:01am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577 "2017-01-05T03:01:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 5, 2017, 3:01am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/1 "2017-01-05T03:01:07Z")

</div>

Hi  
I have burned btc in 2014 and just back, how could I get the XCP? I have my btc private key.  
Does any one have latest turotial?

Thanks.

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 5, 2017, 3:57am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/2 "2017-01-05T03:57:08Z")

</div>

> [@How to use Private Key to import BTC funds from external address to Counterwallet address?](https://forums.counterparty.io/t/how-to-use-private-key-to-import-btc-funds-from-external-address-to-counterwallet-address/1225):
>
> ##How to Import Funds from Bitcoin Address using private key (privkey) Login to Counterwallet with Private Key from another address handy. In the top left corner, go to Import Funds \> Import (Sweep) Tokens from Another Address. Enter Private Key and allow Counterwallet to issue a Send transaction from the address associated with the Private Key to your Counterwallet you selected. This Send transaction is done automatically. You can then log off if you wish. It will take 3 confirmations for the…

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 5, 2017, 4:44am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/3 "2017-01-05T04:44:47Z")

</div>

Many thanks.

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 5, 2017, 5:26am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/4 "2017-01-05T05:26:39Z")

</div>

I have WIF format - 52 character, base58 private keys. Start with a ‘K’  
I go through import funds–\> from another address, input the private Key and then click sweep.  
And nothing happened. Click sweep not work, click cancel can back to previous page.

Please support, thanks.

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 5, 2017, 5:42am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/5 "2017-01-05T05:42:09Z")

</div>

Sweep sometimes times out or otherwise misbehaves…As the bottom of that page says, sometimes it helps to retry and just let it hang for a while.

You can try another way, for example try CoinDaddy’s Counterwallet instance, if the sweep is slow due to slow hardware ([Counterwallet.io](http://Counterwallet.io)) maybe CoinDaddy’s wallet will work.

The worst case is you can install Bitcoin Core 0.12.1 [addrindex](https://forums.counterparty.io/t/what-is-addrindex-and-why-is-it-necessary/1202), let it download the blockcain (100 GB or so), install counterparty-server (500 MB download of the database) and then use counterparty-cli to send the tokens to any address you want.

You can also compose the Counterparty “[send](https://forums.counterparty.io/t/using-create-send-api-and-public-development-server-to-move-tokens/2184)” transaction manually and sign it, and broadcast it from any Web site or paste it here and someone can broadcast it for you. For this you don’t need to download the addinrdex version of the blockchain, you can use a public Counterparty API server (such as [CoinDaddy’s](https://coindaddy.io/public-development-servers) and then you need a bitcoin signing tool to sign the raw transaction…

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 5, 2017, 6:23am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/6 "2017-01-05T06:23:18Z")

</div>

CoinDaddy’s also did not work…  
I will try sweep again tomorrow.

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 5, 2017, 6:30am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/7 "2017-01-05T06:30:12Z")

</div>

Okay.

From the example on that page it’s easy to compose a raw transaction, just change the source to your address, keep the asset as XCP and the set the quantity to the amount of XCP that address has (which can be checked in a Counterparty explorer).

The entire workflow is described in here ([How to create a send transaction on Counterparty?](https://forums.counterparty.io/t/how-to-create-a-send-transaction-on-counterparty/2429)).

The only gotcha is you need to have some amount of BTC at that address (to pay the bitcoin miners for the transaction). 0.0001 BTCC should be enough (0.0002/kB is the default fee per KB and your transaction will probably be around 450 bytes). So send some BTC to that address first.  
You can sweep any leftover BTC from that address later using standard BTC tools, as there would be no XCP at the address you could sweep the BTC down to 0.

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 22, 2017, 3:11am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/8 "2017-01-22T03:11:26Z")

</div>

I have tried many time with counterwallet and daddy, still it does not work…  
Now I have bitcoin core wallet with full block chain ready. But I do not know anything about coding, so how to compose the send transaction? Anyone could help here?  
Many thanks

source: ??? what’s it? My bitcoin address?  
destination: 19w9LciXjWi1Cch7pdXdrezWZ8x4wgpVVB this is my counterwallet address  
asset: XCP??  
quantity: XXX

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 22, 2017, 5:06am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/9 "2017-01-22T05:06:24Z")

</div>

I provided the link to a how-to in the comment just above your question

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 22, 2017, 7:50am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/10 "2017-01-22T07:50:29Z")

</div>

I have read the link above, and do not understand anything… That’s beyond my capacity, Is there any easy way?

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 22, 2017, 9:22am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/11 "2017-01-22T09:22:33Z")

</div>

OK:

- Source is your external address for which you have the private key - I put `1ABCDE` in there. We can’t know what it is, but you can. It’s most likely the address from which you sent BTC to the counterparty burn address (XCP was automatically sent back to addresses that sent in BTC).
- Destination is the first address you see in your Counterwallet when you log in. Replace my address with your own.

 ![](https://canada1.discourse-cdn.com/flex004/uploads/counterpartytalk/original/1X/32b86e03f25984dac4496ede82836c6cbce2a279.png)

- Asset is `XCP` because that’s what you’re sending
- Quantity is the amount of XCP you have which you can check by entering the Source address in [blockscan.com](http://blockscan.com), for example. Replace `123456` with your amount.

```auto
{
  "method": "create_send",
  "params": {"source": "1ABCD", "destination": "16RZFZTAHq5nJxqPaqSFWTJDGyumGTMcyV", "asset": "XCP", "quantity": 123456},
  "jsonrpc": "2.0",
  "id": 1
}

```

If you can provide correct info I’ll give you the transaction which you then can sign and broadcast.

Note that you must have at least 0.00001 BTC at the Source address because it’s required for bitcoin transaction fee, so you need to ensure that before I create the transaction for you.

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 22, 2017, 1:33pm UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/12 "2017-01-22T13:33:08Z")

</div>

{  
“method”: “create\_send”,  
“params”: {“source”: “1AbgbDkm3TD3prVWKxu8DcxvAN6zttpQMA”, “destination”: “19w9LciXjWi1Cch7pdXdrezWZ8x4wgpVVB”, “asset”: “XCP”, “quantity”: 535.72727273},  
“jsonrpc”: “2.0”,  
“id”: 1  
}

My BTC address has some btc. Please create the transaction for me.  
Thanks a million.

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 22, 2017, 5:37pm UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/13 "2017-01-22T17:37:24Z")

</div>

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

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

```

And response from the server:

```auto
{
  "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](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](https://forums.counterparty.io/t/how-to-use-curl-to-access-the-counterparty-api-from-windows/2598)

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 23, 2017, 5:40am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/14 "2017-01-23T05:40:45Z")

</div>

I’m using bitcoin core, first import the private key, and then sign, result as below, any problem?

signrawtransaction 010000000150ce87d4185ff038742abe9589196a7e57f11775767783cdf00a3631f5ac525b000000001976a914694852a4688bdfcd7173ffde09feb2e2d3a77bec88acffffffff0336150000000000001976a91461fe6db7f9473079e34070454f8e3e7c26b8ed2e88ac00000000000000001e6a1cc4df1c2f25a347a5096a55807be4b746cf2bf93f81821e1cba8770d905890e00000000001976a914694852a4688bdfcd7173ffde09feb2e2d3a77bec88ac00000000

￼  
{  
“hex”: “010000000150ce87d4185ff038742abe9589196a7e57f11775767783cdf00a3631f5ac525b000000001976a914694852a4688bdfcd7173ffde09feb2e2d3a77bec88acffffffff0336150000000000001976a91461fe6db7f9473079e34070454f8e3e7c26b8ed2e88ac00000000000000001e6a1cc4df1c2f25a347a5096a55807be4b746cf2bf93f81821e1cba8770d905890e00000000001976a914694852a4688bdfcd7173ffde09feb2e2d3a77bec88ac00000000”,  
“complete”: false,  
“errors”: [  
{  
“txid”: “5b52acf531360af0cd8377767517f1577e6a198995be2a7438f05f18d487ce50”,  
“vout”: 0,  
“scriptSig”: “76a914694852a4688bdfcd7173ffde09feb2e2d3a77bec88ac”,  
“sequence”: 4294967295,  
“error”: “Input not found or already spent”  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 23, 2017, 7:20am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/15 "2017-01-23T07:20:26Z")

</div>

Have you rescanned the blockchain since you imported the address?  
What does Bitcoin Core say when you ask it to review the address’es (1AbgbDkm3TD3prVWKxu8DcxvAN6zttpQMA) unspent balances?

It can’t fetch the inputs properly, so maybe you didn’t rescan.

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 23, 2017, 9:22am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/16 "2017-01-23T09:22:28Z")

</div>

Does XCP takes transaction fee? so we should lower the XCP Qty?  
Would below help?  
{  
“method”: “create\_send”,  
“params”: {  
“source”: “1AbgbDkm3TD3prVWKxu8DcxvAN6zttpQMA”,  
“destination”: “19w9LciXjWi1Cch7pdXdrezWZ8x4wgpVVB”,  
“asset”: “XCP”,  
“quantity”: 53572700000},  
“jsonrpc”: “2.0”,  
“id”: 1  
}

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 23, 2017, 11:15am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/17 "2017-01-23T11:15:31Z")

</div>

The problem is not the fee, but the inputs from your 1A… address as I mentioned above (and the Bitcoin error tells you that).

The decode Tx link can show you the details of the signed transaction that you created.

The Bitcoin Core’s listunspent command tells you whether the address can see its unspent balances.

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 23, 2017, 11:58am UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/18 "2017-01-23T11:58:33Z")

</div>

It seems the private key I got from blockchain.info has some problem (WIF format)  
I will contact blockchain.info first.

---

<div class="post-metadata">

**Author:** ![something](https://yyz2.discourse-cdn.com/flex004/user_avatar/forums.counterparty.io/something/32/240_2.png) [@something](https://forums.counterparty.io/u/something)\
**Post date:** [January 23, 2017, 2:42pm UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/19 "2017-01-23T14:42:12Z")

</div>

You can find on the forum about their formats, there are 2 articles in FAQs, but you can also contact them or read their online help.  
What you want to do is to convert their format into the format acceptable to Bitcoin Core WIF format.

---

<div class="post-metadata">

**Author:** ![heropzy](https://avatars.discourse-cdn.com/v4/letter/h/6f9a4e/32.png) [@heropzy](https://forums.counterparty.io/u/heropzy)\
**Post date:** [January 23, 2017, 3:22pm UTC](https://forums.counterparty.io/t/how-to-claim-xcp/2577/20 "2017-01-23T15:22:15Z")

</div>

I already got the WIF format as they said.  
blockchaininfo said 1AbgbDkm3TD3prVWKxu8DcxvAN6zttpQMA private key in WIF format is XXXXXX  
After I imported it into bitcoin core, it showed up another address （not 1AbgbDkm3TD3prVWKxu8DcxvAN6zttpQMA）with zero balance. The private key I export from blockchaininfo should have balance and the address is 1AbgbDkm3TD3prVWKxu8DcxvAN6zttpQMA.

I contacted blockchaininfo to see any issue.

[Next page](https://forums.counterparty.io/t/how-to-claim-xcp/2577.md?page=2)
