Download OpenAPI specification:Download
The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with THORChain protocol, users should query THORNode directly.
Returns an object containing the health response of the API. Meaning of heights:
lastThorNode - Latest block as reported by ThorNode.
lastFetched - Latest block fetched from ThorNode.
lastCommitted - Latest block committed to the DB but not fully processed yet.
lastAggregated - Latest block fully processed and aggregated.
genesisInfo - The genesis height Midgard bootstrapped with.
{- "database": true,
- "scannerHeight": "string",
- "inSync": true,
- "lastThorNode": {
- "height": 0,
- "timestamp": 0
}, - "lastFetched": {
- "height": 0,
- "timestamp": 0
}, - "lastCommitted": {
- "height": 0,
- "timestamp": 0
}, - "lastAggregated": {
- "height": 0,
- "timestamp": 0
}, - "genesisInfo": {
- "height": 0,
- "hash": "string"
}
}
Returns an array containing details for a set of pools
status | string Enum: "available" "staged" "suspended" Filter for only pools with this status |
period | string Enum: "1h" "24h" "7d" "14d" "30d" "90d" "100d" "180d" "365d" "all" Example: period=100d Specifies the base interval from which annualPercentageRate and poolAPY is extrapolated. Default is 14d. |
[- {
- "asset": "string",
- "volume24h": "string",
- "assetDepth": "string",
- "runeDepth": "string",
- "assetPrice": "string",
- "assetPriceUSD": "string",
- "poolAPY": "string",
- "annualPercentageRate": "string",
- "earnings": "string",
- "earningsAnnualAsPercentOfDepth": "string",
- "lpLuvi": "string",
- "saversAPR": "string",
- "status": "string",
- "liquidityUnits": "string",
- "synthUnits": "string",
- "synthSupply": "string",
- "units": "string",
- "nativeDecimal": "string",
- "saversUnits": "string",
- "saversDepth": "string",
- "totalCollateral": "string",
- "totalDebtTor": "string",
- "saversYieldShare": "string"
}
]
Returns details of the pool: depths, price, 24h volume, APY.
asset required | string Example: BNB.TOMOB-1E1 pool name |
period | string Enum: "1h" "24h" "7d" "14d" "30d" "90d" "100d" "180d" "365d" "all" Example: period=100d Specifies the base interval from which APY is extrapolated. Default is 14d. |
{- "asset": "string",
- "volume24h": "string",
- "assetDepth": "string",
- "runeDepth": "string",
- "assetPrice": "string",
- "assetPriceUSD": "string",
- "poolAPY": "string",
- "annualPercentageRate": "string",
- "earnings": "string",
- "earningsAnnualAsPercentOfDepth": "string",
- "lpLuvi": "string",
- "saversAPR": "string",
- "status": "string",
- "liquidityUnits": "string",
- "synthUnits": "string",
- "synthSupply": "string",
- "units": "string",
- "nativeDecimal": "string",
- "saversUnits": "string",
- "saversDepth": "string",
- "totalCollateral": "string",
- "totalDebtTor": "string",
- "saversYieldShare": "string"
}
Statistics about the pool. The description of the fields have pointers about the corresponding v2/history location. Visit the history endpoint for drilldowns.
asset required | string Example: BNB.TOMOB-1E1 pool name |
period | string Enum: "1h" "24h" "7d" "14d" "30d" "90d" "100d" "180d" "365d" "all" Example: period=24h Restricts aggregation type fields to the last period only. Default is 14d. |
{- "asset": "string",
- "status": "string",
- "assetPrice": "string",
- "assetPriceUSD": "string",
- "assetDepth": "string",
- "runeDepth": "string",
- "synthUnits": "string",
- "synthSupply": "string",
- "liquidityUnits": "string",
- "units": "string",
- "toAssetVolume": "string",
- "toRuneVolume": "string",
- "swapVolume": "string",
- "toAssetCount": "string",
- "toRuneCount": "string",
- "swapCount": "string",
- "uniqueSwapperCount": "string",
- "toAssetAverageSlip": "string",
- "toRuneAverageSlip": "string",
- "averageSlip": "string",
- "toAssetFees": "string",
- "toRuneFees": "string",
- "totalFees": "string",
- "poolAPY": "string",
- "annualPercentageRate": "string",
- "saversAPR": "string",
- "earnings": "string",
- "earningsAnnualAsPercentOfDepth": "string",
- "addAssetLiquidityVolume": "string",
- "addRuneLiquidityVolume": "string",
- "addLiquidityVolume": "string",
- "addLiquidityCount": "string",
- "withdrawAssetVolume": "string",
- "withdrawRuneVolume": "string",
- "withdrawVolume": "string",
- "withdrawCount": "string",
- "uniqueMemberCount": "string"
}
Returns the asset and rune depths and price. The values report the state at the end of each interval.
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
pool required | string Return stats for this single pool. |
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "priceShiftLoss": "string",
- "luviIncrease": "string",
- "startAssetDepth": "string",
- "startRuneDepth": "string",
- "startLPUnits": "string",
- "startMemberCount": "string",
- "startSynthUnits": "string",
- "endAssetDepth": "string",
- "endRuneDepth": "string",
- "endLPUnits": "string",
- "endMemberCount": "string",
- "endSynthUnits": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "assetDepth": "string",
- "runeDepth": "string",
- "assetPrice": "string",
- "assetPriceUSD": "string",
- "liquidityUnits": "string",
- "membersCount": "string",
- "synthUnits": "string",
- "synthSupply": "string",
- "units": "string",
- "luvi": "string"
}
]
}
Returns savers depths and units. The values report the state at the end of each interval.
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
pool required | string Return stats for this single pool. |
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "startSaversDepth": "string",
- "startUnits": "string",
- "startSaversCount": "string",
- "endSaversDepth": "string",
- "endUnits": "string",
- "endSaversCount": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "saversDepth": "string",
- "saversCount": "string",
- "saversUnits": "string"
}
]
}
Returns RUNEPool members and units. The values report the state at the end of each interval.
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "startUnits": "string",
- "startCount": "string",
- "endUnits": "string",
- "endCount": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "depth": "string",
- "count": "string",
- "units": "string"
}
]
}
Returns earnings data for the specified interval.
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "liquidityFees": "string",
- "blockRewards": "string",
- "earnings": "string",
- "bondingEarnings": "string",
- "liquidityEarnings": "string",
- "avgNodeCount": "string",
- "runePriceUSD": "string",
- "pools": [
- {
- "pool": "string",
- "assetLiquidityFees": "string",
- "runeLiquidityFees": "string",
- "totalLiquidityFeesRune": "string",
- "saverEarning": "string",
- "rewards": "string",
- "earnings": "string"
}
]
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "liquidityFees": "string",
- "blockRewards": "string",
- "earnings": "string",
- "bondingEarnings": "string",
- "liquidityEarnings": "string",
- "avgNodeCount": "string",
- "runePriceUSD": "string",
- "pools": [
- {
- "pool": "string",
- "assetLiquidityFees": "string",
- "runeLiquidityFees": "string",
- "totalLiquidityFeesRune": "string",
- "saverEarning": "string",
- "rewards": "string",
- "earnings": "string"
}
]
}
]
}
Returns swap count, volume, fees, slip in specified interval. If pool is not specified returns for all pools
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
pool | string Return history given pool. Returns sum of all pools if missing. |
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "toAssetCount": "string",
- "toRuneCount": "string",
- "toTradeCount": "string",
- "fromTradeCount": "string",
- "synthMintCount": "string",
- "synthRedeemCount": "string",
- "totalCount": "string",
- "toAssetVolume": "string",
- "toRuneVolume": "string",
- "toTradeVolume": "string",
- "fromTradeVolume": "string",
- "synthMintVolume": "string",
- "synthRedeemVolume": "string",
- "totalVolume": "string",
- "toAssetVolumeUSD": "string",
- "toRuneVolumeUSD": "string",
- "toTradeVolumeUSD": "string",
- "fromTradeVolumeUSD": "string",
- "synthMintVolumeUSD": "string",
- "synthRedeemVolumeUSD": "string",
- "totalVolumeUSD": "string",
- "toAssetFees": "string",
- "toRuneFees": "string",
- "toTradeFees": "string",
- "fromTradeFees": "string",
- "synthMintFees": "string",
- "synthRedeemFees": "string",
- "totalFees": "string",
- "toAssetAverageSlip": "string",
- "toRuneAverageSlip": "string",
- "toTradeAverageSlip": "string",
- "fromTradeAverageSlip": "string",
- "synthMintAverageSlip": "string",
- "synthRedeemAverageSlip": "string",
- "averageSlip": "string",
- "runePriceUSD": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "toAssetCount": "string",
- "toRuneCount": "string",
- "toTradeCount": "string",
- "fromTradeCount": "string",
- "synthMintCount": "string",
- "synthRedeemCount": "string",
- "totalCount": "string",
- "toAssetVolume": "string",
- "toRuneVolume": "string",
- "toTradeVolume": "string",
- "fromTradeVolume": "string",
- "synthMintVolume": "string",
- "synthRedeemVolume": "string",
- "totalVolume": "string",
- "toAssetVolumeUSD": "string",
- "toRuneVolumeUSD": "string",
- "toTradeVolumeUSD": "string",
- "fromTradeVolumeUSD": "string",
- "synthMintVolumeUSD": "string",
- "synthRedeemVolumeUSD": "string",
- "totalVolumeUSD": "string",
- "toAssetFees": "string",
- "toRuneFees": "string",
- "toTradeFees": "string",
- "fromTradeFees": "string",
- "synthMintFees": "string",
- "synthRedeemFees": "string",
- "totalFees": "string",
- "toAssetAverageSlip": "string",
- "toRuneAverageSlip": "string",
- "toTradeAverageSlip": "string",
- "fromTradeAverageSlip": "string",
- "synthMintAverageSlip": "string",
- "synthRedeemAverageSlip": "string",
- "averageSlip": "string",
- "runePriceUSD": "string"
}
]
}
Returns total pool depths, total bonds, and total value locked in specified interval.
Total Value Locked = Total Bonds + 2 * Total Pool Depths
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400]. |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now. |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "totalValuePooled": "string",
- "poolsDepth": [
- {
- "pool": "string",
- "totalDepth": "string"
}
], - "totalValueBonded": "string",
- "totalValueLocked": "string",
- "runePriceUSD": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "totalValuePooled": "string",
- "poolsDepth": [
- {
- "pool": "string",
- "totalDepth": "string"
}
], - "totalValueBonded": "string",
- "totalValueLocked": "string",
- "runePriceUSD": "string"
}
]
}
Returns withdrawals and deposits for given time interval. If pool is not specified returns for all pools
History endpoint has two modes:
With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries.
Without Interval parameter a single From..To search is performed with exact timestamps.
Interval: possible values: 5min, hour, day, week, month, quarter, year.
count: [1..400]. Defines number of intervals. Don't provide if Interval is missing.
from/to: optional int, unix second.
Possible usages with interval.
?interval=day&count=10
?interval=day&count=10&to=1608825600
?interval=day&count=10&from=1606780800
interval=day&from=1606780800&to=1608825600
Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query.
Possible configurations without interval:
?from=1606780899&to=1608825600
?from=1606780899
pool | string Return stats for given pool. Returns sum of all pools if missing |
interval | string Enum: "5min" "hour" "day" "week" "month" "quarter" "year" Example: interval=day Interval of calculations |
count | integer Example: count=30 Number of intervals to return. Should be between [1..400] |
to | integer <int64> Example: to=1608825600 End time of the query as unix timestamp. If only count is given, defaults to now |
from | integer <int64> Example: from=1606780800 Start time of the query as unix timestamp |
{- "meta": {
- "startTime": "string",
- "endTime": "string",
- "addAssetLiquidityVolume": "string",
- "addRuneLiquidityVolume": "string",
- "addLiquidityVolume": "string",
- "addLiquidityCount": "string",
- "withdrawAssetVolume": "string",
- "withdrawRuneVolume": "string",
- "withdrawVolume": "string",
- "withdrawCount": "string",
- "net": "string",
- "runePriceUSD": "string"
}, - "intervals": [
- {
- "startTime": "string",
- "endTime": "string",
- "addAssetLiquidityVolume": "string",
- "addRuneLiquidityVolume": "string",
- "addLiquidityVolume": "string",
- "addLiquidityCount": "string",
- "withdrawAssetVolume": "string",
- "withdrawRuneVolume": "string",
- "withdrawVolume": "string",
- "withdrawCount": "string",
- "net": "string",
- "runePriceUSD": "string"
}
]
}
[- {
- "nodeAddress": "thor102y0m3uptg0vvudeyh00r2fnz70wq7d8y7mu2g",
- "secp256k1": "thorpub1addwnpepqgxwdf3ure0pg5fwnpeux3ym9n06267lkres54zwjh4c8048ezhj5024qyr",
- "ed25519": "thorpub1addwnpepqgxwdf3ure0pg5fwnpeux3ym9n06267lkres54zwjh4c8048ezhj5024qyr"
}
]
{- "bondMetrics": {
- "totalActiveBond": "string",
- "averageActiveBond": "string",
- "medianActiveBond": "string",
- "minimumActiveBond": "string",
- "maximumActiveBond": "string",
- "totalStandbyBond": "string",
- "averageStandbyBond": "string",
- "medianStandbyBond": "string",
- "minimumStandbyBond": "string",
- "maximumStandbyBond": "string",
- "bondHardCap": "string"
}, - "blockRewards": {
- "blockReward": "string",
- "bondReward": "string",
- "poolReward": "string"
}, - "activeBonds": [
- "string"
], - "standbyBonds": [
- "string"
], - "activeNodeCount": "string",
- "standbyNodeCount": "string",
- "totalPooledRune": "string",
- "totalReserve": "string",
- "nextChurnHeight": "string",
- "poolActivationCountdown": "string",
- "poolShareFactor": "string",
- "bondingAPY": "string",
- "liquidityAPY": "string"
}
List actions along with their related transactions. An action is generated by one or more inbound transactions with the intended action set in the transaction memo. The action may result in one or more outbound transactions. Results are paginated by sets of 50. Filters may be applied to query actions.
address | string Example: address=tbnb1fj2lqj8dvr5pumfchc7ntlfqd2v6zdxqwjewf5 Comma separated list. Address of sender or recipient of any in/out transaction related to the action. |
txid | string Example: txid=2F624637DE179665BA3322B864DB9F30001FD37B4E0D22A0B6ECE6A5B078DAB4 ID of any in/out tx related to the action |
asset | string Examples:
Comma separated list. Any asset that is part of the action (CHAIN.SYMBOL) Additionally, synth, nosynth, and norune filters can be used for swap, add/withdraw actions. |
type | string Example: type=swap,addLiquidity One or more comma separated unique types of action (swap, addLiquidity, withdraw, donate, refund, switch, thorname, runePoolDeposit, runePoolWithdraw) |
txType | string Example: txType=loanOpen,loanRepayment One or more comma separated transaction type of the action, it's the tx type parsed from memo. For example: Loan is a swap event but it's considered as loan tx type Type of Transactions: "unknown", "add", "withdraw", "swap", "limitOrder", "outbound", "donate", "bond", "unbond", "leave", "yggdrasilFund", "yggdrasilReturn", "reserve", "refund", "migrate", "ragnarok", "switch", "noOp", "consolidate", "thorname", "loanOpen", "loanRepayment" |
affiliate | string Examples:
Comma separated list. Affiliate address of the action (swap, refund) |
limit | integer <int64> [ 0 .. 50 ] number of actions returned, default is 50 |
offset | integer <int64> >= 0 pagination offset, default is 0 |
nextPageToken | integer <int64> >= 0 if this is given, the actions for the next page will be given |
timestamp | integer <int64> >= 0 if this is given, the actions older than the timestamp will be given |
height | integer <int64> >= 0 if this is given, the actions older than the height will be given |
prevPageToken | integer <int64> >= 0 if this is given, the actions for the previous page will be given |
fromTimestamp | integer <int64> >= 0 if this is given, the actions newer than the timestamp will be given |
fromHeight | integer <int64> >= 0 if this is given, the actions newer than the height will be given |
{- "meta": {
- "nextPageToken": "string",
- "prevPageToken": "string"
}, - "count": "string",
- "actions": [
- {
- "pools": [
- "string"
], - "type": "swap",
- "status": "success",
- "in": [
- {
- "txID": "string",
- "address": "string",
- "coins": [
- {
- "asset": "string",
- "amount": "string"
}
], - "height": "string",
- "affiliate": true
}
], - "out": [
- {
- "txID": "string",
- "address": "string",
- "coins": [
- {
- "asset": "string",
- "amount": "string"
}
], - "height": "string",
- "affiliate": true
}
], - "date": "string",
- "height": "string",
- "metadata": {
- "swap": {
- "streamingSwapMeta": {
- "count": "string",
- "quantity": "string",
- "interval": "string",
- "lastHeight": "string",
- "inCoin": {
- "asset": "string",
- "amount": "string"
}, - "outCoin": {
- "asset": "string",
- "amount": "string"
}, - "depositedCoin": {
- "asset": "string",
- "amount": "string"
}, - "failedSwaps": [
- "string"
], - "failedSwapReasons": [
- "string"
]
}, - "networkFees": [
- {
- "asset": "string",
- "amount": "string"
}
], - "liquidityFee": "string",
- "swapSlip": "string",
- "swapTarget": "string",
- "affiliateFee": "string",
- "affiliateAddress": "string",
- "memo": "string",
- "isStreamingSwap": true,
- "txType": "loanOpen"
}, - "addLiquidity": {
- "liquidityUnits": "string"
}, - "withdraw": {
- "liquidityUnits": "string",
- "asymmetry": "string",
- "basisPoints": "string",
- "networkFees": [
- {
- "asset": "string",
- "amount": "string"
}
], - "impermanentLossProtection": "string",
- "memo": "string"
}, - "refund": {
- "networkFees": [
- {
- "asset": "string",
- "amount": "string"
}
], - "reason": "string",
- "memo": "string",
- "affiliateFee": "string",
- "affiliateAddress": "string",
- "txType": "loanOpen"
}, - "send": {
- "networkFees": [
- {
- "asset": "string",
- "amount": "string"
}
], - "memo": "string"
}, - "thorname": {
- "memo": "string",
- "thorname": "string",
- "address": "string",
- "owner": "thor102y0m3uptg0vvudeyh00r2fnz70wq7d8y7mu2g",
- "expire": "string",
- "chain": "string",
- "fundAmount": "string",
- "registrationFee": "string",
- "txType": "string"
}, - "runePoolDeposit": {
- "units": "string"
}, - "runePoolWithdraw": {
- "units": "string",
- "basisPoints": "string",
- "affiliateAmount": "string",
- "affiliateAddress": "string",
- "affiliateBasisPoint": "string"
}, - "bond": {
- "memo": "string",
- "nodeAddress": "string",
- "provider": "string",
- "fee": "string"
}, - "failed": {
- "memo": "string",
- "reason": "string",
- "code": "string"
}
}
}
]
}
Returns an array containing the addresses for all pool members. Addresses are only shown once. If there's both a RUNE address and an asset address for a member, only the RUNE address will be shown.
pool | string Return only members present in the pool. |
[- "tbnb1fj2lqj8dvr5pumfchc7ntlfqd2v6zdxqwjewf5"
]
Returns an array of statistics for all the liquidity providers associated with a given member address.
address required | string Example: bnb1jxfh2g85q3v0tdq56fnevx6xcxtcnhtsmcu64m,bc1qcxssye4j6730h7ehgega3gyykkuwgdgmmpu62n Address to match liquidity providers. Either a rune or an asset address may be given. Query can also be multiple addresses should be separated by comma (',') |
showSavers | boolean Default: false Example: showSavers=true A flag to show saver vault membership details, the default is false. |
{- "pools": [
- {
- "pool": "string",
- "runeAddress": "string",
- "assetAddress": "string",
- "liquidityUnits": "string",
- "runeDeposit": "string",
- "assetDeposit": "string",
- "runeAdded": "string",
- "assetAdded": "string",
- "runePending": "string",
- "assetPending": "string",
- "runeWithdrawn": "string",
- "assetWithdrawn": "string",
- "dateFirstAdded": "string",
- "dateLastAdded": "string"
}
]
}
Returns an array containing the addresses for all borrowers. Addresses are only shown once.
asset | string Return only borrowers getting loan against this asset as collateral. |
[- "tbnb1fj2lqj8dvr5pumfchc7ntlfqd2v6zdxqwjewf5"
]
Returns an array of statistics for all the open loans associated with a given borrower address.
address required | string Example: bnb1jxfh2g85q3v0tdq56fnevx6xcxtcnhtsmcu64m,bc1qcxssye4j6730h7ehgega3gyykkuwgdgmmpu62n Address to match borrower, an asset address is given. Query can also be multiple addresses should be separated by comma (',') |
{- "pools": [
- {
- "collateral_asset": "string",
- "target_assets": [
- "ETH.ETH"
], - "debt_issued_tor": "string",
- "debt_repaid_tor": "string",
- "collateral_deposited": "string",
- "collateral_withdrawn": "string",
- "last_open_loan_timestamp": "string",
- "last_repay_loan_timestamp": "string"
}
]
}
Returns an array of statistics for all the savers associated with a given member address. Query can also be multiple addresses should be separated by comma (',')
address required | string Example: bnb1jxfh2g85q3v0tdq56fnevx6xcxtcnhtsmcu64m,bc1qcxssye4j6730h7ehgega3gyykkuwgdgmmpu62n Address to match the saver. an asset address should be given. |
{- "pools": [
- {
- "pool": "string",
- "assetAddress": "string",
- "saverUnits": "string",
- "assetAdded": "string",
- "assetRedeem": "string",
- "assetDeposit": "string",
- "assetWithdrawn": "string",
- "dateFirstAdded": "string",
- "dateLastAdded": "string"
}
]
}
Returns an array of statistics for all the RUNEPool associated with given member addresses. Query can also be multiple addresses should be separated by comma (',')
address required | string Example: thor1jxfh2g85q3v0tdq56fnevx6xcxtcnhtsmcu64m,thor2qcxssye4j6730h7ehgega3gyykkuwgdgmmpu62n Address to match the RUNEPool. multiple rune addresses can be given. |
[- {
- "runeAddress": "string",
- "units": "string",
- "runeAdded": "string",
- "runeDeposit": "string",
- "runeWithdrawn": "string",
- "dateFirstAdded": "string",
- "dateLastAdded": "string"
}
]
Returns an array of chains and their addresses associated with the given THORName
name required | string Example: thorchain a THORName |
{- "owner": "thor102y0m3uptg0vvudeyh00r2fnz70wq7d8y7mu2g",
- "expire": "string",
- "entries": [
- {
- "chain": "string",
- "address": "string"
}
]
}
Returns an array of THORNames associated with the given address
address required | string Example: bnb1jxfh2g85q3v0tdq56fnevx6xcxtcnhtsmcu64m Address to match THORNames against. |
[- "myname"
]
Returns an array of THORNames owned by the address. The address is not necessarily an associated address for those thornames.
address required | string Example: thor102y0m3uptg0vvudeyh00r2fnz70wq7d8y7mu2g Address which owns a THORName. |
[- "myname"
]
{- "runeDepth": "string",
- "switchedRune": "string",
- "runePriceUSD": "string",
- "swapVolume": "string",
- "swapCount24h": "string",
- "swapCount30d": "string",
- "swapCount": "string",
- "toAssetCount": "string",
- "toRuneCount": "string",
- "synthMintCount": "string",
- "synthBurnCount": "string",
- "dailyActiveUsers": "string",
- "monthlyActiveUsers": "string",
- "uniqueSwapperCount": "string",
- "addLiquidityVolume": "string",
- "withdrawVolume": "string",
- "addLiquidityCount": "string",
- "withdrawCount": "string"
}
Returns all coin amounts of the given address at the specified timestamp or height, or at the latest process block if neither is provided. (Only one of timestamp or height can be specified, not both.)
This endpoint is enabled only if the midgard startup config allows it.
address required | string Example: thor102y0m3uptg0vvudeyh00r2fnz70wq7d8y7mu2g Rune address. |
timestamp | integer <int64> Example: timestamp=1606780800 Unix timestamp as seconds since 1970 (if provided, height must not be provided) |
height | integer <int64> Example: height=2000000 Block height (if provided, timestamp must not be provided) |
{- "height": "2000000",
- "date": "946684801000000000",
- "coins": [
- {
- "asset": "string",
- "amount": "string"
}
]
}