@dolaned/wallet-sdk-ts
Version:
Wallet SDK for the Nexa blockchain
43 lines (35 loc) • 797 B
text/typescript
import type bigDecimal from "js-big-decimal";
import type {HDPrivateKey, PublicKey} from "libnexa-ts"
export interface AccountKeys {
receiveKeys: AddressKey[];
changeKeys: AddressKey[];
}
export interface WatchOnlyAddress {
address: string,
xPub? :PublicKey,
derivationPath?: string
}
export interface AccountIndexes {
rIndex: number;
cIndex: number;
}
export interface TxStatus {
height: number;
}
export interface HodlStatus {
idx: number;
}
export interface AddressKey {
key: HDPrivateKey;
address: string;
balance: string;
tokensBalance: Record<string, Balance>;
}
export interface Balance {
confirmed: string | number;
unconfirmed: string | number;
}
export interface Price {
value: bigDecimal;
change: bigDecimal;
}