Skip to content

resumeBalanceRefresh ​

Allow balance refreshes for an account after a matching pause.

Defaults accountId to the active account (state.activeAccountId).

Import ​

ts
import { resumeBalanceRefresh } from "@0xcurvy/curvy-sdk/actions";

Usage ​

ts
resumeBalanceRefresh();             // active account
resumeBalanceRefresh({ accountId }); // explicit account

Signature ​

ts
function resumeBalanceRefresh(parameters?: ResumeBalanceRefreshParameters): void

Returns ​

void

The action resolves or returns the value shown in the signature.

Parameters ​

accountId ​

  • Type: string
  • Required: no

The account whose balance-refresh lock should be resumed. Defaults to the active account.

ts
resumeBalanceRefresh({
  accountId, 
});

config ​

  • Type: CurvyConfig
  • Required: no

Curvy config to use. Defaults to the ambient config.

ts
resumeBalanceRefresh({
  config, 
});

Errors ​

Errors from config resolution and the underlying SDK operation are propagated to the caller.

Source ​

packages/@0xcurvy/sdk/src/actions/balances/resumeBalanceRefresh.ts