Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev3.10.0

stellar_flutter_sdk

Uma SDK do Stellar para Flutter que pode consultar o Horizon e o RPC do Soroban, criar, assinar e enviar transações para o Stellar. Suporta muitos SEPs e pode implantar e invocar contratos do Soroban.

AndroidiOSWeb
Downloads em 30 dias
3,2 mil
Curtidas
18
Pontos Pub
150

Instalar pacote

flutter pub add stellar_flutter_sdk

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

O SDK Flutter Stellar permite que aplicativos Flutter interajam com a blockchain Stellar. Ele suporta a consulta a pontos finais Horizon e Soroban RPC, criação, assinatura e envio de transações. O pacote facilita a integração com múltiplos SEPs e fornece ferramentas para implantar e invocar contratos inteligentes Soroban. Projetado para uso em múltiplas plataformas, funciona perfeitamente no Android, iOS e Web. Ideal para desenvolvedores que constroem aplicações financeiras descentralizadas (DeFi), emissoras de tokens ou serviços baseados em contratos na Stellar.

Casos de uso

  • Construindo aplicações DeFi no Stellar
  • Emitir e gerenciar ativos digitais
  • Interagindo com contratos inteligentes Soroban
  • Habilitar integrações de pagamento compatíveis com SEP
  • Criando interfaces de carteira para redes Stellar

Principais recursos

  • Suporta Horizon e RPC do Soroban
  • Assinatura e envio de transações
  • Implantação e invocação de contrato Soroban
  • integração multi-SEP
  • Compatibilidade multiplataforma (Android, iOS, Web)

Indicado para

  • Desenvolvedores Flutter em Web3
  • Criadores de aplicativos de blockchain voltados para Stellar
  • Construtores de DApp usando contratos inteligentes
  • desenvolvedores de carteiras cripto
  • equipes de implementação de SEPs

Considerações

  • Requer conhecimento dos fundamentos da rede Stellar
  • Necessita de práticas seguras de gerenciamento de chaves
  • Dependente de endpoints RPC externos
  • Pode exigir tratamento adicional de erros para latência de rede
  • Melhor usado com gerenciamento de estado adequado em aplicativos Flutter

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

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.

Categorias

Dependências

Lista de dependências 13 itens

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.