addTrustline adds a trustline for a custom Stellar asset to a wallet account, allowing the account to hold and receive that asset. Each trustline reserves a small amount of XLM as base reserve. The wallet provider prompts the user to sign the trustline transaction.
Usage
Parameters
limit must be greater than zero and at most 922337203685.4775807, with up to 7 decimals. A zero limit would remove the trustline, so it is rejected.
Returns
Promise<{ transactionHash: string }> - A promise that resolves to an object containing the submitted transaction hash. Wait for inclusion with confirmTransaction.
Errors
Last modified on November 27, 2026