MintGrantRequest
Defined in: src/grants.ts:321
Inputs to mintGrantToken.
Properties
Section titled “Properties”grantId?
Section titled “grantId?”optional grantId?: string;Defined in: src/grants.ts:333
Override the random grant id, for tests and vectors.
nonce?
Section titled “nonce?”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
Section titled “principal”principal: string;Defined in: src/grants.ts:323
The caller the grant is for.
purpose
Section titled “purpose”purpose: string;Defined in: src/grants.ts:327
Why it is being minted.
scopes
Section titled “scopes”scopes: readonly string[];Defined in: src/grants.ts:325
What it may do.
ttlSeconds
Section titled “ttlSeconds”ttlSeconds: number;Defined in: src/grants.ts:329
Requested lifetime; capped at the configured maximum. Must be positive.
