# 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.

# Arguments

Parameter Type Description
coin string The ticker of the coin you want to query.

# Response

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 (opens new window).
locked_amount.rational rational object The locked amount in rational format.
locked_amount.fraction fraction object The locked amount in fraction format (opens new window).

# 📌 Examples

# Command

curl --url "http://127.0.0.1:7783" --data "{
    \"userpass\": \"YOUR_PASS\",
    \"mmrpc\": \"2.0\",
    \"method\": \"get_locked_amount\",
    \"params\": {
        \"coin\": \"RICK\"
    },
  "id": 42
}"