Swiftpack.co - hashgraph/hedera-sdk-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by hashgraph.
hashgraph/hedera-sdk-swift 0.12.0
Hedera™ SDK for Swift
⭐️ 8
🕓 2 weeks ago
iOS macOS
.package(url: "https://github.com/hashgraph/hedera-sdk-swift.git", from: "0.12.0")

Hedera™ Swift SDK

The SDK for interacting with Hedera Hashgraph: the official distributed consensus platform built using the hashgraph consensus algorithm for fast, fair and secure transactions. Hedera enables and empowers developers to build an entirely new class of decentralized applications.

Maintained with ❤️ by LaunchBadge, Swirlds Labs, and the Hedera community


  • Swift v5.5+
  • MacOS v10.15+ (2019, Catalina)
  • iOS 13+ (2019)


// Package.swift
dependencies: [
    .package(url: "https://github.com/hashgraph/hedera-sdk-swift.git", from: "0.1.0")

See "Adding Package Dependencies to Your App" for help on adding a swift package to an Xcode project.


import Hedera

// connect to the Hedera network
let client = Client.forTestnet()

// query the balance of an account
let ab = try await AccountBalanceQuery()

print("balance = \(ab.balance)")

See examples for more usage.

Community and Support

If you have any questions on the Hedera SDK or Hedera more generally, you can join our team and hundreds of other developers using Hedera in our community Discord:


Licensed under Apache License, Version 2.0 – see LICENSE or apache.org/licenses/LICENSE-2.0.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.


Stars: 8
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2 weeks ago


  • Add Client.forName to create a client from the name of a network
  • Add toBytes to all Transaction types
  • Add fromBytes to Transaction
  • Add freeze and freezeWith to Transaction
  • Add ContractFunctionParameters and ContractFunctionSelector and its usage across the various contract transactions and queries
  • Add ContractFunctionResult
  • Add tokenBalances and tokenDecimals to AccountBalance


  • Set defaults for various transaction fields (auto renew period, etc.)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics