Download OpenAPI specification:
API for Zarban services.
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 | string |
recipient | 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": { }
}
}
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 | string |
recipient | 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"
}
}
{- "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"
}
}
}
]
}, - "quote": {
- "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) |
{- "data": [
- {
- "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"
}, - "borrowIncentives": {
- "apy": "0.12",
- "rewards": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "apy": "0.12"
}
]
}, - "depositIncentives": {
- "apy": "0.12",
- "rewards": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "apy": "0.12"
}
]
}
}
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) |
{- "data": [
- {
- "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",
- "incentives": {
- "apy": "0.12",
- "rewards": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "apy": "0.12"
}
]
}
}
]
}
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) |
{- "data": [
- {
- "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"
}, - "incentives": {
- "apy": "0.12",
- "rewards": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "apy": "0.12"
}
]
}
}
]
}
Collect lendingpool rewards
Collect reward transaction request
user required | string <address> Ethereum address of the user |
recipient required | string <address> Ethereum address of the recipient |
assets required | Array of strings <address> [ items <address > ] |
amount | string The amount to claim in native reward token units, if not provided, all rewards will be claimed |
rewardToken | string <address> Ethereum address of the reward token (if not provided, all reward tokens will be considered. In this case, do not provide amount) |
{- "user": "0x1234567890123456789012345678901234567890",
- "recipient": "0x1234567890123456789012345678901234567890",
- "assets": [
- "0x1234567890123456789012345678901234567890"
], - "amount": "10000000000000000000",
- "rewardToken": "0x1234567890123456789012345678901234567890"
}
{- "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"
}
}
}
]
}
Create Uniswap V3 position
Create position transaction request
token0 required | string^(0x)?[0-9a-fA-F]{40}$ Ethereum address of the token0 |
token1 required | string^(0x)?[0-9a-fA-F]{40}$ Ethereum address of the token1 |
fee required | integer <int64> Pool fee |
intent required | string Enum: "Preview" "Create" |
priceLower | string <string> Minimum price of one token0 in base of token1 (in token1 native token units) |
priceUpper | string <string> Maximum price of one token0 in base of token1 (in token1 native token units) |
user | string <address> Ethereum address of the user |
amount0 | string <string> The amount of token0 in native token units |
amount1 | string <string> The amount of token1 in native token units |
{- "token0": "0x1234567890123456789012345678901234567890",
- "token1": "0x1234567890123456789012345678901234567890",
- "fee": 500,
- "intent": "Preview",
- "priceLower": "1000000000000000000",
- "priceUpper": "1000000000000000000",
- "user": "0x1234567890123456789012345678901234567890",
- "amount0": "10000000000000000000",
- "amount1": "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"
}
}
}
]
}, - "preview": {
- "token0": "0x1234567890123456789012345678901234567890",
- "token1": "0x1234567890123456789012345678901234567890",
- "fee": 500,
- "tickLower": 4000,
- "tickUpper": 8000,
- "priceLower": "1000000000000000000",
- "priceUpper": "1000000000000000000",
- "amount0": "10000000000000000000",
- "amount1": "10000000000000000000"
}
}
Collect Uniswap V3 position rewards
Collect rewards transaction request
tokenId required | string <string> token id |
user required | string <address> Ethereum address of the user |
amount0Max | string <string> The maximum amount of token0 rewards to be received in native token units |
amount1Max | string <string> The maximum amount of token1 rewards to be received in native token units |
unwrap | boolean Default: false Whether to unwrap the ETH rewards or not |
{- "tokenId": "413245",
- "user": "0x1234567890123456789012345678901234567890",
- "amount0Max": "10000000000000000000",
- "amount1Max": "10000000000000000000",
- "unwrap": false
}
{- "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"
}
}
}
]
}
Increase Uniswap V3 position liquidity
Increase liquidity transaction request
tokenId required | string <string> token id |
user required | string <address> Ethereum address of the user |
amount0 | string <string> The amount of token0 that user wants to deposit in native token units |
amount1 | string <string> The amount of token1 that user wants to deposit in native token units |
useNativeAsset | boolean Default: false Whether to use native asset or not (only for ETH) |
{- "tokenId": "413245",
- "user": "0x1234567890123456789012345678901234567890",
- "amount0": "10000000000000000000",
- "amount1": "10000000000000000000",
- "useNativeAsset": false
}
{- "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"
}
}
}
]
}
Decrease Uniswap V3 position liquidity
Decrease liquidity transaction request
tokenId required | string <string> token id |
percentage required | integer <int64> The percentage of liquidity to be removed in bps (1/10000) |
user required | string <address> Ethereum address of the user |
unwrap | boolean Default: false Whether to unwrap or not (only for WETH) |
burn | boolean Default: false Whether to burn position nft or not (only for when percentage is 10000) |
{- "tokenId": "413245",
- "percentage": 1250,
- "user": "0x1234567890123456789012345678901234567890",
- "unwrap": false,
- "burn": false
}
{- "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"
}
}
}
]
}
Burn Uniswap V3 position nft
Burn position nft transaction request
tokenId required | string <string> token id |
user required | string <address> Ethereum address of the user |
{- "tokenId": "413245",
- "user": "0x1234567890123456789012345678901234567890"
}
{- "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 the list of a user's uniswap v3 positions.
user required | string0x[a-fA-F0-9]{40} Ethereum address of the user |
status | string Enum: "InRange" "OutOfRange" "Closed" The status of the position |
{- "positions": [
- {
- "tokenId": "413245",
- "token0": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "token1": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "fee": 500,
- "tickLower": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "tickUpper": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "currentTick": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "liquidity": "4000",
- "token0UncollectedFees": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "token1UncollectedFees": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "amount0": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "amount1": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "poolId": "0x1234567890123456789012345678901234567890",
- "owner": "0x1234567890123456789012345678901234567890",
- "status": "InRange",
- "tokenURI": "string",
- "staked": true,
- "numberOfStakes": 0
}
]
}
Get details of a specific uniswap v3 position.
tokenId required | integer The token id of the position |
{- "tokenId": "413245",
- "token0": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "token1": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "fee": 500,
- "tickLower": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "tickUpper": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "currentTick": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "liquidity": "4000",
- "token0UncollectedFees": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "token1UncollectedFees": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "amount0": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "amount1": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "poolId": "0x1234567890123456789012345678901234567890",
- "owner": "0x1234567890123456789012345678901234567890",
- "status": "InRange",
- "tokenURI": "string",
- "staked": true,
- "numberOfStakes": 0
}
Stake Uniswap V3 position nft in UniswapV3Staker contract
Stake UniswapV3 LP nft transaction request
tokenId required | string <string> token id |
user required | string <address> Ethereum address of the user |
required | Array of objects (UniswapV3StakerIncentiveKeyRequest) |
{- "tokenId": "413245",
- "user": "0x1234567890123456789012345678901234567890",
- "incentives": [
- {
- "rewardToken": "0x1234567890123456789012345678901234567890",
- "pool": "0x1234567890123456789012345678901234567890",
- "startTime": 1730000000,
- "endTime": 1730000000,
- "refundee": "0x1234567890123456789012345678901234567890"
}
]
}
{- "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"
}
}
}
]
}
Stake Uniswap V3 position nfts into a specific incentive
Stake UniswapV3 LP nft transaction request
tokenIds required | Array of strings <string> [ items <string > ] |
user required | string <address> Ethereum address of the user |
required | object (UniswapV3StakerIncentiveKeyRequest) |
{- "tokenIds": [
- "413245"
], - "user": "0x1234567890123456789012345678901234567890",
- "incentive": {
- "rewardToken": "0x1234567890123456789012345678901234567890",
- "pool": "0x1234567890123456789012345678901234567890",
- "startTime": 1730000000,
- "endTime": 1730000000,
- "refundee": "0x1234567890123456789012345678901234567890"
}
}
{- "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"
}
}
}
]
}
Unstake Uniswap V3 position nft in UniswapV3Staker contract
Unstake UniswapV3 LP nft transaction request
tokenId required | string <string> token id |
user required | string <address> Ethereum address of the user |
required | Array of objects (UniswapV3StakerIncentiveKeyRequest) |
withdraw | boolean Default: false Whether to withdraw nft or not |
{- "tokenId": "413245",
- "user": "0x1234567890123456789012345678901234567890",
- "incentives": [
- {
- "rewardToken": "0x1234567890123456789012345678901234567890",
- "pool": "0x1234567890123456789012345678901234567890",
- "startTime": 1730000000,
- "endTime": 1730000000,
- "refundee": "0x1234567890123456789012345678901234567890"
}
], - "withdraw": false
}
{- "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"
}
}
}
]
}
Unstake Uniswap V3 positions from a specific incentive
Unstake UniswapV3 LP nft transaction request
tokenIds | Array of strings <string> [ items <string > ] |
user required | string <address> Ethereum address of the user |
required | object (UniswapV3StakerIncentiveKeyRequest) |
collectReward | boolean Default: false Whether to collect reward or not |
{- "tokenIds": [
- "413245"
], - "user": "0x1234567890123456789012345678901234567890",
- "incentive": {
- "rewardToken": "0x1234567890123456789012345678901234567890",
- "pool": "0x1234567890123456789012345678901234567890",
- "startTime": 1730000000,
- "endTime": 1730000000,
- "refundee": "0x1234567890123456789012345678901234567890"
}, - "collectReward": false
}
{- "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 Uniswap V3 rewards from a specific incentive
Collect UniswapV3 collect rewards from an incentive request
tokenIds | Array of strings <string> [ items <string > ] |
user required | string <address> Ethereum address of the user |
required | object (UniswapV3StakerIncentiveKeyRequest) |
{- "tokenIds": [
- "413245"
], - "user": "0x1234567890123456789012345678901234567890",
- "incentive": {
- "rewardToken": "0x1234567890123456789012345678901234567890",
- "pool": "0x1234567890123456789012345678901234567890",
- "startTime": 1730000000,
- "endTime": 1730000000,
- "refundee": "0x1234567890123456789012345678901234567890"
}
}
{- "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 Uniswap V3 staking rewards
Collect staking rewards transaction request
user required | string <address> Ethereum address of the user |
tokens | Array of strings <address> [ items <address >^(0x)?[0-9a-fA-F]{40}$ ] |
{- "user": "0x1234567890123456789012345678901234567890",
- "tokens": [
- "0x1234567890123456789012345678901234567890"
]
}
{- "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 Uniswap V3 pool details by token0 and token1
token0 required | string0x[a-fA-F0-9]{40} Ethereum address of the token0 |
token1 required | string0x[a-fA-F0-9]{40} Ethereum address of the token1 |
fee | Array of integers Items Enum: 100 500 3000 10000 Fee tiers |
{- "pools": [
- {
- "token0": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "token1": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "fee": "0.0005",
- "poolShare": "0.0005",
- "tvl": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "token0PerToken1": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "token1PerToken0": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
}
Get Uniswap V3 ticks prices around a specific price
token0 required | string0x[a-fA-F0-9]{40} Ethereum address of the token0 |
token1 required | string0x[a-fA-F0-9]{40} Ethereum address of the token1 |
fee required | integer Enum: 100 500 3000 10000 Fee tier |
price required | string Example: price=1000000000000000000 Price of one unit of token0 in base of token1 (in token1 native token units) |
{- "previousTicks": [
- {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}
], - "nextTicks": [
- {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}
], - "currentTick": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}
}
Get active stakes in UniswapV3Staker
address required | string <address> Example: 0x1234567890123456789012345678901234567890 Ethereum address of the account |
{- "data": [
- {
- "position": {
- "tokenId": "413245",
- "token0": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "token1": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "fee": 500,
- "tickLower": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "tickUpper": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "currentTick": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "liquidity": "4000",
- "token0UncollectedFees": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "token1UncollectedFees": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "amount0": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "amount1": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "poolId": "0x1234567890123456789012345678901234567890",
- "owner": "0x1234567890123456789012345678901234567890",
- "status": "InRange",
- "tokenURI": "string",
- "staked": true,
- "numberOfStakes": 0
}, - "numberOfStakes": 2,
- "incentives": [
- {
- "rewardToken": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "incentiveId": "0x4a2b1c3d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890",
- "pool": "0x1234567890123456789012345678901234567890",
- "startTime": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "endTime": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "refundee": "0x1234567890123456789012345678901234567890",
- "totalReward": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalRewardUnclaimed": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalStakes": 2,
- "status": "active",
- "userRewardUnclaimed": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
}
]
}
Get all user active stakes by incentive id
user required | string0x[a-fA-F0-9]{40} Ethereum address of the user |
incentiveId | string0x[a-fA-F0-9]{32} incentive id |
[- {
- "incentiveId": "0x4a2b1c3d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890",
- "positions": [
- {
- "tokenId": "413245",
- "unclaimedReward": {
- "token": {
- "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"
}
}
}
]
}
]
Get all available user positions stake in an incentive
user required | string0x[a-fA-F0-9]{40} Ethereum address of the user |
incentiveId required | string0x[a-fA-F0-9]{32} incentive id |
{- "positions": [
- {
- "tokenId": "413245",
- "token0": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "token1": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "fee": 500,
- "tickLower": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "tickUpper": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "currentTick": {
- "tick": 4000,
- "price": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "isExtreme": true
}, - "liquidity": "4000",
- "token0UncollectedFees": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "token1UncollectedFees": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "amount0": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "amount1": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "poolId": "0x1234567890123456789012345678901234567890",
- "owner": "0x1234567890123456789012345678901234567890",
- "status": "InRange",
- "tokenURI": "string",
- "staked": true,
- "numberOfStakes": 0
}
]
}
Get UniswapV3Staker incentives
rewardTokens | Array of strings <address> [ items <address > ] Example: rewardTokens=0x1234567890123456789012345678901234567890 Address of the reward token |
status | string Enum: "active" "inactive" Status of incentives |
{- "data": [
- {
- "rewardToken": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "incentiveId": "0x4a2b1c3d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890",
- "pool": "0x1234567890123456789012345678901234567890",
- "startTime": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "endTime": {
- "jalaali": "1399-01-01T00:00:00Z",
- "gregorian": "2020-01-01T00:00:00Z"
}, - "refundee": "0x1234567890123456789012345678901234567890",
- "totalReward": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalRewardUnclaimed": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "totalStakes": 2,
- "status": "active"
}
]
}
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"
}
}
}
]
}
Initiates a transaction to exit collateral (either an ERC20 token or ETH) from the Vat contract. This allows users to withdraw remaining collateral (after auctions or repayments) held in the vault's urn.
exit Gem or ETH collateral from Vat contract transaction request
user required | string <address> 0x[a-fA-F0-9]{40} Ethereum address of the user who intends to exit Gem tokens or ETH from the Vat contract and receive them. |
amount | string The amount of Gem token or ETH to exit from the Vat contract. |
vaultId required | integer The ID of the vault associated with the urn holding the Gem token or ETH. |
{- "user": "0x1234567890123456789012345678901234567890",
- "amount": "10000000000000000000",
- "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"
}
}
}
]
}
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"
}
}
}
]
}
{- "data": [
- {
- "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"
}, - "duty": "string"
}
]
}
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"
}, - "duty": "string"
}
{- "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"
}, - "duty": "string"
}, - "liquidated": false,
- "tokenBalance": {
- "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 |
{- "data": [
- {
- "domain": "stableCoinSystem",
- "id": 0,
- "name": "VaultRepay",
- "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"
}
}, - "type": "executive",
- "payload": { }
}
]
}
{- "data": [
- {
- "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"
}, - "duty": "string"
}, - "liquidated": false,
- "tokenBalance": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}
]
}
{- "data": [
- {
- "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"
}, - "duty": "string"
}
]
}
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"
}, - "duty": "string"
}
{- "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) |
{- "data": [
- {
- "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",
- "incentives": {
- "apy": "0.12",
- "rewards": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "apy": "0.12"
}
]
}
}
]
}
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) |
{- "data": [
- {
- "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"
}, - "incentives": {
- "apy": "0.12",
- "rewards": [
- {
- "token": {
- "name": "Zar Stablecoin",
- "symbol": "USD",
- "decimals": 18,
- "address": "0x1234567890123456789012345678901234567890",
- "logoUri": "/assets/logos/dai.svg",
- "chainId": 1,
- "persianName": "زر"
}, - "apy": "0.12"
}
]
}
}
]
}
Get raw and decoded logs by transaction hash
txHash required | string0x[a-fA-F0-9]{64} Transaction hash |
{- "data": [
- {
- "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 |
{- "data": [
- {
- "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"
}, - "duty": "string"
}, - "liquidated": false,
- "tokenBalance": {
- "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 |
{- "data": [
- {
- "domain": "stableCoinSystem",
- "id": 0,
- "name": "VaultRepay",
- "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"
}
}, - "type": "executive",
- "payload": { }
}
]
}
{- "data": [
- {
- "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"
}, - "duty": "string"
}, - "liquidated": false,
- "tokenBalance": {
- "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",
- "totalRewards": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}, - "unclaimedRewards": [
- {
- "token": {
- "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"
}
}
]
}, - "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": {
- "uniswapv3staker": {
- "rewards": [
- {
- "token": {
- "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"
}
}
], - "unclaimedReward": {
- "USD": "1.23",
- "TMN": "45.67",
- "ZAR": "89.01",
- "ETH": "0.02"
}
}, - "stakingrewards": {
- "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) |
{- "data": [
- {
- "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"
}
]
}
{- "data": [
- {
- "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"
}
}
]
}