Quick Access
Coin Methods
Monero
Miscellaneous
Methods
Monero
moneroGetWatchKey

Monero Get Watch Key

Export Monero watch-only credentials (private view key and address) for a given BIP44 path. The private view key allows external wallet software to scan the Monero blockchain for incoming transactions and calculate balances without exposing spending keys.

User is presented with a description of the requested key and asked to confirm the export on Trezor.

const result = await TrezorConnect.moneroGetWatchKey(params);

Params

Including CommonParams

MoneroGetWatchKey

path

String | Array<Number>

Required

minimum length is 3. All components must be hardened (e.g., m/44'/128'/0'). read more

networkType

Enum: MAINNET (0) | TESTNET (1) | STAGENET (2) | FAKECHAIN (3)

Optional

Monero network type: 0 = MAINNET (default), 1 = TESTNET, 2 = STAGENET, 3 = FAKECHAIN

Example

Export watch-only credentials for first Monero account on mainnet:

TrezorConnect.moneroGetWatchKey({
    path: "m/44'/128'/0'",
});

Export watch-only credentials for testnet:

TrezorConnect.moneroGetWatchKey({
    path: "m/44'/128'/0'",
    networkType: 1, // TESTNET
});

Result

MoneroWatchKey type

{
    success: true,
    payload: {
        watch_key: string,   // Private view key (hex-encoded)
        address: string,     // Monero address (human-readable string)
    }
}

Error

{
    success: false,
    payload: {
        error: string // error message
    }
}