# StarknetSpvWithdrawalData

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:13](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L13)

Represents parsed data for withdrawal (calling `claim()`) of the assets in the SPV vault (UTXO-controlled vault)

## Extends

* [`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md)

## Constructors

### Constructor

```
new StarknetSpvWithdrawalData(btcTx): StarknetSpvWithdrawalData;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:69](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L69)

Parses and creates a withdrawal data from the bitcoin transaction

#### Parameters

| Parameter | Type    |
| --------- | ------- |
| `btcTx`   | `BtcTx` |

#### Returns

`StarknetSpvWithdrawalData`

#### Throws

If the bitcoin transaction has invalid formatting

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`constructor`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#constructor)

## Properties

### btcTx

```
readonly btcTx: BtcTx;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:62](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L62)

A bitcoin transaction which contains this vault withdrawal data

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`btcTx`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#btctx)

***

### callerFeeRate

```
readonly callerFeeRate: bigint;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:52](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L52)

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`callerFeeRate`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#callerfeerate)

***

### deserializers

```
static deserializers: object = {};
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:25](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L25)

A mapping of deserializers for different spv vault withdrawal data types coming from different smart chain implementations

#### Index Signature

```
[type: string]: (serialized) => any
```

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`deserializers`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#deserializers)

***

### executionExpiry

```
readonly executionExpiry: number;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:57](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L57)

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`executionExpiry`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#executionexpiry)

***

### executionFeeRate

```
readonly executionFeeRate: bigint;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:53](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L53)

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`executionFeeRate`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#executionfeerate)

***

### executionHash?

```
readonly optional executionHash: string;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:56](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L56)

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`executionHash`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#executionhash)

***

### frontingFeeRate

```
readonly frontingFeeRate: bigint;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:54](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L54)

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`frontingFeeRate`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#frontingfeerate)

***

### rawAmounts

```
readonly rawAmounts: bigint[];
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:50](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L50)

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`rawAmounts`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#rawamounts)

***

### recipient

```
readonly recipient: string;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:49](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L49)

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`recipient`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#recipient)

## Methods

### deserialize()

```
static deserialize<T>(data): T;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:34](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L34)

Deserializer parsing the chain-specific spv vault withdrawal data from a JSON-compatible object representation

#### Type Parameters

| Type Parameter                                                                                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `T` *extends* [`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md) |

#### Parameters

| Parameter | Type  | Description |
| --------- | ----- | ----------- |
| `data`    | `any` |             |

#### Returns

`T`

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`deserialize`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#deserialize)

***

### getCallerFee()

```
getCallerFee(): bigint[];
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:164](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L164)

Returns the fee paid out to the caller which submits the withdrawal transaction data on the smart chain, the fee is paid out from all the respective tokens being withdrawn from the vault (NOTE: This returns raw token amounts, which must be scaled by their respective vault configured multiplier to represent the actual amount of tokens)

#### Returns

`bigint`\[]

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getCallerFee`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getcallerfee)

***

### getCreatedVaultUtxo()

```
getCreatedVaultUtxo(): string;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:249](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L249)

Gets the new vault ownership UTXO created by this transaction

#### Returns

`string`

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getCreatedVaultUtxo`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getcreatedvaultutxo)

***

### getExecutionData()

```
getExecutionData(): ExecutionData;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:223](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L223)

Returns the execution action to be scheduled via the execution contract (swap+) or `null` if none specified

#### Returns

[`ExecutionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/type-aliases/ExecutionData.md)

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getExecutionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getexecutiondata)

***

### getExecutionFee()

```
getExecutionFee(): bigint[];
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:183](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L183)

Returns the fee that is transferred to the execution contract if swap+ execution action is assigned, (NOTE: This returns raw token amounts, which must be scaled by their respective vault configured multiplier to represent the actual amount of tokens)

#### Returns

`bigint`\[]

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getExecutionFee`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getexecutionfee)

***

### getFrontingAmount()

```
getFrontingAmount(): bigint[];
```

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:41](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L41)

#### Returns

`bigint`\[]

#### Inherit Doc

***

### getFrontingFee()

```
getFrontingFee(): bigint[];
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:174](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L174)

Returns the fee paid out to the fronter which fronts the actual withdrawal on the smart chain, the fee is paid out from all the respective tokens being withdrawn from the vault (NOTE: This returns raw token amounts, which must be scaled by their respective vault configured multiplier to represent the actual amount of tokens)

#### Returns

`bigint`\[]

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getFrontingFee`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getfrontingfee)

***

### getFrontingId()

```
getFrontingId(): string;
```

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:97](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L97)

Computes a unique withdrawal fronting ID that is to be used when fronting the withdrawal

#### Returns

`string`

#### Overrides

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getFrontingId`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getfrontingid)

***

### getNewVaultBtcAmount()

```
getNewVaultBtcAmount(): number;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:263](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L263)

Gets the output btc amount (in satoshis) assigned to the new vault ownership UTXO

#### Returns

`number`

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getNewVaultBtcAmount`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getnewvaultbtcamount)

