# TrustSet Link/QR

Offering a direct link / QR code to a payload does **not** come with the advantages of creating a [Payloads (sign requests)](/concepts/payloads-sign-requests.md) of getting live feedback & webhooks based on the user's engagement.

The advantage of a simple Sign Link / QR is that you can craft the link / QR once, and it will be available for all users without further code implementations.

Simple Sign Link/QR is available for the following transaction type(s)

* `TrustSet` (adding a Trust Line, a.k.a. adding a Token)

## Crafting the link / QR contents

```javascript
const tx = {
  TransactionType: 'TrustSet',
  Flags: 131072,
  LimitAmount: {
    currency: 'XAH',
    issuer: 'rswh1fvyLqHizBS2awu1vs6QcmwTBd9qiv',
    value: '100000000',
  }
}

const str = JSON.stringify(tx)
const hex = Buffer.from(str, 'utf-8').toString('hex')

console.log(`https://xaman.app/detect/${hex}`)
```

Example QR:

<figure><img src="/files/DKt1W78vYsfugzDgDVm2" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xaman.dev/simple-link-qr/trustset-link-qr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
