openclaw-overlay-plugin 0.7.26 → 0.7.28
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.
|
@@ -184,8 +184,9 @@ export async function cmdBaemailRefund(requestId) {
|
|
|
184
184
|
try {
|
|
185
185
|
// Load UTXOs
|
|
186
186
|
const address = walletIdentity.address;
|
|
187
|
-
const utxosResp = await fetchWithTimeout(`https://api.whatsonchain.com/v1/bsv/main/address/${address}/unspent`);
|
|
188
|
-
const
|
|
187
|
+
const utxosResp = await fetchWithTimeout(`https://api.whatsonchain.com/v1/bsv/main/address/${address}/unspent/all`);
|
|
188
|
+
const data = await utxosResp.json();
|
|
189
|
+
const utxos = data.result || [];
|
|
189
190
|
if (!utxos || utxos.length === 0) {
|
|
190
191
|
return fail('No UTXOs available for refund');
|
|
191
192
|
}
|
package/package.json
CHANGED