---
updatedAt: 2026-04-23T12:57:25.000Z
agentTools:
  projectIndex: https://documentation.northstake.dk/llms.txt
---

# Encode burn wstETH transaction

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Northstake",
    "description": "Northstake api\n\nOperation-level extensions used by the API:\n- x-roleRequired (array of strings): roles required to call the operation.\n- x-mfaApiScope (array of strings): MFA API scopes required when the user has MFA enrolled.\n- x-isProSvmFeature (boolean): when true, the operation is restricted to users whose Cosmos user document has is_pro_svm_user set to true.\n",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.northstake.dk/v1"
    }
  ],
  "paths": {
    "/lidov3/{contractsId}/burn/wsteth": {
      "post": {
        "x-roleRequired": [
          "user",
          "admin"
        ],
        "operationId": "burnWstETH",
        "summary": "Encode burn wstETH transaction",
        "tags": [
          "lido/write"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "contractsId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The unique identifier of the Lido staking contracts"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BurnWstETH"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Encode the transaction to burn WSTETH and decrease the vault liability proportionally",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartialTransaction"
                }
              }
            }
          },
          "400": {
            "description": "Validation error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BurnWstETH": {
        "type": "object",
        "required": [
          "amountOfWstETH"
        ],
        "properties": {
          "amountOfWstETH": {
            "type": "string",
            "description": "Amount of wstETH to burn, as a bigint string. Pass the literal \"max\" to burn the full minted liability (computed server-side)."
          },
          "fromAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "description": "Depositor address whose minted balance bounds the \"max\" amount on StvStETH pools (per-depositor). When amountOfWstETH is \"max\" on a pool, provide either fromAddress or simulateAddress; they must be the same if both are given. Ignored for dedicated/STV vaults."
          },
          "simulateAddress": {
            "type": "string",
            "pattern": "^0x[a-fA-F0-9]{40}$",
            "description": "Optional Ethereum address to simulate the transaction from. If provided, the transaction will be simulated and any revert errors will be returned."
          }
        }
      },
      "ErrorResponse": {
        "title": "APIErrorResponse",
        "description": "General structure for error responses from the API.",
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      },
      "PartialTransaction": {
        "description": "Partial eth JSON-RPC transaction",
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "pattern": "^0x[0-9a-fA-F]{40}$"
          },
          "to": {
            "type": "string",
            "pattern": "^0x[0-9a-fA-F]{40}$"
          },
          "value": {
            "type": "string",
            "pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$"
          },
          "data": {
            "type": "string",
            "pattern": "^0x[0-9a-f]*$"
          },
          "gas": {
            "type": "string",
            "pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
            "description": "EIP-1559 gas limit estimate (hex)."
          },
          "maxFeePerGas": {
            "type": "string",
            "pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
            "description": "EIP-1559 max fee per gas (hex)."
          },
          "maxPriorityFeePerGas": {
            "type": "string",
            "pattern": "^0x([1-9a-f]+[0-9a-f]*|0)$",
            "description": "EIP-1559 max priority fee per gas / miner tip (hex)."
          }
        },
        "required": [
          "to",
          "data",
          "gas",
          "maxFeePerGas",
          "maxPriorityFeePerGas",
          "value"
        ]
      }
    }
  }
}
```