***

### getNewVaultScript()

```
getNewVaultScript(): Buffer;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:256](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L256)

Gets the output locking script used for the new vault ownership UTXO

#### Returns

`Buffer`

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getNewVaultScript`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getnewvaultscript)

***

### getOutputWithoutFees()

```
getOutputWithoutFees(): bigint[];
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:154](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L154)

Returns the amounts of tokens that the recipient is gonna receive (NOTE: This returns raw token amounts, which must be scaled by their respective vault configured multiplier to represent the actual amount of tokens)

#### Returns

`bigint`\[]

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getOutputWithoutFees`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getoutputwithoutfees)

***

### getRecipient()

```
getRecipient(): string;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:133](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L133)

Gets the recipient of the funds for this withdrawal

#### Returns

`string`

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getRecipient`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getrecipient)

***

### getSpentVaultUtxo()

```
getSpentVaultUtxo(): string;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:241](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L241)

Gets the vault ownership UTXO that the bitcoin transaction spends

#### Returns

`string`

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getSpentVaultUtxo`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#getspentvaultutxo)

***

### getTotalOutput()

```
getTotalOutput(): bigint[];
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:194](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L194)

Returns the total amount of tokens withdrawn from the vault (including all the fees) (NOTE: This returns raw token amounts, which must be scaled by their respective vault configured multiplier to represent the actual amount of tokens)

#### Returns

`bigint`\[]

#### Throws

In case the amounts overflow

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getTotalOutput`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#gettotaloutput)

***

### getTxHash()

```
getTxHash(): bigint;
```

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:34](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L34)

#### Returns

`bigint`

#### Inherit Doc

***

### getTxId()

```
getTxId(): string;
```

Defined in: [atomiq-base/src/spv\_swap/SpvWithdrawalTransactionData.ts:234](https://github.com/atomiqlabs/atomiq-base/blob/df344bedbab9ab3de863e3c2d9246e90bd861d04/src/spv_swap/SpvWithdrawalTransactionData.ts#L234)

Gets the transaction ID of the bitcoin transaction authorizing the withdrawal

#### Returns

`string`

#### Inherited from

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`getTxId`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#gettxid)

***

### isRecipient()

```
isRecipient(address): boolean;
```

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:27](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L27)

Checks if the provided recipient is the actual recipient of the funds in this withdrawal

#### Parameters

| Parameter | Type     | Description |
| --------- | -------- | ----------- |
| `address` | `string` |             |

#### Returns

`boolean`

#### Overrides

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`isRecipient`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#isrecipient)

***

### serialize()

```
serialize(): any;
```

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:48](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L48)

Serializes the object to a JSON-compatible object (i.e. no bigints, functions, etc.)

#### Returns

`any`

#### Overrides

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`serialize`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#serialize)

***

### serializeToFelts()

```
serializeToFelts(): BigNumberish[];
```

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:76](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L76)

Serializes the withdrawal data to a raw array of felt252 of length 10

#### Returns

`BigNumberish`\[]

***

### serializeToStruct()

```
serializeToStruct(): object;
```

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:58](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L58)

Serializes the withdrawal data to a starknet.js struct

#### Returns

`object`

| Name                             | Type     | Defined in                                                                                                                                                                                                                               |
| -------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `amount`                         | `any`    | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:64](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L64) |
| `caller_fee`                     | `any`    | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:65](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L65) |
| `execution_expiry`               | `bigint` | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:69](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L69) |
| `execution_handler_fee_amount_0` | `bigint` | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:67](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L67) |
| `execution_hash`                 | `bigint` | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:68](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L68) |
| `fronting_fee`                   | `any`    | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:66](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L66) |
| `recipient`                      | `string` | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:63](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L63) |

***

### fromOpReturnData()

```
protected fromOpReturnData(data): object;
```

Defined in: [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:20](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L20)

#### Parameters

| Parameter | Type     | Description |
| --------- | -------- | ----------- |
| `data`    | `Buffer` |             |

#### Returns

`object`

| Name             | Type        | Defined in                                                                                                                                                                                                                               |
| ---------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `executionHash?` | `string`    | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:20](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L20) |
| `rawAmounts`     | `bigint`\[] | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:20](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L20) |
| `recipient`      | `string`    | [atomiq-chain-starknet/src/starknet/spv\_swap/StarknetSpvWithdrawalData.ts:20](https://github.com/atomiqlabs/atomiq-chain-starknet/blob/697277c430597a8514a43540ef8b9a10e2b6a595/src/starknet/spv_swap/StarknetSpvWithdrawalData.ts#L20) |

#### Overrides

[`SpvWithdrawalTransactionData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md).[`fromOpReturnData`](https://docs.atomiq.exchange/sdk-reference/api/atomiq-sdk/src/classes/SpvWithdrawalTransactionData.md#fromopreturndata)
