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
{{ message }}
This repository was archived by the owner on May 27, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,17 +8,20 @@ This repository offers utilities for Bitcoin and RGB++ asset integration.
8
8
-[@rgbpp-sdk/ckb](./packages/ckb): Nervos CKB part of the SDK
9
9
-[@rgbpp-sdk/service](./packages/service): Wrapped interfaces of `Bitcoin/RGB++ Assets Service`
10
10
11
+
11
12
## RGB++ Code Examples
12
13
13
14
- Find code examples at https://github.com/ckb-cell/rgbpp-sdk/tree/develop/examples/rgbpp
14
15
16
+
15
17
## Related CKB Scripts (Contracts)
16
-
-[CKB Bitcoin SPV Type Script](https://github.com/ckb-cell/ckb-bitcoin-spv-contracts/tree/master/contracts/ckb-bitcoin-spv-type-lock): A [type script](https://docs.nervos.org/docs/basics/glossary#type-script) for [Bitcoin SPV](https://bitcoinwiki.org/wiki/simplified-payment-verification) clients which synchronize [Bitcoin](https://bitcoin.org) state into [CKB](https://github.com/nervosnetwork/ckb)
18
+
-[CKB Bitcoin SPV Type Script](https://github.com/ckb-cell/ckb-bitcoin-spv-contracts/tree/master/contracts/ckb-bitcoin-spv-type-lock): A [type script](https://docs-old.nervos.org/docs/basics/glossary#type-script) for [Bitcoin SPV](https://bitcoinwiki.org/wiki/simplified-payment-verification) clients which synchronize [Bitcoin](https://bitcoin.org) state into [CKB](https://github.com/nervosnetwork/ckb)
19
+
20
+
-**RGB++ scripts/contracts**: [RgbppLockScript](https://github.com/ckb-cell/rgbpp/tree/main/contracts/rgbpp-lock) and [BtcTimeLockScript](https://github.com/ckb-cell/rgbpp/tree/main/contracts/btc-time-lock)
-[RgbppLockScript and BtcTimeLockScript](https://github.com/ckb-cell/rgbpp-sdk/blob/63df2dcd95b1b735b5d235e156e4361a3c87b0ac/packages/ckb/src/constants/index.ts#L12-L206)
@@ -50,9 +53,11 @@ This repository offers utilities for Bitcoin and RGB++ asset integration.
50
53
2. continuously fetch request from the queue through a **cron job**
51
54
3. check whether the **confirmations** of `req.rgbpp_btc_txid` is sufficient
52
55
4. generate the **witnesses for RgbppLocks** in the `rgbpp_ckb_tx_virtual`
53
-
5. add a **paymaster cell** into `rgbpp_ckb_tx_virtual`.inputs if the CKB capacity is insufficient
56
+
5. add a **paymaster cell** into `rgbpp_ckb_tx_virtual`inputs if the CKB capacity is insufficient
54
57
1. need to **verify the existence of paymaster UTXO** in the rgbpp_btc_tx
58
+
> based on the exchange rates of BTC and CKB, [the paymaster BTC UTXO's value](https://api.rgbpp.io/docs/static/index.html#/RGB%2B%2B/get_rgbpp_v1_paymaster_info) required to subsidize a paymaster CKB cell is approximately: `paymaster_utxo_sats ~= 316 * ${ckb_price} / ${btc_price} * 100000000`
55
59
2. sign the paymaster cell and the entire transaction if needed
60
+
56
61
6.**finalize** the `rgbpp_ckb_tx_virtual` to a `rgbpp_ckb_tx`
57
62
7.**broadcast**`rgbpp_ckb_tx` and mark the job as completed upon tx-confirmation
0 commit comments