PreviewWithdraw

get

Simulates the amount of shares needed to withdraw a specific amount of assets.

Authorizations
Path parameters
accountstringRequired
  • The account making the request
Query parameters
chainIdstringRequired
  • The blockchain network ID
addressstringRequired
  • The ERC4626 vault contract address
assetsstringRequired
  • The amount of assets to withdraw
Header parameters
AuthorizationstringRequired
  • The authorization token
Responses
200

The API response

application/json
get
GET /erc4626/{account}/previewWithdraw?chainId=text&address=text&assets=text HTTP/1.1
Host: beta.usemoon.ai/
Authorization: text
Accept: */*
200

The API response

{
  "success": true,
  "message": "text",
  "data": null
}