Bitcoin Forum
November 19, 2024, 07:27:13 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: Counterparty(XCP)常见问题(FAQ)  (Read 971 times)
520Bit (OP)
Sr. Member
****
Offline Offline

Activity: 602
Merit: 252



View Profile
February 04, 2014, 07:24:20 AM
Last edit: February 04, 2014, 07:34:41 AM by 520Bit
 #1

更多信息请访问:https://counterparty.co/faqs/
原帖:https://forums.counterparty.co/index.php/topic,36.0.html
此贴会根据Counterparty的开发进度不断更新。

基础知识

如何下一个合格的赌注?(相等或者不相等的赌注)

用户可以在Counterparty中下两种形式的赌注:差价合约(熊CFD或者牛CFD)以及二元的相等或者不相等赌注。CFDs很强大,能够用来处理更为复杂的财务策略问题,例如对冲交易(平衡交易); 相等或者不相等的赌注仅能用于二元形式的赌注。因此,如果你仅仅想要打赌,例如,赌黄金的价格是否会上涨,但不确定涨多少,那么一个相等或者不相等的赌注就足够了。

假设鲍勃(Bob)每两小时广播一次黄金的价格:

broadcast --from=BOBS_ADDRESS --text="'The price of gold in USD in two hours. 1=inc 2=dec'" --value=1 --fee-multiplier=.01

现在,如果莎莉(Sally)想要以10 XCP赌黄金价格在两小时之后下降,她需要运行下面的命令:

bet --from=SALLYS_ADDRESS --feed-address=BOBS_ADDRESS --bet-type=Equal --deadline=TIMESTAMP_DEADLINE --wager=10 --counterwager=10 --target-value= --leverage=5040 --expiration=3

最后期限是赌注应该决定并处理的日期和时间。目标值是赌注给予操作者将要发布的值。对于差价合约来讲,是没有目标值的。杠杠作用是决定某人所赚或者所输而增加的值。 Counterparty中的杠杠单位是5040,因此设定杠杠等于5040就相当于下一次没有杠杠的赌注。相等或者不相等的赌注不能够被杠杆化。 counterwager= 的意思是莎莉(Sally)要给一个大于或者等于一对一胜率来赌黄金价格将要上升。 expiration=3 的意思是如果在3个区块(blocks)之后没有与莎莉(Sally)相匹配的订单,莎莉(Sally)的订单将会过期,不会被填充。

如果爱丽丝(Alice)认为黄金的价格在接下来的两个小时会增加,她会愿意匹配莎莉(Sally)的赌注,她的给予地址、最后期限、目标值以及杠杠都需要跟莎莉(Sally)的相匹配。因此,爱丽丝(Alice)可以用下面的命令来下赌注:

bet --from=ALICES_ADDRESS --feed-address=BOBS_ADDRESS --bet-type=NotEqual --deadline=TIMESTAMP_DEADLINE --wager=20 --counterwager=10 --target-value= --leverage=5040 --expiration=5

并且跟莎莉(Sally)的赌注相匹配。

注意通过设置wager=20counterwager=10,爱丽丝(Alice)给了二对一的胜率来赌黄金的价格将会上升,这也就保证了她满足了莎莉(Sally)的最低要求:一对一胜率来赌黄金的价格将会上升。如果爱丽丝(Alice)设置wager=9counterwager=10,那么她就设定了小于一对一胜率来赌黄金价格将要上升,这种情况就不会与莎莉(Sally)的赌注相匹配。

如何做一个差价合约(熊CFD或者牛CFD)?

差价合约

假设鲍勃(Bob)每两小时广播一次黄金的价格:

broadcast --from=BOBS_ADDRESS --text="'The price of gold in USD in two hours'" --value=1260 --fee-multiplier=.01

现在,如果莎莉(Sally)想要以10 XCP赌黄金价格在两小时之后下降,她需要运行下面的命令:

bet --feed-address=BOBS_ADDRESS --from=ALICES_ADDRESS --bet-type=BearCFD --deadline=TIMETSTAMP_DEADLINE --wager=10 --counterwager=10 --target-value= --leverage=5040 --expiration=3

最后期限是赌注应该决定并处理的日期和时间。目标值是赌注给予操作者将要发布的值。对于差价合约来讲,是没有目标值的。杠杠作用是决定某人所赚或者所输而增加的值。 Counterparty中的杠杠单位是5040,因此设定杠杠等于5040就相当于下一次没有杠杠的赌注。 counterwager= 的意思是莎莉(Sally)要给一个大于或者等于一对一胜率来赌黄金价格将要上升。 expiration=3 的意思是如果在3个区块(blocks)之后没有与莎莉(Sally)相匹配的订单,莎莉(Sally)的订单将会过期,不会被填充。

如果爱丽丝(Alice)认为黄金的价格在接下来的两个小时会增加,她会愿意匹配莎莉(Sally)的赌注,她的给予地址、最后期限、目标值以及杠杠都需要跟莎莉(Sally)的相匹配。因此,爱丽丝(Alice)可以用下面的命令来下赌注:

bet --from=ALICES_ADDRESS --feed-address=BOBS_ADDRESS --bet-type=NotEqual --deadline=TIMESTAMP_DEADLINE --wager=20 --counterwager=10 --target-value= --leverage=5040 --expiration=5

并且跟莎莉(Sally)的赌注相匹配。

注意通过设置wager=20counterwager=10,爱丽丝(Alice)给了二对一的胜率来赌黄金的价格将会上升,这也就保证了她满足了莎莉(Sally)的最低要求:一对一胜率来赌黄金的价格将会上升。如果爱丽丝(Alice)设置wager=9counterwager=10,那么她就设定了小于一对一胜率来赌黄金价格将要上升,这种情况就不会与莎莉(Sally)的赌注相匹配。

