---
title: "WithdrawalV2 (signed message)"
description: "EIP-712 type WithdrawalV2: fields, type hash and how each field is built from the request JSON."
---

Signed by [`withdrawal`](../rpc/withdrawal.md). Step-by-step walkthrough: [Signing](../../guides/signing.md).

```text
WithdrawalV2(address fromAccount,address toEthAddress,uint16 tokenCurrency,uint64 numTokens,uint32 nonce,int64 expiration)
```

Type hash `0x95cee98524289377640c5062cf8544d478f523ab193a43fd63cbd38a662657fd`. Domain `{name: "GRVT Exchange", version: "0", chainId}`.

## Fields and where they come from

| EIP-712 field | Type | From request | Transform |
|---|---|---|---|
| `fromAccount` | `address` | `from_account_id` | `address` |
| `toEthAddress` | `address` | `to_eth_address` | `address` |
| `tokenCurrency` | `uint16` | `currency` | `currencyId`: `id` of the currency (get_currency) |
| `numTokens` | `uint64` | `num_tokens` | `scaled`: decimal × 10^`balance_decimals` of the currency |
| `nonce` | `uint32` | `signature.nonce` | `sig.nonce` |
| `expiration` | `int64` | `signature.expiration` | `sig.expiration` |
| domain `chainId` | `uint256` | `signature.chain_id` | `sig.chainId` |

## Signing test cases

In [signing.json](../../downloads/signing.json), signed by the public test key:

- `withdrawal_wide_currency` — Currency id 300 (> 255, test-only currency), so WithdrawalV2. Digest `0x007f18ccb50939a8203edb873f95172d15e006acbe878c9d2673198a9ab08905`.
