get_locked_amount
The get_locked_amount
method returns the amount of a coin which is currently locked by a swap which is in progress. If the coin is not activated, a NoSuchCoin
error will be returned.
Parameter | Type | 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 cointaining 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. |
POST
get_locked_amount{
"userpass": "testpsw",
"mmrpc": "2.0",
"method": "get_locked_amount",
"params": {
"coin": "DOC"
},
"id": 42
}