Skip to content

@lelantos-org/sdk / protocol / PaymentProofResult

Type Alias: PaymentProofResult ​

ts
type PaymentProofResult = 
  | {
  asset: AssetId;
  memo?: string;
  ok: true;
  value: CircuitAmount;
}
  | {
  ok: false;
  reason: PaymentProofFailure;
};

Defined in: @lelantos-org/sdk/dist/bundle/payment-proof.d.ts:53

What a payment proof establishes, or why it establishes nothing.

Union Members ​

Type Literal ​

ts
{
  asset: AssetId;
  memo?: string;
  ok: true;
  value: CircuitAmount;
}

asset ​

ts
asset: AssetId;

memo? ​

ts
optional memo?: string;

The memo the output carries, as the payee reads it. Absent when it carries none.

ok ​

ts
ok: true;

value ​

ts
value: CircuitAmount;

Type Literal ​

ts
{
  ok: false;
  reason: PaymentProofFailure;
}