On this page

latest contributor to this doc

Last Edit:

@gcharang

Get Current MTP

API-v2get_current_mtp

The get_current_mtp method returns the Median Time Past (MTP) from electrum servers for UTXO coins. This information is useful for debugging, specifically in cases where an electrum server has been misconfigured.

Parameter* = requiredTypeDescription
coin*
string
A compatible (UTXO) coin's ticker
id
integer
default: null
Optional. Identifies a request to allow matching it with a response.

Parameter* = requiredTypeDescription
mtp*
integer
Unix timestamp
id
integer
default: null
Optional. Identifies a response to allow matching it with a request.

Get Current MTP

POST
get_current_mtp
{
  "method": "get_current_mtp",
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "id": 42,
  "params": {
    "coin": "DOC"
  }
}