TrustSet Link/QR
If you simply want to offer users a static link / QR code to sign a specific XRPL transaction, you can craft a link (to be offered directly or as contents of a QR code) for users to click / scan.
Crafting the link / QR contents
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}`)
Last updated
Was this helpful?