You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, we use CKB RPC getTransactions to get all transactions that include BTC_TIME_LOCK cells, then get btc_txid from lock args.
Use btc_txid to determine whether the corresponding transaction is the corresponding CKB isomorphic transaction.
For CKB RPC getTransactions, we can optimize it through scriptSearchMode: 'partial' in the future to reduce the number of Cells that need to be checked and optimize the query speed.
But this depends on rich indexer, we need to wait for the node to support rich indexer.
ahonn
changed the title
Optimize the search process for BTC Time Lock CKB isomorphic transactions
Optimize the search process for BTC_TIME_LOCK ckb transactions
Apr 2, 2024
For now, we use CKB RPC
getTransactions
to get all transactions that include BTC_TIME_LOCK cells, then getbtc_txid
from lock args.Use btc_txid to determine whether the corresponding transaction is the corresponding CKB isomorphic transaction.
For CKB RPC
getTransactions
, we can optimize it throughscriptSearchMode: 'partial'
in the future to reduce the number of Cells that need to be checked and optimize the query speed.But this depends on rich indexer, we need to wait for the node to support rich indexer.
References
The text was updated successfully, but these errors were encountered: