Bitcoin Forum
September 22, 2025, 07:51:56 AM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 18, 2014, 03:23:33 PM
hi everyone,

while working on the rpc calls i encountered an error message: 'A specified filter is missing the 'field' field'

http://gyazo.com/892160fb9168ef2d507ec8624a091b44

i started expirementing with the parmeters encoding and when i sent as parameter:

string '{"method":"get_balances","params":{"filters":{"field":"address","op":"==","value":"15cdAQmmBrz1BEVtipaQ1dVHtTwmfcxzw5"}},"id":1}' (length=128)

counterpartyd stopped working:
http://gyazo.com/8e76f93cb081c6403690aa28268b8e3d

text version:
Code:
Traceback (most recent call last):
  File "/root/counterpartyd_build/dist/counterpartyd/counterpartyd.py", line 694                                                                                                                                                             , in <module>
    blocks.follow(db)
  File "/root/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 678, i                                                                                                                                                             n follow
    parse_block(db, block_index, block_time)
  File "/root/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 78, in                                                                                                                                                              parse_block
    parse_tx(db, tx)
  File "/root/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 35, in                                                                                                                                                              parse_tx
    order.parse(db, tx, message)
  File "/root/counterpartyd_build/dist/counterpartyd/lib/order.py", line 107, in                                                                                                                                                              parse
    match(db, tx)
  File "/root/counterpartyd_build/dist/counterpartyd/lib/order.py", line 160, in                                                                                                                                                              match
    fee = int(D(tx1['fee_required']) * D(forward_amount) / D(tx0_give_remaining)                                                                                                                                                             )
UnboundLocalError: local variable 'tx0_give_remaining' referenced before assignm                                                                                                                                                             ent

why did that happen?
how should i have encoded the call (php example would be great)?
to keep working i am now rebuiliding the database, is there a better way to deal with it if it happens again?
2  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 17, 2014, 06:37:41 PM
hi everyone,

i just installed counterpartyd thanks to the much appreciated help of xnova and JahPowerBit.

i started going throuh the api calls as specified in this page:
https://media.readthedocs.org/pdf/counterpartyd/latest/counterpartyd.pdf

and found that many vital ones are missing:

http://gyazo.com/3f2d893af97c6f37e588047ce7c9f7cd

among the promient ones are:
get_address and get_sends.

is it because of something i did or are these calls not implemented yet?
how can i know the source address of a transaction that was made to my address?


to see the balance of address try to issue:  
Code:
counterpartyd balances 14RAyA4JabgVftF1ezKQqUkaQi8iaPqX9K



thank you Anotheranonlol.

i noticed that 'balances' does work. however, checking the balance of an address is not enough, 'get_sends' and 'get_address' are vital for the client.

has anyone here managed to use these function succesfully or know what am i doing wrong?
3  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 17, 2014, 02:37:26 PM
hi everyone,

i just installed counterpartyd thanks to the much appreciated help of xnova and JahPowerBit.

i started going throuh the api calls as specified in this page:
https://media.readthedocs.org/pdf/counterpartyd/latest/counterpartyd.pdf

and found that many vital ones are missing:

http://gyazo.com/3f2d893af97c6f37e588047ce7c9f7cd

among the promient ones are:
get_address and get_sends.

is it because of something i did or are these calls not implemented yet?
how can i know the source address of a transaction that was made to my address?
4  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [SKY] Skycoin Launch Announcement on: February 16, 2014, 11:23:02 PM
count me in Smiley

good luck
5  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 15, 2014, 09:36:41 PM
hi everyone,

i need help setting up counterpartyd on linux.

i have running instances that i would like to run counterpartyd on.

there is a small bounty Smiley

pm me

If counterparty build of xnova don't work, you can make something like that :


Code:
virtualenv -p /usr/bin/python3 counterparty_env

source counterparty_env/bin/activate

pip install appdirs==1.2.0 prettytable==0.7.2 python-dateutil==2.2 requests==2.1.0 cherrypy==3.2.4 json-rpc==1.1 pycoin==0.25 pytest==2.5.1

wget https://sqlite.org/2014/sqlite-autoconf-3080301.tar.gz

tar -xvzf sqlite-autoconf-3080301.tar.gz
cd sqlite-autoconf-3080301
./configure
make
make install
cd ..

pip install https://github.com/rogerbinns/apsw/archive/master.zip


et voila!
thank you for your response.
this is what i got when i ran it:
http://gyazo.com/a1f973ef900986dc230740e8bc70b54c

how do i proceed?


Like the message says don't run counterpartyd with root user. Do something like this:

Code:

adduser counterparty
chown -r counterparty:counterparty ./
sudo counterparty

screen -S counterpartyd
./counterpartyd

ctrl+a+d to detach the screen and "screen -r counterpartyd" to attach it.
You can also make a service with: https://github.com/xnova/counterpartyd_build/blob/master/dist/linux/init/counterpartyd.conf.template

