Withdraw

Get params to execute a withdraw for a vault

withdraw

GET https://api.unifront.io/v1/maker/withdraw

This endpoint allows you to get withdraw action params for a vault id.

Query Parameters

Name
Type
Description

token

string

Token Name - ETH, BAT ., etc

portal

string

Portal through which vault is created (instadapp or makerportal)

value

string

Token Value to deposit eg., 0.1

address

string

Wallet Address through which vault is created.

vaultid

string

Vault ID eg.; 1958

Headers

Name
Type
Description

API_key

string

API Key for authentication - [ Not requierd now ]

{
  "to": "0x6bb1bE45C80e14B6eF600dF5B018DF12A7B245c4",
  "value": 0,
  "data": "0xf3541901000000000000000000000000797f232c549026790e8707725dda76da70256fd6000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000016fd96655550000000000000000000000000000000000000000000000000000000000000044aa9f235d00000000000000000000000000000000000000000000000000000000000007a6000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000",
  "gas": 464346,
  "action": "withdraw",
  "txlink": "https://txlink.io/tx?to=0x6bb1bE45C80e14B6eF600dF5B018DF12A7B245c4&value=0&data=0xf3541901000000000000000000000000797f232c549026790e8707725dda76da70256fd6000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000016fd96655550000000000000000000000000000000000000000000000000000000000000044aa9f235d00000000000000000000000000000000000000000000000000000000000007a6000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000000000000000000000000000&gaslimit=464346"
}

User Query

{
  "address": "0x78f32a27559170f9a005b319Ed53441b9e852158",
  "vaultId": "1958",
  "value": "0.01",
  "portal": "instadapp",
  "token": "ETH"
}

Last updated

Was this helpful?