curl --request POST \
--url https://api.defindex.io/vault/{address}/lock-fees \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"new_fee_bps": 20,
"caller": "GB7NTQG4EXB7NZEA5GNFHIHEQVTGQTZ6OWKWUD535FBEHNSEVCKZULIY"
}
'
{
"xdr": "AAAAAgAAAABZnC+hqWmzwW2L...",
"simulationResponse": [
{
"gains_or_losses": "0",
"locked_fee": "32974900423",
"prev_balance": "2594859865511"
},
{
"gains_or_losses": "0",
"locked_fee": "0",
"prev_balance": "0"
}
],
"functionName": "lock_fees",
"operationXDR": "AAAAAAAAABgAAAAAAAAAAVqh...",
"isSmartWallet": false,
"params": [
null,
"GA3GWDNI6KYNXPJQVAXMKW6O47ADEQ25KWAEWZKA5JCXQ5APL6VKZR2N"
]
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"retryAfter": 1
}Vault management
Lock vault fees
Manager Function: Locks the fees accrued by the vault, preventing further accrual until the fees are released or distributed. This operation is performed by the manager to manage fee collection and distribution.
POST
/
vault
/
{address}
/
lock-fees
curl --request POST \
--url https://api.defindex.io/vault/{address}/lock-fees \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"new_fee_bps": 20,
"caller": "GB7NTQG4EXB7NZEA5GNFHIHEQVTGQTZ6OWKWUD535FBEHNSEVCKZULIY"
}
'
{
"xdr": "AAAAAgAAAABZnC+hqWmzwW2L...",
"simulationResponse": [
{
"gains_or_losses": "0",
"locked_fee": "32974900423",
"prev_balance": "2594859865511"
},
{
"gains_or_losses": "0",
"locked_fee": "0",
"prev_balance": "0"
}
],
"functionName": "lock_fees",
"operationXDR": "AAAAAAAAABgAAAAAAAAAAVqh...",
"isSmartWallet": false,
"params": [
null,
"GA3GWDNI6KYNXPJQVAXMKW6O47ADEQ25KWAEWZKA5JCXQ5APL6VKZR2N"
]
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"retryAfter": 1
}Authorizations
Path Parameters
Query Parameters
Body
application/json
Lock fees parameters. This operation may include the new fee basis points to set.
Response
Unsigned transaction built for caller. Nothing moves until it is signed and submitted (POST /send).
Was this page helpful?