Skip to main content
POST
/
lat
/
{address}
/
simulate-deposit
Simulate a LAT deposit transaction
curl --request POST \
  --url https://api.area.club/lat/{address}/simulate-deposit \
  --header 'Content-Type: application/json' \
  --data '
{
  "sender": "<string>",
  "assets": [
    "<string>"
  ],
  "amounts": [
    "<string>"
  ],
  "receiver": "<string>"
}
'
{
  "success": true,
  "amounts": [
    1070792079207920800,
    1122772277227722800
  ],
  "fees": {
    "gas": {
      "gasLimit": "210000",
      "gasPrice": "25000000000",
      "gasFee": "5250000000000000"
    },
    "area": {
      "managementFee": 0,
      "performanceFee": 0
    }
  }
}

Path Parameters

address
string
required

LAT contract address (proxy)

Example:

"0x94a2a0548681fda8d5e2ad5a8eeecd891e02a613"

Body

application/json
sender
string
required

The wallet address that will submit the tx and get debited

assets
string[]
required

The array of token addresses to be deposited

Minimum array length: 1
amounts
string[]
required

The array of amounts corresponding to each asset, in the decimals of that token

Minimum array length: 1
receiver
string
required

The wallet address that will receive the minted Liquid Avs Tokens

Response

Successful deposit simulation result

success
enum<boolean>
required

Indicates if the simulation was successful

Available options:
true,
false
amounts
number[]
required

Resulting token amounts after deposit

Example:
[1070792079207920800, 1122772277227722800]
fees
object
required

Fee details for the transaction