{"id":30896912,"url":"https://github.com/circlefin/modularwallets-ios-sdk","last_synced_at":"2025-09-08T23:47:51.893Z","repository":{"id":279190738,"uuid":"890337359","full_name":"circlefin/modularwallets-ios-sdk","owner":"circlefin","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-24T05:33:39.000Z","size":248,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-24T07:55:10.111Z","etag":null,"topics":["ios","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/circlefin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-18T11:58:42.000Z","updated_at":"2025-07-24T04:55:33.000Z","dependencies_parsed_at":"2025-06-05T10:21:41.483Z","dependency_job_id":"d49b66e2-2db6-4710-a099-462473000afa","html_url":"https://github.com/circlefin/modularwallets-ios-sdk","commit_stats":null,"previous_names":["circlefin/modularwallets-ios-sdk"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/circlefin/modularwallets-ios-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fmodularwallets-ios-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fmodularwallets-ios-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fmodularwallets-ios-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fmodularwallets-ios-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/circlefin","download_url":"https://codeload.github.com/circlefin/modularwallets-ios-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Fmodularwallets-ios-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231140,"owners_count":25245675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","swift"],"created_at":"2025-09-08T23:47:47.649Z","updated_at":"2025-09-08T23:47:51.844Z","avatar_url":"https://github.com/circlefin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modularwallets-ios-sdk\n\nThis is **CircleModularWalletsSDK** repo in iOS.\n\n## Installation\n\n### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler.\n\nOnce you have your Swift package set up, adding CircleModularWalletsCore as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift` or the Package list in Xcode.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/circlefin/modularwallets-ios-sdk.git\", .upToNextMajor(from: \"1.0.0\"))\n]\n```\n\nNormally you'll want to depend on the `CircleModularWalletsCore` target:\n\n```swift\n.product(name: \"CircleModularWalletsCore\", package: \"CircleModularWalletsCore\")\n```\n\n## Example\n\n### Users can create smart accounts and send UserOps with passkeys with sample code\n\n\u003e ```swift\n\u003e import CircleModularWalletsCore\n\u003e \n\u003e let CLIENT_KEY = \"xxxxxxx:xxxxx\"\n\u003e \n\u003e Task {\n\u003e   do {\n\u003e     // 1. SDK calls RP to create/login a user\n\u003e \n\u003e     // Create a PasskeyTransport with client key\n\u003e     let transport = toPasskeyTransport(clientKey: CLIENT_KEY)\n\u003e \n\u003e     let credential = try await toWebAuthnCredential(\n\u003e       transport: transport,\n\u003e       userName: \"MyExampleName\", // userName\n\u003e       mode: WebAuthnMode.register // or WebAuthnMode.login\n\u003e     )\n\u003e       \n\u003e     // 2. Create a WebAuthn owner account from the credential.\n\u003e     let webAuthnAccount = toWebAuthnAccount(\n\u003e       credential\n\u003e     )\n\u003e \n\u003e     // 3. Create modularTrasport with chain and client key then create a bundlerClient\n\u003e     let modularTrasport = toModularTransport( \n\u003e       clientKey: CLIENT_KEY,\n\u003e       url: clientUrl\n\u003e     )\n\u003e \n\u003e     let bundlerClient = BundlerClient( \n\u003e       chain: Sepolia,\n\u003e       transport: modularTrasport\n\u003e     )\n\u003e  \n\u003e     // 4. Create SmartAccout(CircleSmartAccount) and set the WebAuthn account as the owner\n\u003e     let smartAccount = try await toCircleSmartAccount(\n\u003e       client: bundlerClient,\n\u003e       owner: webAuthnAccount\n\u003e     )\n\u003e \n\u003e     // 5. Send an User Operation to the Bundler. For the example below, we will send 1 ETH to a random address.\n\u003e     let hash = bundlerClient.sendUserOperation(\n\u003e       account: account,\n\u003e       calls: [\n\u003e         EncodeCallDataArg(\n\u003e           to: \"0x70997970c51812dc3a010c7d01b50e0d17dc79c8\",\n\u003e           value: UnitUtils.parseEtherToWei(\"1\")\n\u003e         )\n\u003e       ]\n\u003e     )\n\u003e   } catch {\n\u003e     print(error)\n\u003e   }\n\u003e }\n\u003e ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirclefin%2Fmodularwallets-ios-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcirclefin%2Fmodularwallets-ios-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirclefin%2Fmodularwallets-ios-sdk/lists"}