Komodo DeFi Framework Method: Get Locked Amount
API-v2get_locked_amount
The get_locked_amount method returns the amount of a coin which is currently locked by a swap in progress. If the coin is not activated, a NoSuchCoin error will be returned.
| Parameter | Type | Required | Description |
|---|---|---|---|
| coin | string | ✓ | The ticker of the coin you want to query. |
| Parameter | Type | Description |
|---|---|---|
| coin | string | The ticker of the coin you queried. |
| locked_amount | object | An object containing the locked amount in decimal, fraction, and rational formats. |
| locked_amount.decimal | numeric string | The locked amount in decimal format. |
| locked_amount.rational | rational object | The locked amount in rational format. |
| locked_amount.fraction | fraction object | The locked amount in fraction format. |
Get Locked Amount
POST
get_locked_amount{
"userpass": "RPC_UserP@SSW0RD",
"mmrpc": "2.0",
"method": "get_locked_amount",
"params": {
"coin": "DOC"
},
"id": 42
}
| Error Type | Description |
|---|---|
| NoSuchCoin | The requested coin is not activated. |