thank you again for your help.
when i run it as a non root user it still says:
http://gyazo.com/7e7482dfbbee8b28a88be00a74028ff5
what could cause this?

pp xnova cityiglut biggest fish anyone?
6  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 15, 2014, 07:09:20 PM
hi everyone,

i need help setting up counterpartyd on linux.

i have running instances that i would like to run counterpartyd on.

there is a small bounty Smiley

pm me

If counterparty build of xnova don't work, you can make something like that :


Code:
virtualenv -p /usr/bin/python3 counterparty_env

source counterparty_env/bin/activate

pip install appdirs==1.2.0 prettytable==0.7.2 python-dateutil==2.2 requests==2.1.0 cherrypy==3.2.4 json-rpc==1.1 pycoin==0.25 pytest==2.5.1

wget https://sqlite.org/2014/sqlite-autoconf-3080301.tar.gz

tar -xvzf sqlite-autoconf-3080301.tar.gz
cd sqlite-autoconf-3080301
./configure
make
make install
cd ..

pip install https://github.com/rogerbinns/apsw/archive/master.zip


et voila!
thank you for your response.
this is what i got when i ran it:
http://gyazo.com/a1f973ef900986dc230740e8bc70b54c

how do i proceed?


Like the message says don't run counterpartyd with root user. Do something like this:

Code:

adduser counterparty
chown -r counterparty:counterparty ./
sudo counterparty

screen -S counterpartyd
./counterpartyd

ctrl+a+d to detach the screen and "screen -r counterpartyd" to attach it.
You can also make a service with: https://github.com/xnova/counterpartyd_build/blob/master/dist/linux/init/counterpartyd.conf.template

thank you again for your help.
when i run it as a non root user it still says:
http://gyazo.com/7e7482dfbbee8b28a88be00a74028ff5
what could cause this?
7  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 15, 2014, 05:52:00 PM
hi everyone,

i need help setting up counterpartyd on linux.

i have running instances that i would like to run counterpartyd on.

there is a small bounty Smiley

pm me

If counterparty build of xnova don't work, you can make something like that :


Code:
virtualenv -p /usr/bin/python3 counterparty_env

source counterparty_env/bin/activate

pip install appdirs==1.2.0 prettytable==0.7.2 python-dateutil==2.2 requests==2.1.0 cherrypy==3.2.4 json-rpc==1.1 pycoin==0.25 pytest==2.5.1

wget https://sqlite.org/2014/sqlite-autoconf-3080301.tar.gz

tar -xvzf sqlite-autoconf-3080301.tar.gz
cd sqlite-autoconf-3080301
./configure
make
make install
cd ..

pip install https://github.com/rogerbinns/apsw/archive/master.zip


et voila!
thank you for your response.
this is what i got when i ran it:
http://gyazo.com/a1f973ef900986dc230740e8bc70b54c

how do i proceed?
8  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 15, 2014, 04:49:36 PM
hi everyone,

i need help setting up counterpartyd on linux.

i have running instances that i would like to run counterpartyd on.

there is a small bounty Smiley

pm me
9  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 10, 2014, 04:55:10 PM
Hi guys,
I am trying to make counterparyd to work on ubuntu vps, i have installed everything and when i try to run it i get the following response :
Quote
Please run this script as a non-root user.
 

So i went ahead and created a user, and now i get this :

Quote
-sh: 1: counterpartyd: Permission denied

any advice will be much appreciated
10  Other / Archival / Re: Counterparty (XCP) Buy/Sell Thread with Google Doc on: February 04, 2014, 10:32:30 PM
wtb 500 xcp

pm your best offers
11  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 01, 2014, 02:03:45 PM
hi guys,
i tried to burn 0.99 bitcoin, but i dont think it worked, because i dont see my account in blockscan.
can you tell me what happend?

blockchain:
https://blockchain.info/address/1Eb8kcHRr2z3E6DF4E3MMi3XEGEmBwicVZ

blockscan:
http://blockscan.com/balance.aspx?q=1Eb8kcHRr2z3E6DF4E3MMi3XEGEmBwicVZ

I've checked with the counterparty client and I can see your burn:

Code:
Burns
+-------------+------------+-------------------+---------------------+
| Block Index |   Burned   |       Earned      |       Tx Hash       |
+-------------+------------+-------------------+---------------------+
|    283421   | 0.9998 BTC | 1035.15656364 XCP | 52941c45...77f6f051 |
+-------------+------------+-------------------+---------------------+

thanks
12  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][XCP] Counterparty Protocol, Client and Coin (built on Bitcoin) - Official on: February 01, 2014, 09:51:56 AM
hi guys,
i tried to burn 0.99 bitcoin, but i dont think it worked, because i dont see my account in blockscan.
can you tell me what happend?

blockchain:
https://blockchain.info/address/1Eb8kcHRr2z3E6DF4E3MMi3XEGEmBwicVZ

blockscan:
http://blockscan.com/balance.aspx?q=1Eb8kcHRr2z3E6DF4E3MMi3XEGEmBwicVZ
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!