Skip to content

MintGrantRequest

Defined in: src/grants.ts:321

Inputs to mintGrantToken.

optional grantId?: string;

Defined in: src/grants.ts:333

Override the random grant id, for tests and vectors.


optional nonce?: Uint8Array<ArrayBufferLike>;

Defined in: src/grants.ts:335

Fixed 24-byte nonce, for test vectors only.


optional now?: number;

Defined in: src/grants.ts:331

Override the clock (seconds), for tests and vectors.


principal: string;

Defined in: src/grants.ts:323

The caller the grant is for.


purpose: string;

Defined in: src/grants.ts:327

Why it is being minted.


scopes: readonly string[];

Defined in: src/grants.ts:325

What it may do.


ttlSeconds: number;

Defined in: src/grants.ts:329

Requested lifetime; capped at the configured maximum. Must be positive.