---
title: "Withdrawal (signed message)"
description: "EIP-712 type Withdrawal: 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
Withdrawal(address fromAccount,address toEthAddress,uint8 tokenCurrency,uint64 numTokens,uint32 nonce,int64 expiration)
```

Type hash `0x2fdc0a1d89cd65000e141c89522ab3a0aa95182aba37a08842dc72a1992a0c3f`. 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` | `uint8` | `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` — Withdraw USDT to an L1 address, Withdrawal type. Digest `0xa7e3ab08c20d4574f000a953000123ca0611217504d478db4d85b4bf8ac986c4`.