我通过Blockchain.info烧的BTC,如何访问我的XCP?

你如果通过Blockchain.info烧的BTC,你需要将其地址的私钥导入到Bitcoin-QT钱包里。

从这里下载Bitcoin-QT钱包:https://bitcoin.org/en/download

你可以通过导入或者导出->导出未加密选项导出每一个地址的私钥。你讲会看到JSON格式的私钥。在”选择私钥格式“下拉菜单选择”Bitcoin-QT格式“。

下面将会出现你地址及其私钥的清单:{“addr”:”ADDRESS”, “privkey”:”PRIVATEKEY”,…}。

如何将私钥导入Bitcoin-QT钱包,参考维基百科:https://en.bitcoin.it/wiki/How_to_import_private_keys

为了使用你的XCP,你必须首先运行Bitcoin-QT并下载区块链(blockchain)。区块链将近18GB并在不断增大,确保你电脑有足够的空间来存储区块链。

如果你之前下载过区块链,你需要重新索引。如何索引,参考此链接:http://counterpartyd-build.readthedocs.org/en/latest/SettingUpBitcoind.html。

然后,当你克隆了最新版本的counterpartyd之后,运行下面的命令并保持终端窗口打开的状态:

counterpartyd.py server

一旦扫描完了最新的区块之后,你就可以使用counterpartyd的所有功能了。

如何发送XCP?

你可以发送XCP以及其他任何形式的资产。使用下面的命令:

send --from=SENDING_ADDRESS --to=RECEIVING_ADDRESS -quantity=QUANTITY --asset=ASSET

如何捐赠Counterparty项目组?

Counterparty团队很乐意接受BTC和XCP形式的捐赠。有兴趣捐赠的朋友可以通过counterpartyd发送BTC和XCP到12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs。所收到的基金作为奖金奖励Counterparty平台的开发。以发送50 XCP到捐赠地址为例,命令如下:

python3 counterpartyd.py send --from=ADDRESS --to=12J1YFvsWHDCU5HNAWNLNy1Q9nZo8Q4Xgs --quantity=50 --asset=XCP

技术细节

Counterparty可以工作在除比特币(bitcoin)区块链(blockchain)之外的其他区块链上吗?

简短的回答:是的,如果你愿意去开发。
更长的答案:Counterparty的proof-of-burn(PoB)概念以及其所带的其他特性,例如资产发行、股息分配以及博彩是独立于潜在的(比如XCP)货币本身的,因此,只要有货币实现multi-sig交易以及或者OP_RETURN就可以。因为大多数其他货币(山寨币)是比特币(bitcoin)的分支,这就允许在其他货币上实现起来相对简单直接。对于那些实现了额外功能的货币,例如点点币(peercoin)和域名币(namecoin),其集成过程需要做更多的工作,但仍然能够实现。目前来说还没有计划Counterparty运行在其他货币之上。在不同区块链(blockchains)之间同步Counterparty是困难的,因为时序(timing)的问题;因此在其他区块链上来实现Counterparty很可能会跟网络的不同而不同,除非时序问题得到解决。
CryptoTraderGuildGM
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500


Trade WEALTH for Good Karma


View Profile WWW
November 17, 2016, 06:01:38 AM
 #2


We're proud to announce that we have finished our airdrop! If you hold at least one of the Counterparty based assets listed below, YOUR WALLET maybe one of the lucky recepients. We divided the 4,600,000 KarmaToken (KTN) Airdrop fund among 9000 wallets and everyone of them received 511 KTN, IF YOU HOLD THESE ASSETS ON CRYPTO EXCHANGES, BE SURE TO ASK THEM TO CREDIT YOUR ACCOUNT! Those KTN are yours!

We will be requesting POLONIEX, BITTREX and BLEUTRADE to list KTN on their exchanges ASAP. You can also do the same personally. BTW If you have installed a Counterparty based APP, like Indiesquare and Book of Orbs, chances are some of them have received the KTN too.




At this point we have sent ALL the 4,600,000+ airdrop fund shares of the following Counterparty asset holders:

KARMATOKEN - Lucky 72 wallets, the asset group received a total of 36,792  KTN

CTGTOKENS - Lucky 21 wallets, the asset group received a total of 10,731 KTN

TOKENLY - Lucky 10 wallets, the asset group received a total of 5,110 KTN

PEPECASH -Lucky 661 wallets, the asset group received a total of 337,771 KTN

PROTOXENIUM - Lucky 58 wallets, the asset group received a total of 29,638 KTN

BITCRYSTALS - Lucky 842 wallets, the asset group received a total of 430,262

FLDC - Lucky 1,905 wallets the asset group received a total of 973,455 KTN

SJCX - Lucky  3164 wallets the asset group received a total of 1,616,804 KTN

LTBC- Lucky  2264 wallets the asset group received a total of 1,158,948 KTN





As much as possible, we avoided sending 511 to the same address holding multiple assets listed above. We  are happily human Cheesy

Congratulations once again. You now have the tokens of goodwill ambassadors! Welcome to the Good Karma Society.
Our Indiesquare wallet installation PROMO is still going on for another 100 KTN.











----------=======oO( .Y .)Oo======----------
BTC Tip: 1CWoG7LUrMgqWH8vuqazAR86Zg2e57qcLp https://www.karmatoken.net/events KTN Tip: 1PLCHmq6PqeUv7M4dj8PtD6WDVFB1Nri9T 
-----------=======oO(   Y   )Oo======-----------
jessicadrewd
Full Member
***
Offline Offline

Activity: 225
Merit: 100



View Profile
November 17, 2016, 08:17:59 PM
 #3

交易对手是一个很好的投资,我看着它
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!