Closed duanyytop closed 3 months ago
Using CKB batch RPC requests can reduce the network time, so adding batch RPC request support to the collector is necessary.
See: https://github.com/ckb-cell/rgbpp-sdk/pull/200#discussion_r1618267466
Considering the collector only has one RPC request of the CKB node, the function getLiveCells will be added to the collector.
getLiveCells
async getLiveCells(outPoints: CKBComponents.OutPoint[], withData = false): Promise<CKBComponents.LiveCell[]> {
https://github.com/ckb-cell/rgbpp-sdk/pull/231
Background
Using CKB batch RPC requests can reduce the network time, so adding batch RPC request support to the collector is necessary.
See: https://github.com/ckb-cell/rgbpp-sdk/pull/200#discussion_r1618267466
What needs to be done
Considering the collector only has one RPC request of the CKB node, the function
getLiveCells
will be added to the collector.