Skip to content

horizontalsystems/Checkpoints

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages