UNPKG

@azpool/chia-client

Version:

TypeScript client for Chia node peer RPC interface

46 lines (45 loc) 1.35 kB
import { BackupInfo } from './BackupInfo'; import { RpcResponse } from '../RpcResponse'; import { WalletInfo } from './WalletInfo'; import { WalletBalance } from './WalletBalance'; import { Transaction } from './Transaction'; export interface LoginResponse extends RpcResponse { backup_info?: BackupInfo; backup_path?: string; } export interface PublicKeysResponse { public_key_fingerprints: string[]; } export interface PrivateKeyResponse extends RpcResponse { private_key: string[]; } export interface GenerateMnemonicResponse extends RpcResponse { mnemonic: string[]; } export interface AddKeyResponse extends RpcResponse { word?: string; } export interface SyncStatusResponse extends RpcResponse { syncing: boolean; } export interface HeightResponse extends RpcResponse { height: number; } export interface WalletsResponse extends RpcResponse { wallets: WalletInfo[]; } export interface WalletBalanceResponse extends RpcResponse { wallet_balance: WalletBalance; } export interface TransactionResponse extends RpcResponse { transaction: Transaction; transaction_id: string; } export interface TransactionsResponse extends RpcResponse { transactions: Transaction[]; wallet_id: number; } export interface NextAddressResponse extends RpcResponse { wallet_id: number; address: string; }