2025-10-24 22:49:46 +07:00
|
|
|
export interface WalletState {
|
|
|
|
|
seedPhrase: string[] | null
|
2025-11-07 18:27:37 +07:00
|
|
|
password?: string | null
|
2025-10-24 22:49:46 +07:00
|
|
|
receiverId: string | null
|
|
|
|
|
viewKey: string | null
|
2025-11-07 18:27:37 +07:00
|
|
|
spendingKey?: string | null
|
2025-10-24 22:49:46 +07:00
|
|
|
address: string | null
|
|
|
|
|
network: 'mainnet' | 'testnet'
|
2025-11-07 18:27:37 +07:00
|
|
|
balance?: string | null
|
|
|
|
|
pendingBalance?: string | null
|
|
|
|
|
utxos?: Utxo[]
|
2025-10-24 22:49:46 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface GenerateSeedResult {
|
|
|
|
|
seed_phrase: string[]
|
|
|
|
|
receiver_identifier: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ViewKeyResult {
|
|
|
|
|
receiver_identifier: string
|
2025-11-07 18:27:37 +07:00
|
|
|
spending_key_hex: string
|
|
|
|
|
view_key_hex: string
|
|
|
|
|
success?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PayloadBuildTransaction {
|
|
|
|
|
spendingKeyHex?: string
|
|
|
|
|
inputAdditionRecords?: string[]
|
|
|
|
|
outputAddresses?: string[]
|
|
|
|
|
outputAmounts?: string[]
|
|
|
|
|
fee?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PayloadBroadcastSignedTransaction {
|
|
|
|
|
transactionHex: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Utxo {
|
|
|
|
|
additionRecord: string
|
|
|
|
|
amount: string
|
|
|
|
|
blockHeight: number
|
|
|
|
|
utxoHash: string
|
2025-10-24 22:49:46 +07:00
|
|
|
}
|