---
title: "Settle a netting balance back on-chain"
method: POST
path: "/api/netting/withdraw"
tags: ["netting"]
---

# Settle a netting balance back on-chain

`POST /api/netting/withdraw`

## Request

- Base URL: `https://api.anygas.xyz/svc`
- URL: `https://api.anygas.xyz/svc/api/netting/withdraw`
- Auth: none declared

Debits the internal balance and pays out real USDC on the chosen chain. The debit happens BEFORE the payout so a crash can never pay twice; if the payout fails the balance is restored and journalled. Sign robyn-netting-withdraw:v1:account=…:amount=…:toChain=…:toAddress=…:nonce=…

## Request body

- object
  - `address` string, required
  - `amount` string, required
  - `toChain` integer, required
  - `toAddress` string
  - `nonce` string, required
  - `signature` string, required

## Response `200`

OK

- object

---

[API](https://skmtc.dev/anygas/apis/robyn-anygas-api.md) · [All operations](https://skmtc.dev/anygas/apis/robyn-anygas-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anygas/apis/robyn-anygas-api/revisions/9b7498be8304?raw)
