Polymarket: Withdraw from Deposit Wallet
Withdraw ERC20 tokens 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.
Catalog action EVM Onchain wallet
Withdraw ERC20 tokens 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.
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 | ERC20 token contract address to withdraw |
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 contract address that was withdrawn |
recipientAddress | string | No | Address that received the tokens |
amount | string | No | Amount withdrawn in token's smallest unit |
Examples
json{ "type": "polymarket-withdraw", "payload": { "tokenAddress": "0x0000000000000000000000000000000000000000", "recipientAddress": "0x0000000000000000000000000000000000000000", "amount": "1000000" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}
bashcurl -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" }}'
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.
