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

# primitives/DecodedData

> Auto-generated API documentation

[**@tevm/voltaire**](../index.mdx)

***

[@tevm/voltaire](../index.mdx) / primitives/DecodedData

# primitives/DecodedData

## Type Aliases

### DecodedDataType

> **DecodedDataType**\<`T`> = `object`

Defined in: [src/primitives/DecodedData/DecodedDataType.ts:9](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/DecodedData/DecodedDataType.ts#L9)

DecodedData - Generic decoded structure from ABI-encoded data

Represents decoded values with their corresponding ABI types.
Useful for working with ABI-encoded data in a type-safe manner.

#### Type Parameters

##### T

`T` = `unknown`

The type of the decoded values

#### Properties

##### types

> `readonly` **types**: readonly `string`\[]

Defined in: [src/primitives/DecodedData/DecodedDataType.ts:11](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/DecodedData/DecodedDataType.ts#L11)

##### values

> `readonly` **values**: `T`

Defined in: [src/primitives/DecodedData/DecodedDataType.ts:10](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/DecodedData/DecodedDataType.ts#L10)

## Functions

### \_from()

> **\_from**\<`T`>(`values`, `types`): [`DecodedDataType`](#decodeddatatype)\<`T`>

Defined in: [src/primitives/DecodedData/from.js:17](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/DecodedData/from.js#L17)

Create DecodedData from values and types

#### Type Parameters

##### T

`T`

#### Parameters

##### values

`T`

Decoded values

##### types

readonly `string`\[]

ABI types

#### Returns

[`DecodedDataType`](#decodeddatatype)\<`T`>

DecodedData

#### Example

```typescript theme={null}
const data = DecodedData.from(
  { amount: 100n, recipient: "0x..." },
  ["uint256", "address"]
);
```

***

### from()

> **from**\<`T`>(`values`, `types`): [`DecodedDataType`](#decodeddatatype)\<`T`>

Defined in: [src/primitives/DecodedData/index.ts:9](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/DecodedData/index.ts#L9)

Create DecodedData from values and types

#### Type Parameters

##### T

`T`

#### Parameters

##### values

`T`

##### types

readonly `string`\[]

#### Returns

[`DecodedDataType`](#decodeddatatype)\<`T`>
