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.
// 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() .account_id(AccountId("0.0.1001")!) .execute(client) print("balance = \(ab.balance)")
See examples for more usage.
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:
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.
|Last commit: 2 weeks ago|
Client.forNameto create a client from the name of a network
ContractFunctionSelectorand its usage across the various contract transactions and queries