44 lines
958 B
TypeScript
Raw Normal View History

2025-10-24 22:49:46 +07:00
export interface WalletState {
seedPhrase: string[] | null
password?: string | null
2025-10-24 22:49:46 +07:00
receiverId: string | null
viewKey: string | null
spendingKey?: string | null
2025-10-24 22:49:46 +07:00
address: string | null
network: 'mainnet' | 'testnet'
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
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
}