The collector and btcDataSource will be constructed in the rgbpp-sdk-service with some necessary variables from the environment. The necessary request and response for the L1 transfer in the rgbpp-sdk-service are as follows:
interface RgbppTransferReq {
// The transferred RGB++ xUDT type script args
xudtTypeArgs: string;
// The rgbpp assets cell lock script args array whose data structure is: out_index | btc_tx_id
rgbppLockArgsList: string[];
// The xUDT amount to be transferred
transferAmount: Hex;
// The sender BTC address
fromBtcAddress: string;
// The receiver BTC address
toBtcAddress: string;
}
interface RgbppTransferResp {
// The JSON string for the `BtcTransferVirtualTxResult`
ckbVirtualTxResult: string;
// The BTC PSBT hex string which can be used to construct Bitcoin PSBT
btcPsbtHex: Hex;
}
Changes
buildRgbppTransferTx
from rgbpp package to generate CKB virtual TX and BTC tx to be signedbuildRgbppTransferTx
Function Signature
The
collector
andbtcDataSource
will be constructed in thergbpp-sdk-service
with some necessary variables from the environment. The necessary request and response for the L1 transfer in thergbpp-sdk-service
are as follows:Related PR
218