An Invocation represents a UCAN that can be presented to a service provider to invoke or "exercise" a Capability. You can think of invocations as a serialized function call, where the ability or can portion of the Capability acts as the function name, and the resource (with) and caveats (nb) of the capability act as function arguments.

Most Invocations will require valid proofs, which consist of a chain of Delegations. The service provider will inspect the proofs to verify that the invocation has sufficient privileges to execute.

Type Parameters

Hierarchy

Properties

Map of all the IPLD blocks that were included with this delegation DAG. Usually this would be blocks corresponding to proofs, however it may also contain other blocks e.g. things that capabilities or facts may link. It is not guaranteed to include all the blocks of this DAG, as it represents a partial DAG of the delegation desired for transporting.

Also note that map may contain blocks that are not part of this delegation DAG. That is because Delegation is usually constructed as view / selection over the CAR which may contain bunch of other blocks.

Deprecated

capabilities: [C]
expiration: number
nonce?: string
notBefore?: number

The root block of the IPLD DAG this is the view of. This is the the block from which all other blocks are linked directly or transitively.

version: `${number}.${number}.${number}`

Methods

Generated using TypeDoc