V3.2.1 - Beta.3 Interface description
-
beaconregistration
./czzctl beaconregistration [{"txid":"4c545c3524cede29bae67796613dbb0f737992b4e346bda8e07c17896374f29a","vout":0}] {"toaddress":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20],"stakingamount":600,"assetflag":63,"fee":10,"keeptime":30,"whitelist":[],"coinbaseaddress":["czxl6822mcx0jad8adm9ljxfjx62cjf07ykk88a7xp"]}
01000000014c545c3524cede29bae67796613dbb0f737992b4e346bda8e07c17896374f29a0000000000ffffffff020000000000000000526ac34c4ef84c8080809400000000000000000000000000000000000000148080c0c03f0a1ec0ebaa637a786c363832326d6378306a61643861646d396c6a78666a783632636a663037796b6b383861377870005847f80d0000001976a914000000000000000000000000000000000000001488ac00000000
toaddress beacon address
stakingamount The pledge amount
assetflag Support of the currency (the 10 hexadecimal number to a hexadecimal, 2 take after six corresponding (BTC, BCH, BSV, LTC, USDT, DOGE), 1 is to support, 0 is not supported)
fee Transaction fee (the number of CZZ will be calculated according to the current exchange rate)
keeptime Lock time (the time of burning currency and big currency will be calculated according to a block of 30 seconds, and then calculated according to the block)
whitelist Foreign currency Whitelist (public keys, and currencies)
coinbaseaddress Mining address, need to write CZZ addressCreate a trading doge
./czzctl exchangetransaction [{"txid":"8a56d6a6095baba959350726f0f68d6a0520f27f493322fd3f6f03afedc9ab32","vout":0}] [{"address":"cr3k7enc4ha867mx3k2y0t9x8u9z9wc5aglyskvxwu","beaconid":1,"assettype":240,"index":0,"height":3295847,"amount":10000000000,"exttxhash":"bd0f745c9fedb60bd1e199af80849b72613c15000c514e2003285198a3997d36"}]
01000000018a56d6a6095baba959350726f0f68d6a0520f27f493322fd3f6f03afedc9ab320000000000ffffffff010000000000000000816ac64c7df87baa6372336b37656e633468613836376d78336b3279307439783875397a3977633561676c79736b7678777581f08083324a678502540be400b840626430663734356339666564623630626431653139396166383038343962373236313
address CZZ address generated by the dog with the private key
beaconid beacon id
assettype Type of currency (Doge: 0xF0, Ltc: 0xF1, Btc: 0xF2, Bsv: 0xF3, Bch: 0xF4)
index The subscript of the out of network transaction
height The height of the chain on an extranet transaction
amount The number of COINS sent to the dog address of the pledged address of the lighthouse by the transaction on the outer net
exttxhash Outside the network transaction of txhash
burntransaction
./czzctl burntransaction [{"txid":"23d99145edb2aba3af6e638984dc9a76e8c5cd7e1f435cfe16823fdc3d4c14b5","vout":4}] {"extxtype":240,"address":"cr3k7enc4ha867mx3k2y0t9x8u9z9wc5aglyskvxwu","beaconid":1,"amount":3}
010000000123d99145edb2aba3af6e638984dc9a76e8c5cd7e1f435cfe16823fdc3d4c14b50400000000ffffffff020000000000000000376ac434f381f0aa6372336b37656e633468613836376d78336b3279307439783875397a3977633561676c79736b76787775018411e1a30000a3e111000000001976a914000000000000000000000000000000000000000088ac00000000
assettype Currency type of burning COINS (Doge: 0xF0, Ltc: 0xF1, Btc: 0xF2, Bsv: 0xF3, Bch: 0xF4)
address CZZ address for burning COINS required
beaconid beacon id
amount The number of CZZ COINS to be burned
burnprooft(beacon)
./czzctl burnprooft [{"txid":"8eb86cef8e8c255059eaf82e55d9592c582d4c7e2d2fd51d512224553b2e704e","vout":0}] {"beaconid":1,"height":40,"amount":300000000,"address":"cr3k7enc4ha867mx3k2y0t9x8u9z9wc5aglyskvxwu","atype":240,"txhash":"28c1f349d687888f408392bb5a930852a5899502f98702d25d3786780134cd90","outindex":0,"isbeacon":true}
01000000018eb86cef8e8c255059eaf82e55d9592c582d4c7e2d2fd51d512224553b2e704e0000000000ffffffff0100000000000000007f6ac4514c7af87801288411e1a300aa6372336b37656e633468613836376d78336b3279307439783875397a3977633561676c79736b7678777581f0b84032386331663334396436383738383866343038333932626235613933303835326135383939353032663938373032643235643337383637383031333463643930800100000000
beaconid beacon id
height Burning COINS apply to the height of the chain
amount The CZZ number of burning COINS
address The address of the burning coin
atype The trading type of burning COINS
txhash Beacon outside the net coin to coin TXhash
outindex Deal out of
isbeacon Did the beacon send it
Burning currency report
Create a burning coin report transaction operation: After the user makes an application for burning COINS on the classzz main network, the lighthouse needs to send token from the external main network to the specified address according to the application, which is stipulated in the 5000 block of ClassZZ
If the token is not issued to the user, it is necessary to report the burning coin. Just like the transaction issued by lighthouse, information such as the upper chain height, number and address of the previous transaction is required
./czzctl burnprooft [{"txid":"78fa37e83761140329f994d35617deb7e8f90c8bb136be1effd9e3c7e55feccf","vout":0}] {"beaconid":1,"height":162,"amount":7500000000,"address":"cr3k7enc4ha867mx3k2y0t9x8u9z9wc5agjd64p3ea","assettype":240}
010000000178fa37e83761140329f994d35617deb7e8f90c8bb136be1effd9e3c7e55feccf0000000000ffffffff0100000000000000003e6ac4513af8388081a28501bf08eb00aa6372336b37656e633468613836376d78336b3279307439783875397a3977633561676a643634703365618080808000000000
beaconid beaconid
height Burning COINS apply to the height of the chain
amount The CZZ number of burning COINS
address The address of the burning coin
assettype The trading type of burning COINS
Whitelist report
Create a burning coin report transaction operation: Anyone can send a tip-off transaction when an external beacon address sends token to an off-white list address
./czzctl burnreportwhitelist [{"txid":"cd864c264fdd8aad4380571dd698f9dc88210907a4df248a717ff14a12dfbe94","vout":0}] {"beaconid":1,"assettype":240,"height":3297163,"txhash":"28c1f349d687888f408392bb5a930852a5899502f98702d25d3786780134cd90","inindex":0,"outindex":0,"amount":7500000000}
0100000001cd864c264fdd8aad4380571dd698f9dc88210907a4df248a717ff14a12dfbe940000000000ffffffff010000000000000000576ac4524c52f850808083324f8bb8403238633166333439643638373838386634303833393262623561393330383532613538393935303266393837303264323564333738363738303133346364393080808501bf08eb0000000000
beaconid beaconid
assettype The trading type of burning COINS
height Burning COINS apply to the height of the chain
txhash Outbound beacon addresses are transferred out of the non-whitelist addresses of the transaction hash
inindex Extranet transaction UTXO input subscript
outindex Extranet transaction UTXO output subscript
amount Balance involvedAcquisition exchange ratio
Acquisition exchange ratio
Operation:
Obtain the current exchange rate of the whole network, calculated by 1 CZZ./czzctl getrateinfo
{
"DOGE":25,
"LTC":0.0008,
"BTC":21,
"BCH":0.0008,
"BSV":0.0008,
}Gets the transactions to be sent by the lighthouse
./czzctl getburntxinfo
[
{
"AssetType": 240,
"Address" : "cr3k7enc4ha867mx3k2y0t9x8u9z9wc5agjd64p3ea",
"BeaconID" : 1,
"Amount" : 10,
"Height" : 30,
}
]According to the user's CZZ address, get the redeemable balance of that address
./czzctl getaddressexchangeinfo "cr3k7enc4ha867mx3k2y0t9x8u9z9wc5agjd64p3ea"
{
"lastHeight": 200,
"MaxRedeem": 50,
}Get the current exchange rate based on two tokens
入参("DOGE","LTC","BTC","BCH","BSV","CZZ"), 取其中之二计算汇率, (BTC单位为'聪')
./czzctl getrateinfo "BTC" "CZZ"
0.2
Obtain the amount that the lighthouse can redeem according to the lighthouse ID
The parameter unit returned is CZZ
./czzctl getbeaconexchangeasset 1
200
Obtain the current expired convertible balance of the lighthouse ID
./czzctl getbeaconfreeasset 1
{
"DOGE":1,
"LTC":1,
"BTC":1,
"BSV":1,
"BCH":1,
}Get the current mainstream asset that is not expired based on the lighthouse ID
The parameter unit returned is CZZ
./czzctl getbeaconnooverdueasset 1
200
Get the list of COINS you need based on the lighthouse ID
./czzctl getbeaconburninfo 1
{
"cr3k7enc4ha867mx3k2y0t9x8u9z9wc5agjd64p3ea":[
{
"amount":12,
"height":12,
"fee_r_amount":12,
"redeem_state":1,
}
]
}A key change
To produce a hex similar to an exchange transaction, you need a signature
./czzctl fastexchangetransaction [{"txid":"07189088eff197eccdfb1c2a42d83affe7549857161a82e028262ad49ed05a89","vout":0}] {"address":"cr3k7enc4ha867mx3k2y0t9x8u9z9wc5agjd64p3ea","beaconid":1,"assettype":240,"index":0,"height":3295847,"amount":10000000000,"exttxhash":"bd0f745c9fedb60bd1e199af80849b72613c15000c514e2003285198a3997d36"} {"assettype":240}
address CZZ address generated by the dog with the private key
beaconid The beaconid
assettype The type of currency(Doge: 0xF0, Ltc: 0xF1, Btc: 0xF2, Bsv: 0xF3, Bch: 0xF4)
index The subscript of the out of network transaction
height The height of the chain on an extranet transaction
amount The number of COINS sent to the dog address of the pledged address of the lighthouse by the transaction on the outer net
exttxhash Outside the network transaction of txhashassettype The type of currency(Doge: 0xF0, Ltc: 0xF1, Btc: 0xF2, Bsv: 0xF3, Bch: 0xF4)
010000000107189088eff197eccdfb1c2a42d83affe7549857161a82e028262ad49ed05a890000000000ffffffff020000000000000000806ac64c7cf87aaa6372336b37656e633468613836376d78336b3279307439783875397a3977633561676a64363470336561808083324a678502540be400b84062643066373435633966656462363062643165313939616638303834396237323631336331353030306335313465323030333238353139386133393937643336800000000000000000096ac406c581f080808000000000