Closed originalix closed 5 days ago
Added accountId
to Various Methods
accountId
has been introduced to a variety of methods across multiple files for individual action identification.
New Method to Retrieve Wallet Type
Two new methods _getWalletTypeHeader
and _getRequestWalletType
in ServiceAccountProfile.ts
have been added to detect the wallet type.
Modified existing methods
Several existing methods across different services have been modified to utilize the new accountId
for more personalised interactions and calls.
Changes in Interceptor.ts
getRequestHeaders
method is now updated to include X-Onekey-Instance-Id
header.
New Enum for Wallet Types
A fresh enum ERequestWalletTypeEnum
is added to account.ts
to categorize wallet types.
Changes to Type Parameters
Several type parameters in fee.ts
, nft.ts
, and token.ts
have been revised to contain the accountId
property.
Review or Edit in CodeSandbox
Open the branch in Web Editor • VS Code • Insiders
Open Preview