> ## Documentation Index
> Fetch the complete documentation index at: https://docs.genlabs.co/llms.txt
> Use this file to discover all available pages before exploring further.

# TraceOutcome

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:20](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts#L20)

Result of waiting for an activation to complete.

Contains the raw result bytes and the full activation trace (all activations
in the call tree, in BFS traversal order).

The `terminalInfo` stores the activation that produced the result bytes,
guaranteeing that `resultBytes` and `terminalInfo` always refer to the same
activation.

## Constructors

### Constructor

> **new TraceOutcome**(`resultBytes`, `trace`, `terminalInfo`): `TraceOutcome`

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:25](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts#L25)

#### Parameters

##### resultBytes

`Uint8Array`

##### trace

[`ActivationInfo`](/reference/sdk/typescript/index/interfaces/ActivationInfo)\[]

##### terminalInfo

[`ActivationInfo`](/reference/sdk/typescript/index/interfaces/ActivationInfo)

#### Returns

`TraceOutcome`

## Accessors

### resultBytes

#### Get Signature

> **get** **resultBytes**(): `Uint8Array`

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:36](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts#L36)

The raw activation result bytes.

##### Returns

`Uint8Array`

***

### trace

#### Get Signature

> **get** **trace**(): [`ActivationInfo`](/reference/sdk/typescript/index/interfaces/ActivationInfo)\[]

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:44](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts#L44)

The full activation trace in BFS traversal order, starting from the root
activation. Provides access to events emitted at any point in the call tree.

##### Returns

[`ActivationInfo`](/reference/sdk/typescript/index/interfaces/ActivationInfo)\[]

***

### terminalInfo

#### Get Signature

> **get** **terminalInfo**(): [`ActivationInfo`](/reference/sdk/typescript/index/interfaces/ActivationInfo)

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:49](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts#L49)

The terminal activation that produced the result bytes.

##### Returns

[`ActivationInfo`](/reference/sdk/typescript/index/interfaces/ActivationInfo)

## Methods

### result()

> **result**\<`T`>(`deserialize`): `T`

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:54](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts#L54)

Decodes the raw result bytes using the provided deserializer.

#### Type Parameters

##### T

`T`

#### Parameters

##### deserialize

(`bytes`) => `T`

#### Returns

`T`

***

### intoResultBytes()

> **intoResultBytes**(): `Uint8Array`

Defined in: [metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:66](https://github.com/gen-bc/gen/blob/main/metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts#L66)

Returns a copy of the raw result bytes.

#### Returns

`Uint8Array`
