パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.10.0

stellar_flutter_sdk

Flutter用のStellar SDKで、HorizonとSoroban RPCを照会し、Stellarにトランザクションの作成・署名・送信が可能です。多数のSEPsをサポートしており、Sorobanコントラクトのデプロイおよび呼び出しも行えます。

AndroidiOSWeb
30日間ダウンロード
3180
いいね数
18
Pub ポイント
150

パッケージをインストール

flutter pub add stellar_flutter_sdk

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Stellar Flutter SDK は、Flutter アプリケーションが Stellar ブロックチェーンとやり取りできるようにします。Horizon および Soroban RPC エンドポイントの照会、トランザクションの構築、署名、送信をサポートしています。このパッケージは複数の SEPs との統合を容易にし、Soroban スマートコントラクトのデプロイおよび呼び出しに必要なツールを提供します。クロスプラットフォーム対応で、Android、iOS、Web でスムーズに動作します。Stellar 上で分散型金融(DeFi)アプリ、トークン発行者、または契約ベースのサービスを開発する開発者に最適です。

用途

  • Stellar上でDeFiアプリケーションを構築する
  • デジタル資産の発行と管理
  • Sorobanスマートコントラクトとの連携
  • SEP準拠の決済統合を有効にする
  • Stellarネットワーク用のウォレットインターフェースの作成

主な機能

  • Horizon および Soroban RPC をサポートしています
  • トランザクションの署名と送信
  • Soroban コントラクトのデプロイと呼び出し
  • マルチ-SEP インテグレーション
  • クロスプラットフォーム互換性(Android、iOS、Web)

適している対象

  • Web3におけるFlutter開発者
  • Stellarをターゲットとするブロックチェーンアプリ作成者
  • スマートコントラクトを使用するDAppビルダー
  • 暗号ウォレット開発者
  • SEPs実装チーム

注意事項

  • ステラーネットワークの基本を理解している必要があります
  • セキュアな鍵管理の実践が必要です
  • 外部RPCエンドポイントに依存しています
  • ネットワーク遅延に対処するための追加のエラー処理が必要になる可能性があります
  • Flutterアプリで適切な状態管理と併用するのが最適です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Stellar SDK for Flutter

Dart Flutter codecov Ask DeepWiki

Build and sign Stellar transactions, query Horizon, and interact with Soroban smart contracts via RPC. Communicate with anchors and external services using built-in support for 18 SEPs.

Installation

dependencies:
  stellar_flutter_sdk: ^3.7.0
flutter pub get

Requires Dart SDK >=3.8.0 <4.0.0 and Flutter >=3.32.0.

iOS

Set your app's iOS deployment target to 15.0 or higher (platform :ios, '15.0' in ios/Podfile, and the Xcode project's iOS Deployment Target). Smart account passkey features additionally require iOS 16 at runtime; on iOS 15 those calls return a not-supported result while the rest of the SDK works normally.

Quick examples

Send a payment

Transfer XLM between accounts:

import 'package:stellar_flutter_sdk/stellar_flutter_sdk.dart';

Transaction transaction = TransactionBuilder(senderAccount)
    .addOperation(PaymentOperationBuilder(receiverId, Asset.NATIVE, '100').build())
    .build();
transaction.sign(senderKeyPair, Network.TESTNET);
await sdk.submitTransaction(transaction);
Trust an asset

Enable your account to receive a token (like USDC):

Asset usdc = Asset.createNonNativeAsset('USDC', issuerAccountId);
Transaction transaction = TransactionBuilder(account)
    .addOperation(ChangeTrustOperationBuilder(usdc, ChangeTrustOperationBuilder.MAX_LIMIT).build())
    .build();
transaction.sign(accountKeyPair, Network.TESTNET);
await sdk.submitTransaction(transaction);
Call a smart contract

Invoke a Soroban contract method:

SorobanClient client = await SorobanClient.forClientOptions(
    options: ClientOptions(
        sourceAccountKeyPair: keyPair,
        contractId: 'CABC...',
        network: Network.TESTNET,
        rpcUrl: 'https://soroban-testnet.stellar.org',
    ),
);
XdrSCVal result = await client.invokeMethod(name: 'hello', args: [XdrSCVal.forSymbol('World')]);

For complete walkthroughs, see the documentation.

Agent Skill

This repository includes an Agent Skill that teaches AI coding agents how to use this SDK. See skills/ for installation instructions.

Documentation

Guide Description
Quick start Your first transaction in 15 minutes
Getting started Keys, accounts, and fundamentals
SDK usage Transactions, operations, Horizon queries, streaming
Soroban Smart contract deployment and interaction
Smart Accounts OpenZeppelin smart account support: passkeys, multi-signer authorization, context rules, policies
SEPs Anchor integration, authentication, KYC, etc.

Smart Accounts (Passkey) support

This SDK ships first-class support for OpenZeppelin smart accounts on Stellar: WebAuthn passkey authentication on iOS, Android, and Web; multi-signer authorization; on-chain context rules; and policy contracts (threshold, weighted threshold, spending limit). An optional fee-bump relayer and credential indexer integrate transparently.

See the Smart Accounts documentation for an overview, the developer onboarding guide for conceptual material, the API reference for every public symbol, and the per-platform WebAuthn setup guides: iOS, Android, Web. For a runnable reference implementation, see the demo app.

Web Support

Starting with version 3.0.0, this SDK fully supports Flutter web. All 64-bit integer types have been migrated to BigInt to address JavaScript's 53-bit number precision limitation.

If you are upgrading from version 2.x, please refer to the Migration Guide for details on breaking changes and how to update your code.

Compatibility

Feedback

If you're using this SDK, feedback helps improve it:

Contributing

See CONTRIBUTING.md for guidelines.

カテゴリー

依存関係

依存関係一覧 13 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。