ckb-cell / rgbpp-sdk

Utilities for Bitcoin and RGB++ asset integration
ISC License
52 stars 16 forks source link

Allow manually specifying whether a paymaster output is required #198

Closed ShookLyngs closed 2 months ago

ShookLyngs commented 2 months ago

Description

Currently the @rgbpp-sdk/btc checks whether the CKB_VTX has included sufficient capacity in its inputs. If it does, the transaction is marked as needPaymaster = false, otherwise a payment output is generated for the paymaster.

However, In some cases, the paymaster output in the BTC_TX is requested to be NOT NEEDED:

Checklist

ShookLyngs commented 2 months ago

some APIs don't have the needPaymasterCell returned in the CKB_VTX result

ShookLyngs commented 2 months ago

add a needPaymaster?: boolean option in the sendRgbppUtxos() API