패키지, 저장소 및 앱 카테고리 검색

패키지 상세v3.10.0

stellar_flutter_sdk

Flutter용 스타렐 SDK로, Horizon과 Soroban RPC를 쿼리하고, 스타렐에 트랜잭션을 생성, 서명 및 제출할 수 있습니다. 많은 SEPs를 지원하며, Soroban 계약을 배포하고 호출할 수 있습니다.

AndroidiOSWeb
30일 다운로드
3.2천
좋아요
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의 플러터 개발자
  • 스텔라를 대상으로 하는 블록체인 앱 제작자
  • 스마트 계약을 사용하는 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.