Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 893 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 893 Bytes

Checkpoints

Checkpoints for bitcoin-based blockchains. Bitcoin, Dash, Litecoin, BitcoinCash

Installation

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but DashCryptoKit does support its use on supported platforms.

Once you have your Swift package set up, adding DashCryptoKit as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/horizontalsystems/Checkpoints.git", .upToNextMajor(from: "1.0.0"))
]

Usage

let checkpoints = try CheckpointData(blockchain: .dash, network: .main, blockType: .last)
checkpoints.block // main block data
checkpoints.additionalBlocks // additional blocks data