UNPKG

infoblock

Version:

A typed wrapper of the blockchain.info API

14 lines (13 loc) 590 B
import Transaction from "./Transaction"; import { Hash } from "./types"; export default class Address { address: Hash; transactionsCount: number; unredeemedTransactionsCount: number; balance: number; totalSent: number; totalReceived: number; transactions: Transaction[]; constructor(address: Hash, txCount: number, unredeemedTxCount: number, balance: number, totalSent: number, totalReceived: number, transactions?: Transaction[]); static constructFromObj({ address, n_tx, n_unredeemed, total_received, total_sent, final_balance, txs }: any): Address; }