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
LGTM. Do you mean supports feeType: number | recommendedFeeType?
I was thinking maybe we can add a prop in the APIs (feeType or recommendedFeeType):
sendBtc({
...
feeRate: 1,// optional, default to undefinedfeeType: 'halfHourFee',// optional, if "feeRate == undefined", use FeesRecommended[feeRate] as the fee rate});
Tune the default fee_rate of a btc transaction to the
fastestFee
ofcurl -sSL "https://mempool.space/api/v1/fees/recommended"
.Related Code
https://github.com/ckb-cell/rgbpp-sdk/blob/44b8eda57b5a51a0a7b9a0ebd181b19d5e8db2c6/packages/btc/src/query/source.ts#L153-L161
https://github.com/ckb-cell/rgbpp-sdk/blob/44b8eda57b5a51a0a7b9a0ebd181b19d5e8db2c6/examples/rgbpp/local/transfer-btc.ts#L34-L35
The text was updated successfully, but these errors were encountered: