atomicals-js
atomicals-js copied to clipboard
I can not index my ft token on regTest. what's the problem?
js deploy log
90014b0214780796540503ff3864b31a854dfc0d59116846e5b59a70601faed8 sequence: (35998)
Solution found, try composing the transaction...
rawtx 010000000001014149a398bc83be0ac3cf5dd774b8d1aea471ef6b070670136f039ff700e5167201000000009e8c000002ad0d000000000000225120338eeb03dd8b126a47b9e0177ded27e7700ddf93595afa90f8a44221cb086edcc3a76205000000002251209bc722ea83b0c5df6abc01d721500b944011575df445aa41adcdae25ccc6444e0140dc468ae4dc2a0cea33eb913df5cf40d983c0533f3fbb7f89d5dc54d839b383daf2f4c2a579e6b9e86fd036b0af29a8c3633e45e25daea94c0a0f2f185dad4d8300000000
Success sent tx: 90014b0214780796540503ff3864b31a854dfc0d59116846e5b59a70601faed8
Workers have completed their tasks.
...
...
...
...
Worker stopped with exit code 1
Bitwork matches commit txid! 90014b0214780796540503ff3864b31a854dfc0d59116846e5b59a70601faed8 @ time: 1703658801
got one finalCopyData:{"name":"weixuefng","description":"pony test arc20","decimals":0,"links":{"a":"https://weixuefeng.github.io"},"legal":{"terms":"MIT"},"issuer":{},"args":{"mint_amount":10000,"mint_height":0,"max_mints":1000,"mint_bitworkc":"4308","mint_bitworkr":"8091","request_ticker":"xxww","bitworkc":"9001","nonce":1677780,"time":1703658744}}
got one finalPrelimTx:{"version":1,"locktime":0,"ins":[{"hash":{"type":"Buffer","data":[65,73,163,152,188,131,190,10,195,207,93,215,116,184,209,174,164,113,239,107,7,6,112,19,111,3,159,247,0,229,22,114]},"index":1,"script":{"type":"Buffer","data":[]},"sequence":35998,"witness":[{"type":"Buffer","data":[220,70,138,228,220,42,12,234,51,235,145,61,245,207,64,217,131,192,83,63,63,187,127,137,213,220,84,216,57,179,131,218,242,244,194,165,121,230,185,232,111,208,54,176,175,41,168,195,99,62,69,226,93,174,169,76,10,15,47,24,93,173,77,131]}]}],"outs":[{"script":{"type":"Buffer","data":[81,32,51,142,235,3,221,139,18,106,71,185,224,23,125,237,39,231,112,13,223,147,89,90,250,144,248,164,66,33,203,8,110,220]},"value":3501},{"script":{"type":"Buffer","data":[81,32,155,199,34,234,131,176,197,223,106,188,1,215,33,80,11,148,64,17,87,93,244,69,170,65,173,205,174,37,204,198,68,78]},"value":90351555}]}
got one finalSequence:35998
Worker stopped with exit code 1
Worker stopped with exit code 1
Worker stopped with exit code 1
Worker stopped with exit code 1
Worker stopped with exit code 1
Worker stopped with exit code 1
...
Detected Funding UTXO (90014b0214780796540503ff3864b31a854dfc0d59116846e5b59a70601faed8:0) with value 3501 for funding...
data: 313730333635383830363a3339353830353239
embed: 6a13313730333635383830363a3339353830353239
Broadcasting tx... d88dc9c2e01b427f921c0ba39db5281e62834f6c1ae1c446ff1902e70cba26da
rawtx 01000000000101d8ae1f60709ab5e5466811590dfc4d851ab36438ff03055496077814024b01900000000000ffffffff0122020000000000002251209bc722ea83b0c5df6abc01d721500b944011575df445aa41adcdae25ccc6444e0340104835950ccac39efd945e699880ee343705b9a072a0ed4935d5d4769c95e9747ef8e3886feb6a0f4e72f04787bf5f78dc9abeec151a69d938e7dcd1266f2feafd330120843f9c326f71bf6b6cb4cbd0672cdbf076249fe94905665bef81368c94a83940ac00630461746f6d036466744d0201a76461726773a96474696d651a658bc4f8656e6f6e63651a001999d468626974776f726b636439303031696d61785f6d696e74731903e86b6d696e745f616d6f756e741927106b6d696e745f686569676874006d6d696e745f626974776f726b6364343330386d6d696e745f626974776f726b7264383039316e726571756573745f7469636b65726478787777646e616d6569776569787565666e67656c6567616ca1657465726d73634d4954656c696e6b73a16161781c68747470733a2f2f77656978756566656e672e6769746875622e696f66697373756572a068646563696d616c73006b6465736372697074696f6e6f706f6e7920746573742061726332306821c0843f9c326f71bf6b6cb4cbd0672cdbf076249fe94905665bef81368c94a8394000000000
Success sent tx: d88dc9c2e01b427f921c0ba39db5281e62834f6c1ae1c446ff1902e70cba26da
{
"success": true,
"data": {
"commitTxid": "90014b0214780796540503ff3864b31a854dfc0d59116846e5b59a70601faed8",
"revealTxid": "d88dc9c2e01b427f921c0ba39db5281e62834f6c1ae1c446ff1902e70cba26da",
"atomicalId": "90014b0214780796540503ff3864b31a854dfc0d59116846e5b59a70601faed8i0"
}
}
indexer Log:
Atomicals op script found: 03646674
Atomicals envelope and operation found: dft
Atomicals -----> envelope payload: a76461726773a96474696d651a658bc4f8656e6f6e63651a001999d468626974776f726b636439303031696d61785f6d696e74731903e86b6d696e745f616d6f756e741927106b6d696e745f686569676874006d6d696e745f626974776f726b6364343330386d6d696e745f626974776f726b7264383039316e726571756573745f7469636b65726478787777646e616d6569776569787565666e67656c6567616ca1657465726d73634d4954656c696e6b73a16161781c68747470733a2f2f77656978756566656e672e6769746875622e696f66697373756572a068646563696d616c73006b6465736372697074696f6e6f706f6e792074657374206172633230
op_name dft payload: b"\xa7dargs\xa9dtime\x1ae\x8b\xc4\xf8enonce\x1a\x00\x19\x99\xd4hbitworkcd9001imax_mints\x19\x03\xe8kmint_amount\x19'\x10kmint_height\x00mmint_bitworkcd4308mmint_bitworkrd8091nrequest_tickerdxxwwdnameiweixuefngelegal\xa1etermscMITelinks\xa1aax\x1chttps://weixuefeng.github.iofissuer\xa0hdecimals\x00kdescriptionopony test arc20"
res is: b'\xd8\xae\x1f`p\x9a\xb5\xe5Fh\x11Y\r\xfcM\x85\x1a\xb3d8\xff\x03\x05T\x96\x07x\x14\x02K\x01\x90'
INFO:ElectrumX:[12] sent tx: d88dc9c2e01b427f921c0ba39db5281e62834f6c1ae1c446ff1902e70cba26da
start parse protocols--->
Atomicals op script found: 03646674
Atomicals envelope and operation found: dft
Atomicals -----> envelope payload: a76461726773a96474696d651a658bc4f8656e6f6e63651a001999d468626974776f726b636439303031696d61785f6d696e74731903e86b6d696e745f616d6f756e741927106b6d696e745f686569676874006d6d696e745f626974776f726b6364343330386d6d696e745f626974776f726b7264383039316e726571756573745f7469636b65726478787777646e616d6569776569787565666e67656c6567616ca1657465726d73634d4954656c696e6b73a16161781c68747470733a2f2f77656978756566656e672e6769746875622e696f66697373756572a068646563696d616c73006b6465736372697074696f6e6f706f6e792074657374206172633230
op_name dft payload: b"\xa7dargs\xa9dtime\x1ae\x8b\xc4\xf8enonce\x1a\x00\x19\x99\xd4hbitworkcd9001imax_mints\x19\x03\xe8kmint_amount\x19'\x10kmint_height\x00mmint_bitworkcd4308mmint_bitworkrd8091nrequest_tickerdxxwwdnameiweixuefngelegal\xa1etermscMITelinks\xa1aax\x1chttps://weixuefeng.github.iofissuer\xa0hdecimals\x00kdescriptionopony test arc20"
res is: b'\xd8\xae\x1f`p\x9a\xb5\xe5Fh\x11Y\r\xfcM\x85\x1a\xb3d8\xff\x03\x05T\x96\x07x\x14\x02K\x01\x90'
INFO:MemPool:Found potential Atomicals operation in mempool transaction d88dc9c2e01b427f921c0ba39db5281e62834f6c1ae1c446ff1902e70cba26da, op=dft
INFO:MemPool:Potential Atomicals mint FT in mempool transaction d88dc9c2e01b427f921c0ba39db5281e62834f6c1ae1c446ff1902e70cba26da, atomicalId=90014b0214780796540503ff3864b31a854dfc0d59116846e5b59a70601faed8i0
INFO:SessionManager:resuming listening for incoming connections
INFO:SessionManager:TCP server listening on 0.0.0.0:50010
INFO:SessionManager:WS server listening on all_interfaces:50020
INFO:MemPool:2 txs 0.00 MB touching 2 addresses
INFO:Prefetcher:new block height 524 hash 281951eaf553f7268d5b66cf1f927b42f8232dbd4b250bc2ce4edb2ed8d125c2
INFO:DB:flush #17 took 0.0s. Height 524 txs: 753 (+6) Atomical txs: 0 (+0)
INFO:BlockProcessor:processed 4 blocks size 0.00 MB in 0.0s
INFO:ElectrumX:[13] TCP 127.0.0.1:60268, 0 total
INFO:SessionManager:maximum sessions 0 reached, stopping new connections until count drops to 0
INFO:SessionManager:closing down server for tcp://0.0.0.0:50010
INFO:SessionManager:closing down server for ws://all_interfaces:50020
INFO:MemPool:0 txs 0.00 MB touching 0 addresses
INFO:SessionManager:resuming listening for incoming connections
INFO:SessionManager:TCP server listening on 0.0.0.0:50010
INFO:SessionManager:WS server listening on all_interfaces:50020
INFO:MemPool:0 txs 0.00 MB touching 0 addresses
INFO:MemPool:0 txs 0.00 MB touching 0 addresses
INFO:MemPool:0 txs 0.00 MB touching 0 addresses
INFO:MemPool:0 txs 0.00 MB touching 0 addresses
then i generate 3 block, request ticker, i got:
curl --location --request POST 'http://192.168.1.5:8080/proxy/blockchain.atomicals.get_by_ticker' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
"params": ["xxww"]
}'
{
"success": true,
"response": {
"result": {
"status": null,
"candidate_atomical_id": null,
"atomical_id": null,
"candidates": [],
"type": "ticker"
}
}
}