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

# Polymarket: Withdraw from Deposit Wallet

Withdraw tokens (ERC-20 or native) from a Polymarket deposit wallet via the builder relayer. The deposit wallet is a smart contract — all transfers must go through the relayer batch execution. Ideal for: moving funds out of a Polymarket deposit wallet.

![Polymarket: Withdraw from Deposit Wallet logo](https://cdn.b3.fun/b3os-icons/polymarket-icon.png)
Catalog action EVM Onchain wallet

Withdraw tokens (ERC-20 or native) from a Polymarket deposit wallet via the builder relayer. The deposit wallet is a smart contract — all transfers must go through the relayer batch execution. Ideal for: moving funds out of a Polymarket deposit wallet.

**Review wallet and value movement**

This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.

## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `polymarket-withdraw` |
| Category | EVM Onchain |
| Connector | `wallet` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `polymarket`, `wallet`, `write` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `tokenAddress` | `string` | Yes | Token to withdraw: ERC-20 contract address, or native token sentinel \('native', 0x0000…, 0xEeee…\) |
| `recipientAddress` | `string` | Yes | Destination address to receive the withdrawn tokens |
| `amount` | `string` | Yes | Amount to withdraw in the token's smallest unit \(e.g. wei\) |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `string` | Yes | Withdrawal status |
| `transactionHash` | `string` | No | On-chain transaction hash of the withdrawal |
| `tokenAddress` | `string` | No | Token address or native sentinel that was withdrawn |
| `recipientAddress` | `string` | No | Address that received the tokens |
| `amount` | `string` | No | Amount withdrawn in token's smallest unit |

## Examples

**Workflow node**

```json
{
  "type": "polymarket-withdraw",
  "payload": {
    "tokenAddress": "0x0000000000000000000000000000000000000000",
    "recipientAddress": "0x0000000000000000000000000000000000000000",
    "amount": "1000000"
  },
  "children": [],
  "connector": {
    "type": "wallet",
    "id": "conn_wallet"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/polymarket-withdraw/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "tokenAddress": "0x0000000000000000000000000000000000000000",
    "recipientAddress": "0x0000000000000000000000000000000000000000",
    "amount": "1000000"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.