Author

Topic: [ANN][XCP] Counterparty - Pioneering Peer-to-Peer Finance - Official Thread - page 583. (Read 1276936 times)

sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Any help please. I am trying to send my xcp to another bitcoin address. Thanks



C:\counterpartyd_build>C:\Python32\python.exe run.py send --from=MyXCPBitcoinAddress --to=NewBitcoinAddress --quantity=1 --asset
=XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 515, i
n
    quantity, args.asset)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 25, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, test)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 295, in
transaction
    transaction = serialise(inputs, destination_output, data_output, change_outp
ut, multisig=multisig, source=source)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 177, in
serialise
    secret_exponent, compressed = wif_to_tuple_of_secret_exponent_compressed(pri
vate_key_wif, is_test=testnet)
TypeError: wif_to_tuple_of_secret_exponent_compressed() got an unexpected keywor
d argument 'is_test'

C:\counterpartyd_build>

I have the same error as well.

This error is caused by not having a new-enough version of pycoin.

Thank you Phantom. I downloaded and installed yesterday from source. How do I update the pycoin?

The issue is that the build scripts are out of date. I just updated them.

Follow the instructions under 'Updating to the Newest Source' in the relevant documentation.
newbie
Activity: 23
Merit: 0
Any help please. I am trying to send my xcp to another bitcoin address. Thanks



C:\counterpartyd_build>C:\Python32\python.exe run.py send --from=MyXCPBitcoinAddress --to=NewBitcoinAddress --quantity=1 --asset
=XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 515, i
n
    quantity, args.asset)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 25, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, test)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 295, in
transaction
    transaction = serialise(inputs, destination_output, data_output, change_outp
ut, multisig=multisig, source=source)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 177, in
serialise
    secret_exponent, compressed = wif_to_tuple_of_secret_exponent_compressed(pri
vate_key_wif, is_test=testnet)
TypeError: wif_to_tuple_of_secret_exponent_compressed() got an unexpected keywor
d argument 'is_test'

C:\counterpartyd_build>

I have the same error as well.

This error is caused by not having a new-enough version of pycoin.

Thank you Phantom. I downloaded and installed yesterday from source. How do I update the pycoin?
member
Activity: 86
Merit: 10
Patel I gave up on burning and now learning how to send. I think you're right and my counterpartyd is set on test because this pops up:

Code:
C:\counterpartyd_build>C:\counterpartyd_build\run.py send --from {address1} --to {address2} --quantity 10 --asse
t XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 515, i
n
    quantity, args.asset)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 25, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, test)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 295, in
transaction
    transaction = serialise(inputs, destination_output, data_output, change_outp
ut, multisig=multisig, source=source)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 177, in
serialise
    secret_exponent, compressed = wif_to_tuple_of_secret_exponent_compressed(pri
vate_key_wif, is_test=testnet)
TypeError: wif_to_tuple_of_secret_exponent_compressed() got an unexpected keywor
d argument 'is_test'

C:\counterpartyd_build>

Can you tell me how to change it? Thanks
sr. member
Activity: 476
Merit: 300
Counterparty Chief Scientist and Co-Founder
Any help please. I am trying to send my xcp to another bitcoin address. Thanks



C:\counterpartyd_build>C:\Python32\python.exe run.py send --from=MyXCPBitcoinAddress --to=NewBitcoinAddress --quantity=1 --asset
=XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 515, i
n
    quantity, args.asset)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 25, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, test)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 295, in
transaction
    transaction = serialise(inputs, destination_output, data_output, change_outp
ut, multisig=multisig, source=source)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 177, in
serialise
    secret_exponent, compressed = wif_to_tuple_of_secret_exponent_compressed(pri
vate_key_wif, is_test=testnet)
TypeError: wif_to_tuple_of_secret_exponent_compressed() got an unexpected keywor
d argument 'is_test'

C:\counterpartyd_build>

I have the same error as well.

This error is caused by not having a new-enough version of pycoin.
legendary
Activity: 1320
Merit: 1007
I am running it in a different cmd window. As for reindexing, I'm fairly sure I never changed the conf file after my initial reindexing. Do you or anybody know

