Xmagnetic trust lines
Magnetic provides entry points to XRP Ledger (XRPL) trust-line settings. These let an account choose which trust line tokens it accepts through payments from others and set the receiving limit. The token's currency code and issuer identify the asset; issuer restrictions can also affect receipt.
A holder's trust-line parameters
| Parameter | Meaning for a token holder |
|---|---|
| Ledger scope | A specific account on the selected XRP Ledger network. |
| Currency code | The exact currency code identifying the token with its issuer. |
| Issuer account | The full issuing account address. Tokens with different issuers are different assets, even when their currency codes match. |
| Receiving limit | Maximum balance allowed through payments from others, in that token's units. |
| Token balance | The signed balance from the holder account's perspective, in token units. A positive balance means the account holds tokens. |
| Issuer authorization | Approval from the issuer is also required when its Require Auth setting applies. |
Setting a line through Magnetic
Magnetic includes Set trust line among token-page services and a Trust line entry on trading screens. Before authorizing a proposed trust-line change, compare its account, currency code and full issuer address with the token and account you intend to use, on the selected network.
At protocol level, a
TrustSet
transaction creates or modifies a trust line. Creating a new line with a nonzero limit starts its token balance at zero. It doesn't purchase tokens or complete a trade.
How limits affect payments and purchases
For payments initiated by others, the limit applies to the resulting token balance, so an existing balance uses part of the permitted amount. A line's existence, sufficient receiving capacity and applicable freeze state are among the issued-token payment checks.
An issuer using Require Auth must also authorize the holder's line for that currency. Raising your own limit doesn't provide this approval.
Your own DEX purchases can take the balance above its limit, and lowering the limit doesn't remove tokens already held. XRPL can create a line implicitly during a purchase with default settings, so a separate manual
TrustSet
isn't a protocol prerequisite for every trade.
XRP reserves and line removal
XRP itself doesn't need a trust line. Creating or keeping a trust line may increase the XRP an account must hold in reserve; the applicable requirement depends on the network and the account's ledger state. Reserved XRP remains in the account, separate from the transaction fee.
A trust line is automatically deleted when its balance is zero and both sides' settings are in their default state. The authorization flag is exempt from this default-state test. Nondefault settings on the other side can keep the shared line present even after the holder's own settings return to default. If the balance is also zero, the line no longer counts toward the holder's owner reserve.