ckb-js / kuai

A protocol and framework for building universal dapps on Nervos CKB
MIT License
22 stars 11 forks source link

Proposal Draft of supporting chained transaction in Kuai Project #348

Open Keith-CY opened 1 year ago

Keith-CY commented 1 year ago

⚠️ This is still a draft to discuss

Lumos supports chained transactions, which can effectively increase the flow of transactions.

However, considering the issue of censorship, transactions signed by users should be sent from wallets to CKB nodes directly. This makes it difficult to efficiently arrange the inputs and outputs of transactions in sequential order on the dapp service to leverage the features of chained transactions.

To integrate this advantage as much as possible, it is hoped that projects of Kuai can provide an optional feature by exposing a hook to obtain the transactions submitted by wallets. These transactions can be used on the server side as a reference for chained transactions.

This proposal should include a development paradigm about the chained transactions and a spec of the hook to sync pending transactions

Keith-CY commented 1 year ago

It could be a reserved API for DApp to push pending transaction to kuai project, similar to a feature we've designed to share schema of a kuai project