what the errors I'm getting is saying?

After you add txindex=1 to bitcoin.conf, you must reindex the blockchain. I dont know what the problem is, I am helping you figure it out.

Here is how I do it:

Install Bitcoin-qt
Change bitcoin.conf to proper settings
Reindex bitcoin-qt
Download counterpartd prereq's
Install counterpartyd
Add port to counterparty.conf
Start counterpartyd server - build database to newest block
Keep counterpartyd server cmd window running
Start new cmd window
Use [C:\Python32\python.exe run.py send --from=1xxxx --quantity=xxx --asset=XCP --to=1xxx] command to send
newbie
Activity: 23
Merit: 0
I am running it in a different cmd window. As for reindexing, I'm fairly sure I never changed the conf file after my initial reindexing. Do you or anybody know

what the errors I'm getting is saying?
legendary
Activity: 1320
Merit: 1007

You have minimum 0.0003172 balance in your QT to send? Also, did you set your QT fee to 0.0001?

Also, please post your bitcoin.conf and counterpartyd.conf


Yes I believe I do have the prereqs installed. I can run the server and wallet command shows my xcp balance. I have .006 btc balance in my wallet and I set qt fee to .0001

[Default]
bitcoind-rpc-connect=localhost
bitcoind-rpc-port=8332
bitcoind-rpc-user=xxxxxxxx
bitcoind-rpc-password=xxxxxxxxx
rpc-host=localhost
rpc-port=8332
rpc-user=xxxxxxxxxx
rpc-password=xxxxxxxxx



rpcuser=xxxxxxxxxx

rpcpassword=xxxxxxxxxxx

server=1

daemon=1

txindex=1

thank you for helping

did you run a -reindex on your QT after changing your bitcoin.conf file? also, you must be running the counterpartyd server in a different cmd window, and run the send script in a different cmd window
newbie
Activity: 23
Merit: 0

You have minimum 0.0003172 balance in your QT to send? Also, did you set your QT fee to 0.0001?

Also, please post your bitcoin.conf and counterpartyd.conf


Yes I believe I do have the prereqs installed. I can run the server and wallet command shows my xcp balance. I have .006 btc balance in my wallet and I set qt fee to .0001

[Default]
bitcoind-rpc-connect=localhost
bitcoind-rpc-port=8332
bitcoind-rpc-user=xxxxxxxx
bitcoind-rpc-password=xxxxxxxxx
rpc-host=localhost
rpc-port=8332
rpc-user=xxxxxxxxxx
rpc-password=xxxxxxxxx



rpcuser=xxxxxxxxxx

rpcpassword=xxxxxxxxxxx

server=1

daemon=1

txindex=1

thank you for helping
legendary
Activity: 1320
Merit: 1007

You have minimum 0.0003172 balance in your QT to send? Also, did you set your QT fee to 0.0001?

Also, please post your bitcoin.conf and counterpartyd.conf
newbie
Activity: 17
Merit: 0
Any help please. I am trying to send my xcp to another bitcoin address. Thanks



C:\counterpartyd_build>C:\Python32\python.exe run.py send --from=MyXCPBitcoinAddress --to=NewBitcoinAddress --quantity=1 --asset
=XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 515, i
n
    quantity, args.asset)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 25, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, test)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 295, in
transaction
    transaction = serialise(inputs, destination_output, data_output, change_outp
ut, multisig=multisig, source=source)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 177, in
serialise
    secret_exponent, compressed = wif_to_tuple_of_secret_exponent_compressed(pri
vate_key_wif, is_test=testnet)
TypeError: wif_to_tuple_of_secret_exponent_compressed() got an unexpected keywor
d argument 'is_test'

C:\counterpartyd_build>

I have the same error as well.
newbie
Activity: 23
Merit: 0
Any help please. I am trying to send my xcp to another bitcoin address. Thanks



C:\counterpartyd_build>C:\Python32\python.exe run.py send --from=MyXCPBitcoinAddress --to=NewBitcoinAddress --quantity=1 --asset
=XCP
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 515, i
n
    quantity, args.asset)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\send.py", line 25, in crea
te
    return bitcoin.transaction(source, destination, config.DUST_SIZE, config.MIN
_FEE, data, test)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 295, in
transaction
    transaction = serialise(inputs, destination_output, data_output, change_outp
ut, multisig=multisig, source=source)
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 177, in
serialise
    secret_exponent, compressed = wif_to_tuple_of_secret_exponent_compressed(pri
vate_key_wif, is_test=testnet)
TypeError: wif_to_tuple_of_secret_exponent_compressed() got an unexpected keywor
d argument 'is_test'

C:\counterpartyd_build>
member
Activity: 86
Merit: 10
Done it.

unfortunately this error came up:

Code:
C:\counterpartyd_build>C:\counterpartyd_build\run.py burn --from=1CibkcwpBRZAMZU
wv6hXE1eNoZ8Mb38cQg --quantity=0.0029
Confirm? (y/N) y
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 585, i
n
    json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 315, in
transmit
    return rpc('sendrawtransaction', [signed_tx_hex])
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 69, in r
pc
    raise exceptions.BitcoindError('{}'.format(response_json['error']))
lib.exceptions.BitcoindError: {'message': 'TX rejected', 'code': -22}

C:\counterpartyd_build>

Code:
'TX rejected', 'code': -22
 TX rejected?

I fixed this by doing a rescan on my bitcoin qt. It is probably because wallet balances do not match. Check blockchain.info/address/[address] and if your qt balance match or not. If they don't, do a rescan.

Balance matched on both. Is this something to do with this error while doing the testsuite?

Code:
C:\counterpartyd_build>run.py tests
============================= test session starts =============================
platform win32 -- Python 3.2.5 -- pytest-2.5.1
collected 0 items / 1 errors

