get-version.rst (1089B)
1 .. ts:op:: getVersion 2 :read-only: 3 4 Get version information about wallet-core and the protocol versions 5 it supports. 6 7 **Request:** 8 9 This operation takes no arguments (an empty object). 10 11 **Response:** 12 13 On success, the result is a `WalletCoreVersion` object. 14 15 **Details:** 16 17 The wallet must have been initialized first (see 18 :ts:op:`initWallet`); before initialization this operation fails 19 with ``WALLET_CORE_NOT_AVAILABLE``. 20 21 .. ts:def:: WalletCoreVersion 22 23 interface WalletCoreVersion { 24 implementationSemver: string; 25 implementationGitHash: string; 26 27 // Wallet-core protocol version supported by this implementation 28 // of the API ("server" version). 29 version: string; 30 exchange: string; 31 merchant: string; 32 33 bankIntegrationApiRange: string; 34 bankConversionApiRange: string; 35 corebankApiRange: string; 36 37 // Deprecated: the bank API was split into multiple APIs with 38 // separate versioning. 39 bank: string; 40 41 // Deprecated. 42 hash: string | undefined; 43 44 // Deprecated, will be removed. 45 devMode: boolean; 46 }