function createIntentMandate
createIntentMandate(params: CreateIntentMandateParams): Promise<IntentMandateClass>

Creates a new IntentMandate with validation

Note: IntentMandates are never signed according to AP2 specification. They represent user purchase intent but do not require cryptographic signatures.

Parameters

  • Parameters for creating the mandate

Return Type

Promise resolving to a new IntentMandateClass instance

Throws

MandateValidationError if validation fails

DateParseError if date format is invalid

Usage

import { createIntentMandate } from ".";