Skip to content
API reference

Reserved funds

The two functions that list what stopped payments hold and give it back.

A payment that stops halfway can keep part of the balance reserved. Reserved funds shows a list of those payments and a Release button.

listReservedSpends

Use it to show what part of the balance is held, and by which payments.

function listReservedSpends(
  session: NimbusSession,
  _args?: Readonly<Record<string, never>>,
): Promise<readonly ReservedSpend[]>;

Types used: NimbusSession, ReservedSpend

Example

import {  } from "@umbra/nimbus-solana-web";
import type { NimbusSession } from "@umbra/nimbus-solana-web";

declare const : NimbusSession;
const  = (await (, {})).(() => . === "unsent");

Parameters

Prop

Type

Returns

Promise<readonly ReservedSpend[]>

Generated from the TSDoc in sdks/typescript/nimbus-solana-web/src/reserved.ts.

releaseReservedNotes

Use it behind a Release button, for payments that are not running.

function releaseReservedNotes(
  session: NimbusSession,
  _args?: Readonly<Record<string, never>>,
  options?: { readonly spendId?: string; readonly force?: boolean },
): Promise<ReleasedNotes>;

Types used: NimbusSession, ReleasedNotes

Example

import {  } from "@umbra/nimbus-solana-web";
import type { NimbusSession } from "@umbra/nimbus-solana-web";

declare const : NimbusSession;
const { , ,  } = await (, {});

Parameters

Prop

Type

Returns

Promise<ReleasedNotes>

Generated from the TSDoc in sdks/typescript/nimbus-solana-web/src/reserved.ts.

Last updated

On this page