On this page

latest contributor to this doc

Last Edit:

@gcharang

Get Shared Database ID

API-v2get_shared_db_id

The get_shared_db_id method returns a 20-byte identifier (H160) derived from the node's seed phrase.
It is used as the root folder name for all SQLite databases on the host. • The value is identical for all HD accounts derived from the same seed and different for separate seeds.

Parameter* = requiredTypeDescription
*None*
*N/A*
Optional. *This method has no parameters.*

Parameter* = requiredTypeDescription
shared_db_id*
string
42-hex-char (H160) identifier with 0x prefix used for the node's DB directory.

Get Shared Database ID

POST
get_shared_db_id
{
  "userpass": "RPC_UserP@SSW0RD",
  "mmrpc": "2.0",
  "method": "get_shared_db_id",
  "id": 0
}
{
  "mmrpc": "2.0",
  "result": {
    "shared_db_id": "0x3ca9c5b85e5f3af62f3ae3903f1e2d8d9d7e2c12"
  },
  "id": 0
}

Parameter* = requiredTypeDescription
Internal
string
Optional. Unhandled internal error (rare).