Stellar SDK for Flutter
Documentation
General
The Soneso open source Stellar SDK for Flutter is build with Dart and provides APIs to build and sign transactions, connect and query Horizon. To learn about the general concepts of Stellar you can read the Stellar Development Guides.
Resources
* Installation Guide
* Quick Start Guide
* Source code
* Download API documentation
* Main page
* SDK Examples:
Example | Description | Documentation |
---|---|---|
Create a new account | A new account is created by another account. In the testnet we can also use Freindbot. | Create account |
Send native payment | A sender sends 100 XLM (Stellar Lumens) native payment to a receiver. | Payments |
Crerate trustline | An trustor account trusts an issuer account for a specific custom token. The issuer account can now send tokens to the trustor account. | Assets & Trustlines and Change trust |
Send tokens - non native payment | Two accounts trust the same issuer account and custom token. They can now send this custom tokens to each other. | Assets & Trustlines and Change trust and Payments |
Path payments | Two accounts trust different custom tokens. The sender wants to send token “IOM” but the receiver wants to receive token “ECO”. | Path payment strict send and Path payment strict receive |
Merge accounts | Merge one account into another. The first account is removed, the second receives the funds. | Account merge |
Bump sequence number | In this example we will bump the sequence number of an account to a higher number. | Bump sequence number |
Manage data | Sets, modifies, or deletes a data entry (name/value pair) that is attached to a particular account. | Manage data |
Manage buy offer | Creates, updates, or deletes an offer to buy one asset for another, otherwise known as a “bid” order on a traditional orderbook. | Manage buy offer |
Manage sell offer | Creates, updates, or deletes an offer to sell one asset for another, otherwise known as a “ask” order or “offer” on a traditional orderbook. | Manage sell offer |
Create passive sell offer | Creates, updates and deletes an offer to sell one asset for another, otherwise known as a “ask” order or “offer” on a traditional orderbook, without taking a reverse offer of equal price. | Create passive sell offer |
Change trust | Creates, updates, and deletes a trustline. | Change trust and Assets documentation |
Allow trust | Updates the authorized flag of an existing trustline. | Allow trust and Assets documentation |
Stream payments | Listens for payments received by a given account. | Streaming |
Fee bump transaction | Fee bump transactions allow an arbitrary account to pay the fee for a transaction. | Fee bump transactions |
Muxed accounts | In this example we will see how to use a muxed account in a payment operation. | First-class multiplexed accounts |
SEP-0001: stellar.toml | In this example you can find out how to obtain data about an organization’s Stellar integration. | SEP-0001 |
SEP-0002: Federation | This examples shows how to resolve a stellar address, a stellar account id, a transaction id and a forward by using the federation protocol. | SEP-0002 |
SEP-0005: Key derivation | In this examples you can see how to generate 12 or 24 words mnemonics for different languages using the Flutter SDK, how to generate key pairs from a mnemonic (with and without BIP 39 passphrase) and how to generate key pairs from a BIP 39 seed. | SEP-0005 |
SEP-0006: Deposit and Withdrawal API | In this examples you can see how to use the sdk to communicate with anchors. | SEP-0006 |
SEP-0007: URI Scheme to facilitate delegated signing | In this examples you can see how to use the sdk to support SEP-0007 in your wallet. | SEP-0007 |
SEP-0008: Regulated Assets | In this example you can see how to use the sdk to support regulated Assets in your wallet. | SEP-0008 |
SEP-0010: Stellar Web Authentication | This example shows how to authenticate with any web service which requires a Stellar account ownership verification. | SEP-0010 |
SEP-0011: Txrep | This example shows how to to generate Txrep (human-readable low-level representation of Stellar transactions) from a transaction and how to create a transaction object from a Txrep string. | SEP-0011 |
SEP-0012: KYC API | In this examples you can see how to use the sdk to send KYC data to anchors and other services. | SEP-0012 |
SEP-0024: Hosted Deposit and Withdrawal | In this examples you can see how to interact with anchors in a standard way defined by SEP-0024. | SEP-0024 |
SEP-0030: Account Recovery | In this examples you can learn how to recover accounts as defined by SEP-0030. | SEP-0030 |
SEP-0038: Quotes | In this examples you can learn how to get quotes as defined by SEP-0038. | SEP-0038 |
More examples and use cases can be found in the test classes.
An additional example App is in progress.