Get permit for single token
token required | string0x[a-fA-F0-9]{40} Ethereum address of the token |
user required | string0x[a-fA-F0-9]{40} Ethereum address of the user |
{- "typedData": {
- "types": {
- "property1": [
- {
- "name": "string",
- "type": "string"
}
], - "property2": [
- {
- "name": "string",
- "type": "string"
}
]
}, - "primaryType": "string",
- "domain": {
- "name": "string",
- "version": "string",
- "chainId": "string",
- "verifyingContract": "string",
- "salt": "string"
}, - "message": { }
}, - "hash": "string"
}
Get a quote for a swap
requestId | string^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[4][0-9a-fA-F]... |
type | string (OrderType) Enum: "Classic" "DutchLimit" |
tradeType required | string (TradeType) Enum: "ExactInput" "ExactOutput" |
inputToken required | string^(0x)?[0-9a-fA-F]{40}$ |
outputToken required | string^(0x)?[0-9a-fA-F]{40}$ |
amount required | string |
recipient required | string^(0x)?[0-9a-fA-F]{40}$ |
object (QuoteRequestOptions) |
{- "requestId": "string",
- "type": "Classic",
- "tradeType": "ExactInput",
- "inputToken": "0x1234567890123456789012345678901234567890",
- "outputToken": "0x1234567890123456789012345678901234567890",
- "amount": "123.456789",
- "recipient": "string",
- "options": {
- "dryRun": false,
- "slippageTolerance": "0.005",
- "useSyntheticQuotes": false,
- "permitSignature": "string",
- "permitNonce": "string",
- "permitExpiration": 0,
- "permitAmount": "string",
- "permitSigDeadline": 0,
- "quoteId": "string",
- "encodedOrder": "string"
}
}
{- "type": "Classic",
- "tradeType": "ExactInput",
- "time": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "quote": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "quoteId": "string",
- "gasPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "routeString": "A -- [0x0000000000000000000000000000000000000012] --> B -- [0x0000000000000000000000000000000000000023] --> C",
- "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}, - "route": [
- {
- "address": "string",
- "tokenIn": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "tokenOut": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "fee": "string"
}
], - "orderInfo": {
- "chainId": 0,
- "permit2Address": "string",
- "reactor": "string",
- "swapper": "string",
- "nonce": "string",
- "deadline": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "additionalValidationContract": "string",
- "additionalValidationData": "string",
- "decayStartTime": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "decayEndTime": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "exclusiveFiller": "string",
- "exclusivityOverrideBps": 0,
- "input": {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "startAmount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "endAmount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "recipient": "string"
}, - "outputs": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "startAmount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "endAmount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "recipient": "string"
}
]
}, - "encodedOrder": "string",
- "orderHash": "string",
- "permitData": {
- "types": {
- "property1": [
- {
- "name": "string",
- "type": "string"
}
], - "property2": [
- {
- "name": "string",
- "type": "string"
}
]
}, - "primaryType": "string",
- "domain": {
- "name": "string",
- "version": "string",
- "chainId": "string",
- "verifyingContract": "string",
- "salt": "string"
}, - "message": { }
}
}
updates an order entity in database
orderHash required | string^(0x)?[0-9a-fA-F]{64}$ |
{- "orderHash": "string"
}
{- "msg": "Bad request",
- "reasons": [
- "Invalid address"
]
}
Get a list of unfilled orders filtered by different parameters.
type | string Enum: "limit" "dutch" Type of the order |
hash | string^0x[0-9,a-z,A-Z]{64}$ order hash |
status | string Enum: "open" "expired" "error" "cancelled" "filled" "insufficient-funds" Status of the order |
offerer | string0x[a-fA-F0-9]{40} Ethereum address of the offerer |
filler | string0x[a-fA-F0-9]{40} Ethereum address of the filler |
object (TimeRange) Decay start time | |
object (TimeRange) Decay end time | |
object (TimeRange) Order deadline | |
cursor | integer Cursor for pagination |
limit | integer Default: 10 Limit the number of orders returned (default is 10) |
[- {
- "quoteId": "string",
- "outputs": [
- {
- "token": "string",
- "startAmount": "string",
- "endAmount": "string",
- "recipient": "string"
}
], - "encodedOrder": "string",
- "signature": "string",
- "input": {
- "token": "string",
- "startAmount": "string",
- "endAmount": "string",
- "recipient": "string"
}, - "orderStatus": "open",
- "chainId": 0,
- "orderHash": "string",
- "orderType": "dutch"
}
]
Deposit to lending pool
Deposit transaction request, if amount is not provided, it will be calculated based on the token balance
user required | string <address> Ethereum address of the user |
symbol required | string |
amount | string The amount to deposit in native token units, if not provided, it will be calculated based on the token balance |
{- "user": "0x1234567890123456789012345678901234567890",
- "symbol": "ETH",
- "amount": "10000000000000000000"
}
{- "chainActivity": {
- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}, - "response": {
- "nextHealthFactor": "1.2"
}
}
Withdraw from lending pool
Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status
user required | string <address> Ethereum address of the user |
symbol required | string |
amount | string The amount to withdraw in native token units, if not provided, it will be calculated based on the deposit balance |
{- "user": "0x1234567890123456789012345678901234567890",
- "symbol": "string",
- "amount": "10000000000000000000"
}
{- "chainActivity": {
- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}, - "response": {
- "nextHealthFactor": "1.2"
}
}
Borrow from lending pool
Borrow transaction request, if amount is not provided, it will be calculated based on the token balance
user required | string <address> Ethereum address of the user |
symbol required | string |
amount | string The amount to borrow in native token units |
{- "user": "0x1234567890123456789012345678901234567890",
- "symbol": "string",
- "amount": "10000000000000000000"
}
{- "chainActivity": {
- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}, - "response": {
- "nextHealthFactor": "1.2"
}
}
Repay to lending pool
Repay transaction request, if amount is not provided, it will repay the maximum possible amount
user required | string <address> Ethereum address of the user |
symbol required | string |
amount | string The amount to repay in native token units, if not provided, it will be calculated based on the borrow balance |
{- "user": "0x1234567890123456789012345678901234567890",
- "symbol": "string",
- "amount": "10000000000000000000"
}
{- "chainActivity": {
- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}, - "response": {
- "nextHealthFactor": "1.2"
}
}
Allows to enable/disable a specific asset as collateral
UseAssetAsCollateral transaction request
user required | string <address> Ethereum address of the user |
symbol required | string Symbol of asset |
enabled required | boolean Enable or disable the asset as collateral |
{- "user": "0x1234567890123456789012345678901234567890",
- "symbol": "string",
- "enabled": true
}
{- "chainActivity": {
- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}, - "response": {
- "nextHealthFactor": "1.2"
}
}
Retrieve data of reserves
asset | string The asset address in hexadecimal format. |
{- "id": "0x1234567890123456789012345678901234567890:0x1234567890123456789012345678901234567890",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "zTokenAddress": "0x1234567890123456789012345678901234567890",
- "variableDebtTokenAddress": "0x1234567890123456789012345678901234567890",
- "borrowingEnabled": true,
- "isActive": true,
- "isFrozen": false,
- "usageAsCollateralEnabled": true,
- "reserveFactor": "0.1",
- "baseLTVasCollateral": "0.5",
- "reserveLiquidationThreshold": "0.6",
- "reserveLiquidationBonus": "0.1",
- "utilizationRate": "0.5",
- "totalDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalLiquidity": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableLiquidity": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "supplyAPY": "0.1",
- "supplyAPR": "0.1",
- "variableBorrowAPY": "0.1",
- "variableBorrowAPR": "0.1",
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
Get user deposits of Lendingpool
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
reserve | string0x[a-fA-F0-9]{40} Ethereum address of the reserve |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of deposits returned (default is 50) |
[- {
- "user": "string",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "usageAsCollateralEnabledOnUser": true,
- "supplyAPY": "string"
}
]
Get user borrows of lendingpool
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
reserve | string0x[a-fA-F0-9]{40} Ethereum address of the reserve |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of deposits returned (default is 50) |
[- {
- "user": "string",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "borrowRate": "string",
- "maxBorrowAmount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
Create vault
Create vault transaction request
ilkName required | string The name of the ilk |
user required | string <address> Ethereum address of the user |
collateralAmount | string The amount of collateral to deposit in native token units |
mintAmount required | string The amount of stablecoin to mint in native token units |
{- "ilkName": "ETH-A",
- "user": "0x1234567890123456789012345678901234567890",
- "collateralAmount": "10000000000000000000",
- "mintAmount": "10000000000000000000"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
Deposit collateral
Deposit collateral transaction request
user required | string <address> Ethereum address of the user |
vaultId required | integer The ID of the vault |
amount | string The amount of collateral to deposit in native token units, if not provided, it will be calculated based on the wallet balance |
{- "user": "0x1234567890123456789012345678901234567890",
- "vaultId": 1,
- "amount": "10000000000000000000"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
Withdraw collateral
Withdraw collateral transaction request
user required | string <address> Ethereum address of the user |
vaultId required | integer The ID of the vault |
amount | string The amount of collateral to withdraw in native token units, if not provided, it will be calculated based on the withdrawable balance |
{- "user": "0x1234567890123456789012345678901234567890",
- "vaultId": 1,
- "amount": "10000000000000000000"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
Mint ZAR
Mint ZAR transaction request
user required | string <address> Ethereum address of the user |
vaultId required | integer The ID of the vault |
amount | string The amount of stablecoin to mint in native token units, if not provided, it will be calculated based on the available to mint amount |
{- "user": "0x1234567890123456789012345678901234567890",
- "vaultId": 1,
- "amount": "10000000000000000000"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
Repay ZAR
Repay ZAR transaction request
user required | string <address> Ethereum address of the user |
vaultId required | integer The ID of the vault |
amount | string The amount of stablecoin to repay in native token units, if not provided, it will be calculated based on the borrow balance |
{- "user": "0x1234567890123456789012345678901234567890",
- "vaultId": 1,
- "amount": "10000000000000000000"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
liquidate a vault
Liquidate a Vault transaction request
user required | string <address> 0x[a-fA-F0-9]{40} Ethereum address of the user who is liquidating the vault and receiving incentives. |
vaultId required | integer The ID of the vault |
{- "user": "0x1234567890123456789012345678901234567890",
- "vaultId": 1
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
approve and join ZAR token into Vat contract
Approve and join Zar token into Vat contract transaction request
user required | string <address> 0x[a-fA-F0-9]{40} Ethereum address of the user intends to join zar tokens into the Vat contract. |
amount required | string The amount of ZAR to approve and join into Vat contract |
{- "user": "0x1234567890123456789012345678901234567890",
- "amount": "10000000000000000000"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
exit ZAR token from Vat contract
exit Zar token from Vat contract transaction request
user required | string <address> 0x[a-fA-F0-9]{40} Ethereum address of the user intends to exit zar tokens from the Vat contract and receive them.. |
amount required | string The amount of Zar token to exit from Vat contract |
{- "user": "0x1234567890123456789012345678901234567890",
- "amount": "10000000000000000000"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
exit Gem token (which can be used as collateral) from Vat contract
exit Zar token from Vat contract transaction request
user required | string <address> 0x[a-fA-F0-9]{40} Ethereum address of the user intends to exit gem tokens from the Vat contract and receive them.. |
amount required | string The amount of Gem token to exit from Vat contract |
ilk required | string Name of the ILK |
{- "user": "0x1234567890123456789012345678901234567890",
- "amount": "10000000000000000000",
- "ilk": "ETHA"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
reset a auction
Reset a Auction transaction request
user required | string <address> 0x[a-fA-F0-9]{40} Ethereum address of the user resetting the auction and receiving incentives. |
auctionId required | integer The ID of the auction |
ilk required | string Name of the ILK |
{- "user": "0x1234567890123456789012345678901234567890",
- "auctionId": 1,
- "ilk": "ETHA"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
take a auction
Take a Auction transaction request
user required | string <address> 0x[a-fA-F0-9]{40} Ethereum address of the user taking the auction. |
auctionId required | integer The ID of the auction |
ilk required | string Name of the ILK |
collateralAmountUpperLimit required | string upper limit on the amount of collateral to buy [wad] |
maxAcceptablePrice required | string Maximum acceptable price (ZAR / collateral) [ray] |
{- "user": "0x1234567890123456789012345678901234567890",
- "auctionId": 1,
- "ilk": "ETHA",
- "collateralAmountUpperLimit": "10000000000000000000",
- "maxAcceptablePrice": "10000000000000000000"
}
{- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
[- {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
Retrieve an Ilk by providing its name.
name required | string Name of the ILK |
{- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
{- "stablecoinSystem": {
- "systemSurplus": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemDebtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemSurplusBuffer": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemBadDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemSurplusLotSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}, - "lendingpool": {
- "totalAvailable": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalBorrows": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalMarketSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
{- "id": 1,
- "owner": "0x1234567890123456789012345678901234567890",
- "urn": "0x1234567890123456789012345678901234567890",
- "liquidationPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralLocked": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralizationRatio": "1.5",
- "loanToValue": "0.5",
- "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToWithdraw": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToMint": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
id required | integer Vault ID |
type | string Enum: "repay" "deposit" "withdraw" "mint" Event type |
[- {
- "id": 1,
- "name": "VaultRepay",
- "type": "executive",
- "domain": "stableCoinSystem",
- "raw": {
- "name": "string",
- "contract": "string",
- "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "address": "string",
- "blockNumber": 0,
- "txHash": "string",
- "blockHash": "string",
- "index": 0,
- "topics": [
- "0x1234567890abcdef1234567abcdef"
], - "data": "0x1234567890abcdef1234567abcdef",
- "decoded": {
- "property1": "0x1234567890abcdef1234567abcdef",
- "property2": "0x1234567890abcdef1234567abcdef"
}
}, - "payload": {
- "deltaCollateral": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "deltaDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
}
]
[- {
- "id": 1,
- "owner": "0x1234567890123456789012345678901234567890",
- "urn": "0x1234567890123456789012345678901234567890",
- "liquidationPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralLocked": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralizationRatio": "1.5",
- "loanToValue": "0.5",
- "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToWithdraw": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToMint": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
]
[- {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
Retrieve an Ilk by providing its name.
name required | string Name of the ILK |
{- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
{- "stablecoinSystem": {
- "systemSurplus": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemDebtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemSurplusBuffer": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemBadDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "systemSurplusLotSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}, - "lendingpool": {
- "totalAvailable": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalBorrows": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalMarketSize": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
Get user deposits of Lendingpool
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
reserve | string0x[a-fA-F0-9]{40} Ethereum address of the reserve |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of deposits returned (default is 50) |
[- {
- "user": "string",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "usageAsCollateralEnabledOnUser": true,
- "supplyAPY": "string"
}
]
Get user borrows of lendingpool
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
reserve | string0x[a-fA-F0-9]{40} Ethereum address of the reserve |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of deposits returned (default is 50) |
[- {
- "user": "string",
- "underlyingAsset": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "amount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "borrowRate": "string",
- "maxBorrowAmount": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
Get raw and decoded logs by transaction hash
txHash required | string0x[a-fA-F0-9]{64} Transaction hash |
[- {
- "name": "string",
- "contract": "string",
- "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "address": "string",
- "blockNumber": 0,
- "txHash": "string",
- "blockHash": "string",
- "index": 0,
- "topics": [
- "0x1234567890abcdef1234567abcdef"
], - "data": "0x1234567890abcdef1234567abcdef",
- "decoded": {
- "property1": "0x1234567890abcdef1234567abcdef",
- "property2": "0x1234567890abcdef1234567abcdef"
}
}
]
Retrieve a list of price details based on specified query parameters
symbol | string Symbol of the price |
[- {
- "symbol": "USD",
- "value": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}
}
]
{- "id": 1,
- "owner": "0x1234567890123456789012345678901234567890",
- "urn": "0x1234567890123456789012345678901234567890",
- "liquidationPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralLocked": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralizationRatio": "1.5",
- "loanToValue": "0.5",
- "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToWithdraw": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToMint": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
id required | integer Vault ID |
type | string Enum: "repay" "deposit" "withdraw" "mint" Event type |
[- {
- "id": 1,
- "name": "VaultRepay",
- "type": "executive",
- "domain": "stableCoinSystem",
- "raw": {
- "name": "string",
- "contract": "string",
- "timestamp": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "address": "string",
- "blockNumber": 0,
- "txHash": "string",
- "blockHash": "string",
- "index": 0,
- "topics": [
- "0x1234567890abcdef1234567abcdef"
], - "data": "0x1234567890abcdef1234567abcdef",
- "decoded": {
- "property1": "0x1234567890abcdef1234567abcdef",
- "property2": "0x1234567890abcdef1234567abcdef"
}
}, - "payload": {
- "deltaCollateral": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "deltaDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
}
]
[- {
- "id": 1,
- "owner": "0x1234567890123456789012345678901234567890",
- "urn": "0x1234567890123456789012345678901234567890",
- "liquidationPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralLocked": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "collateralizationRatio": "1.5",
- "loanToValue": "0.5",
- "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToWithdraw": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToMint": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "ilk": {
- "name": "string",
- "symbol": "USD",
- "minimumCollateralizationRatio": "string",
- "maximumLoanToValue": "string",
- "liquidationPenalty": "string",
- "debtCeiling": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "debt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "annualStabilityFee": "string",
- "dustLimit": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "nextPrice": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "join": "string",
- "median": "string",
- "gem": "string",
- "clipper": "string",
- "pip": "string",
- "hole": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "dirt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
}
]
Get account by address
address required | string <address> Example: 0x1234567890123456789012345678901234567890 Ethereum address of the account |
{- "points": 100,
- "address": "0x1234567890123456789012345678901234567890",
- "walletBalance": {
- "balances": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "balance": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
}, - "netWorth": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalDeposits": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "lendingpoolSummary": {
- "totalDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalDeposits": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalCollateral": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "healthFactor": "1.5",
- "netApy": "0.12",
- "totalSupplyApy": "0.12",
- "totalBorrowApy": "0.12",
- "availableToBorrow": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "borrowPowerUsed": "0.30",
- "currentLiquidationThreshold": "0.30",
- "loanToValue": "0.30"
}, - "stabelcoinSystemSummary": {
- "totalDebt": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalDeposits": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "netApy": "0.30"
}, - "stakingSummary": {
- "totalStake": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "unclaimedReward": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "netApy": "0.30"
}
}
Stake to staking contract
Stake transaction request, if amount is not provided, then the whole wallet balance will be used
user required | string <address> Ethereum address of the user |
contractAddress required | string <address> Ethereum address of the staking contract |
amount | string The amount of asset to stake in native token units |
{- "user": "0x1234567890123456789012345678901234567890",
- "contractAddress": "0x1234567890123456789012345678901234567890",
- "amount": "1000000000000000000"
}
{- "chainActivity": {
- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
}
Withdraw staked asset
Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn
user required | string <address> Ethereum address of the user |
contractAddress required | string <address> Ethereum address of the staking contract |
amount | string The amount of asset to withdraw in native token units |
{- "user": "0x1234567890123456789012345678901234567890",
- "contractAddress": "0x1234567890123456789012345678901234567890",
- "amount": "1000000000000000000"
}
{- "chainActivity": {
- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
}
Collect staking reward
Collect reward transaction request
user required | string <address> Ethereum address of the user |
contractAddress required | string <address> Ethereum address of the staking contract |
{- "user": "0x1234567890123456789012345678901234567890",
- "contractAddress": "0x1234567890123456789012345678901234567890"
}
{- "chainActivity": {
- "stepNumber": 0,
- "numberOfSteps": 0,
- "steps": [
- {
- "type": "PreparedTx",
- "data": {
- "type": "string",
- "label": {
- "property1": "string",
- "property2": "string"
}, - "gasUseEstimate": 0,
- "gasFeeEstimate": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "methodParameters": {
- "to": "string",
- "calldata": "string",
- "value": "string"
}
}
}
]
}
}
Get user staking stats
user | string0x[a-fA-F0-9]{40} Ethereum address of the user |
address | string0x[a-fA-F0-9]{40} Ethereum address of the staking contract |
active | boolean Filter by active stakes |
cursor | integer Cursor for pagination |
limit | integer Default: 50 Limit the number of stakes returned (default is 50) |
[- {
- "user": "0x1234567890123456789012345678901234567890",
- "balance": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "unclaimedReward": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "contractAddress": "0x1234567890123456789012345678901234567890",
- "planName": "Zar Staking"
}
]
[- {
- "planName": "Zar Staking",
- "contractAddress": "0x1234567890123456789012345678901234567890",
- "apy": "0.12",
- "stakeToken": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "rewardToken": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "finishAt": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}
}
]