Contents

fintag-io/fintag-swift

A Swift SDK for interacting with the FinTag API, enabling verification and wallet information retrieval for FinTag users.

Features

  • Verify FinTag usernames
  • Retrieve wallet information for a FinTag
  • Supports iOS and macOS

Installation

Add the following to your Package.swift dependencies:

.package(url: "https://github.com/fintag-io/fintag-swift.git", from: "1.0.0")

Then add FinTag as a dependency for your target:

.target(
    name: "YourApp",
    dependencies: ["FinTag"]
)

Usage

import FinTag

let client = FinTagClient(apiKey: "YOUR_API_KEY", baseURL: "FINTAG_API_URL")

client.verify(fintag: "#username") { result in
    switch result {
    case .success(let data):
        print("Verification:", data)
    case .failure(let error):
        print("Error:", error)
    }
}

client.getWalletInfo(fintag: "#username") { result in
    switch result {
    case .success(let data):
        print("Wallet Info:", data)
    case .failure(let error):
        print("Error:", error)
    }
}

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open issues or submit pull requests for improvements or bug fixes.


Package Metadata

Repository: fintag-io/fintag-swift

Default branch: main

README: README.md