Deposit
Get params to execute a deposit for a vault
deposit
GET
https://api.unifront.io/v1/maker/deposit
This endpoint allows you to get deposit 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": "10000000000000000",
"data": "0xf3541901000000000000000000000000797f232c549026790e8707725dda76da70256fd6000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000016fd868dd8800000000000000000000000000000000000000000000000000000000000000248eec6f7b00000000000000000000000000000000000000000000000000000000000007a600000000000000000000000000000000000000000000000000000000",
"gas": 268060,
"action": "deposit",
"txlink": "https://txlink.io/tx?to=0x6bb1bE45C80e14B6eF600dF5B018DF12A7B245c4&value=10000000000000000&data=0xf3541901000000000000000000000000797f232c549026790e8707725dda76da70256fd6000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000016fd868dd8800000000000000000000000000000000000000000000000000000000000000248eec6f7b00000000000000000000000000000000000000000000000000000000000007a600000000000000000000000000000000000000000000000000000000&gaslimit=268060"
}
User query
{
"address": "0x78f32a27559170f9a005b319Ed53441b9e852158",
"vaultId": "1958",
"value": "0.01",
"portal": "instadapp",
"token": "ETH"
}
Last updated
Was this helpful?