Skip to main content

AtLeastScript

A NativeScript that validates a transaction if at least nRequired child NativeScripts validate it

export interface AtLeastScript {
  eval(ctx: NativeContext): boolean
  kind: "AtLeast"
  nRequired: number
  scripts: NativeScript[]
  toCbor(): number[]
  toJsonSafe(): AtLeastScriptJsonSafe
}

Properties

eval

atLeastScript.eval satisfies (ctx: NativeContext) => boolean

kind

atLeastScript.kind satisfies "AtLeast"

nRequired

atLeastScript.nRequired satisfies number

scripts

atLeastScript.scripts satisfies NativeScript[]

toCbor

atLeastScript.toCbor satisfies () => number[]

toJsonSafe

atLeastScript.toJsonSafe satisfies () => AtLeastScriptJsonSafe