=================================== ERRORS ====================================
______________ ERROR collecting dist/counterpartyd/test/test_.py ______________
dist\counterpartyd\test\test_.py:45: in
>       raise exceptions.BitcoinConfError('Put a (valid) copy of your \
E       AttributeError: 'module' object has no attribute 'BitcoinConfError'
=========================== 1 error in 1.08 seconds ===========================

C:\counterpartyd_build>
legendary
Activity: 1320
Merit: 1007
Done it.

unfortunately this error came up:

Code:
C:\counterpartyd_build>C:\counterpartyd_build\run.py burn --from=1CibkcwpBRZAMZU
wv6hXE1eNoZ8Mb38cQg --quantity=0.0029
Confirm? (y/N) y
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 585, i
n
    json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 315, in
transmit
    return rpc('sendrawtransaction', [signed_tx_hex])
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 69, in r
pc
    raise exceptions.BitcoindError('{}'.format(response_json['error']))
lib.exceptions.BitcoindError: {'message': 'TX rejected', 'code': -22}

C:\counterpartyd_build>

Code:
'TX rejected', 'code': -22
 TX rejected?

I fixed this by doing a rescan on my bitcoin qt. It is probably because wallet balances do not match. Check blockchain.info/address/[address] and if your qt balance match or not. If they don't, do a rescan.
member
Activity: 86
Merit: 10
Done it.

unfortunately this error came up:

Code:
C:\counterpartyd_build>C:\counterpartyd_build\run.py burn --from={addressX} --quantity=0.0029
Confirm? (y/N) y
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 585, i
n
    json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 315, in
transmit
    return rpc('sendrawtransaction', [signed_tx_hex])
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 69, in r
pc
    raise exceptions.BitcoindError('{}'.format(response_json['error']))
lib.exceptions.BitcoindError: {'message': 'TX rejected', 'code': -22}

C:\counterpartyd_build>

Code:
'TX rejected', 'code': -22
 TX rejected?
full member
Activity: 216
Merit: 100
The BTC will be used to buy the shares on the distributed exchange with the order command (in the CLI), and the dividends will (usually) be paid in XCP with the dividend function.

If you don't want to pay dividends, but rather only make good on something like an IOU, then there's no reason that you should do that in XCP over any other asset.

So the only inconvenience, is that investors will have to convert XCP back to BTC (if they want so)? Is there any way planned to pay dividends in BTC, or this will need to be handled separately?

Yes, but 'convert XCP back to BTC' means to sell XCP on the distributed exchange using the 'order' function.

If one wanted to pay dividends in BTC, one would need to send BTC to whichever addresses own the asset on which one was paying dividends.

The FAQ on counterparty.co has an - albeit brief - explanation as to why XCP must be used for bets, betting fees and dividends.
member
Activity: 86
Merit: 10
Hi guys. Can you do me favor? I try to figure out how to operate counterpartyd and this error came up:

Code:
C:\counterpartyd_build>C:\counterpartyd_build\run.py burn --from=1CibkcwpBRZAMZU
wv6hXE1eNoZ8Mb38cQg --quantity=0.0029
Confirm? (y/N) y
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 585, i
n
    json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 312, in
transmit
    result = rpc('signrawtransaction', [unsigned_tx_hex])
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 69, in r
pc
    raise exceptions.BitcoindError('{}'.format(response_json['error']))
lib.exceptions.BitcoindError: {'message': 'Error: Please enter the wallet passph
rase with walletpassphrase first.', 'code': -13}

C:\counterpartyd_build>


Where should I enter the wallet passphrase?

Thanks for your time to help me out. As soon as I figure out this wallet i'll import an address from blockchain.info and will send 10% of my XCP to the devs. I know it won't be much as I only have few hundreds but still appreciate for your help

Do not know about counterparty (I just randomly bumped into here), but for unlocking an wallet in general, go to console, debug and type walletpassphrase

Thanks! will do!
legendary
Activity: 1008
Merit: 1000
Hi guys. Can you do me favor? I try to figure out how to operate counterpartyd and this error came up:

Code:
C:\counterpartyd_build>C:\counterpartyd_build\run.py burn --from=1CibkcwpBRZAMZU
wv6hXE1eNoZ8Mb38cQg --quantity=0.0029
Confirm? (y/N) y
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 585, i
n
    json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 312, in
transmit
    result = rpc('signrawtransaction', [unsigned_tx_hex])
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 69, in r
pc
    raise exceptions.BitcoindError('{}'.format(response_json['error']))
lib.exceptions.BitcoindError: {'message': 'Error: Please enter the wallet passph
rase with walletpassphrase first.', 'code': -13}

C:\counterpartyd_build>


Where should I enter the wallet passphrase?

Thanks for your time to help me out. As soon as I figure out this wallet i'll import an address from blockchain.info and will send 10% of my XCP to the devs. I know it won't be much as I only have few hundreds but still appreciate for your help

Do not know about counterparty (I just randomly bumped into here), but for unlocking an wallet in general, go to console, debug and type walletpassphrase
member
Activity: 86
Merit: 10
Hi guys. Can you do me favor? I try to figure out how to operate counterpartyd and this error came up:

Code:
C:\counterpartyd_build>C:\counterpartyd_build\run.py burn --from={addressX} --quantity=0.0029
Confirm? (y/N) y
Traceback (most recent call last):
  File "C:\counterpartyd_build\dist\counterpartyd\counterpartyd.py", line 585, i
n
    json_print(bitcoin.transmit(unsigned_tx_hex, unsigned=args.unsigned))
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 312, in
transmit
    result = rpc('signrawtransaction', [unsigned_tx_hex])
  File "C:\counterpartyd_build\dist\counterpartyd\lib\bitcoin.py", line 69, in r
pc
    raise exceptions.BitcoindError('{}'.format(response_json['error']))
lib.exceptions.BitcoindError: {'message': 'Error: Please enter the wallet passph
rase with walletpassphrase first.', 'code': -13}

C:\counterpartyd_build>


Where should I enter the wallet passphrase?

Thanks for your time to help me out. As soon as I figure out this wallet i'll import an address from blockchain.info and will send 10% of my XCP to the devs. I know it won't be much as I only have few hundreds but still appreciate for your help
Jump to: