Skip to main content

Overview

StellarModule provides native Stellar blockchain operations including message signing, transaction envelope signing, XLM and asset transfers, trustlines, balance queries, and network details. Access it via DynamicSDK.instance().stellar.

Prerequisites

Get a Stellar Wallet

If Stellar is enabled in the dashboard, the user gets a Stellar wallet on signup. Find it via userWallets:

Get Balance

Query the XLM balance for a wallet. Returned as a string to preserve precision. Pass assetCode and assetIssuer to query a non-native asset instead.

Get Network

Query the Stellar network the wallet is connected to:

Sign a Message

Sign a message using the connected Stellar wallet:

Sign a Transaction

Sign a base64-encoded transaction envelope XDR. Returns the signed envelope XDR:

Send a Balance

Send XLM, or a Stellar asset, to a recipient. Returns the transaction hash.

Add a Trustline

Add a trustline for a non-native asset. An account must hold a trustline for an asset before it can receive it:

API Reference

Next Steps

Last modified on September 15, 2026