oc · docs
documentation

@orangecheck/auth-core


@orangecheck/auth-core / bondMeets

Function: bondMeets()

function bondMeets(payload: SessionPayload, need: {
  maxAgeSecs?: number;
  minDays?: number;
  minSats?: number;
}): boolean;

Defined in: index.ts:212

True when the account is backed by a coin worth at least minSats, unspent at least minDays days, and the issuer checked it within maxAgeSecs (default: no limit). Compare against the floor ladder: a minSats of 50000 is met by a sats_floor of 100000, not 10000.

Parameters

ParameterType
payloadSessionPayload
need{ maxAgeSecs?: number; minDays?: number; minSats?: number; }
need.maxAgeSecs?number
need.minDays?number
need.minSats?number

Returns

boolean