---
title: "Retrieve Transaction Data for Withdrawing from Safe"
method: GET
path: "/api/v1/accounts/withdraw/transaction-data"
tags: ["Account Management"]
---

# Retrieve Transaction Data for Withdrawing from Safe

`GET /api/v1/accounts/withdraw/transaction-data`

Returns the EIP-712 typed data that needs to be signed by the user's wallet to withdraw ERC20 tokens or native tokens (xDAI) from the user's Safe account.

For ERC20 tokens, provide the token contract address.
For native token (xDAI) withdrawals, use "0x0000000000000000000000000000000000000000" as the tokenAddress.

This endpoint is used as part of a three-step process:
1. Call this endpoint to get the EIP-712 typed data
2. Sign the typed data with the user's wallet using EIP-712 signature standard
3. Submit the signature to the POST `/api/v1/accounts/withdraw` endpoint

## Query parameters

- `tokenAddress` string, required
- `to` string, required
- `amount` string, required

## Response `200`

Successfully retrieved EIP-712 typed data for signing.

- object
  - `data` object, required
    - `domain` object, required
      - `verifyingContract` string, required — The contract address that will verify the signature.
      - `chainId` number, required — The chain ID for the network.
    - `primaryType` 'ModuleTx', required — The primary type for EIP-712 typed data signing.
    - `types` object, required
      - `ModuleTx` object[], required — Array of type definitions for the ModuleTx structure.
        - `type` string, required — The field type.
        - `name` string, required — The field name.
    - `message` object, required
      - `data` string, required — The encoded transaction data for the withdrawal.
      - `salt` string, required — The salt value for the typed data.

## Other responses

- `401` — Unauthorized - invalid or missing authentication token.
- `404` — Safe account or token not found for the user.
- `422` — Unprocessable Entity - validation errors in query parameters.
- `500` — Internal server error.

---

[API](https://skmtc.net/gnosispay/apis/gnosispay-api.md) · [All operations](https://skmtc.net/gnosispay/apis/gnosispay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gnosispay/gnosispay-api/versions/e0a09962c187/schema)
