/blocto-ios-sdk

Integrate with Blocto wallet on Polygon, Flow, BNB Chain, Avalanche and Ehtereum.

Primary LanguageSwiftMIT LicenseMIT

BloctoSDK

CI Status Version License Platform

Example

To run the example project, clone the repo, and run

bundle install
bundle exec pod install

or (if Bundler not installed)

pod install

from the Example directory first.

Installation

CocoaPods

BloctoSDK is available through CocoaPods. You can only include specific subspec to install, simply add the following line to your Podfile:

pod 'BloctoSDK', '~> 0.6.2'

# or 

pod 'BloctoSDK/Solana', '~> 0.6.2'

# or

pod 'BloctoSDK/EVMBase', '~> 0.6.2'

# or

pod 'BloctoSDK/Flow', '~> 0.6.2'

Swift Package Manager

.package(url: "https://github.com/portto/blocto-ios-sdk.git", .upToNextMinor(from: "0.6.2"))

and then specify "BloctoSDK" as a dependency of the Target in which you wish to use. Here's an example PackageDescription:

// swift-tools-version: 5.6
import PackageDescription

let package = Package(
    name: "MyPackage",
    products: [
        .library(
            name: "MyPackage",
            targets: ["MyPackage"]
        ),
    ],
    dependencies: [
        .package(url: "https://github.com/portto/blocto-ios-sdk.git", .upToNextMinor(from: "0.6.2"))
    ],
    targets: [
        .target(
            name: "MyPackage",
            dependencies: [
                .product(name: "BloctoSDK", package: "blocto-ios-sdk"),
            ]
        )
    ]
)

Usage

Currently support

  • Solana SDK
  • EVMBase SDK (Ethereum, Avalanche, BSC, Polygon)
  • Flow SDK

For further instructions please refer to Blocto Docs

Author

Dawson, dawson@portto.com, Scott, scott@portto.com

License

BloctoSDK is available under the MIT license. See the LICENSE file for more info.