@omnity/ree-client-ts-sdk 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/ree-sdk.cjs.js +21 -21
- package/dist/ree-sdk.es.js +1329 -1327
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ const poolInfo = await client.getPoolInfo("pool-address");
|
|
|
70
70
|
const transaction = await client.createTransaction({
|
|
71
71
|
address: "bc1p...", // Bitcoin address for runes
|
|
72
72
|
paymentAddress: "bc1q...", // Payment address for BTC
|
|
73
|
-
// feeRate:
|
|
73
|
+
// feeRate: 25, // Optional manual fee rate in sat/vbyte
|
|
74
74
|
});
|
|
75
75
|
|
|
76
76
|
// Add a single intention (e.g., swap BTC for runes)
|
|
@@ -112,7 +112,7 @@ const result = await transaction.send(signedPsbt.toHex());
|
|
|
112
112
|
const transaction = await client.createTransaction({
|
|
113
113
|
address: "bc1p...",
|
|
114
114
|
paymentAddress: "bc1q...",
|
|
115
|
-
// feeRate:
|
|
115
|
+
// feeRate: 25,
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
// Add multiple intentions in a single transaction
|
|
@@ -196,7 +196,7 @@ function WalletComponent() {
|
|
|
196
196
|
const executeComplexTransaction = async () => {
|
|
197
197
|
// Create transaction with multiple pools
|
|
198
198
|
const tx = await createTransaction({
|
|
199
|
-
|
|
199
|
+
feeRate: 25, // Optional manual fee rate override
|
|
200
200
|
});
|
|
201
201
|
|
|
202
202
|
// Add multiple intentions
|
|
@@ -375,7 +375,7 @@ new ReeClient(config: Config)
|
|
|
375
375
|
|
|
376
376
|
##### Transaction Methods
|
|
377
377
|
|
|
378
|
-
- `createTransaction(params?: { feeRate?:
|
|
378
|
+
- `createTransaction(params?: { feeRate?: number }): Promise<Transaction>` - Create a transaction with optional manual fee rate
|
|
379
379
|
|
|
380
380
|
### Transaction
|
|
381
381
|
|