Backend
A sign request in Xumm is a prompt to approve a transaction or action on the XRP Ledger. This page will show you how you can create a Sign Request, and how you can deliver the request to the end user.
import { Xumm } from "xumm"
const xumm = new Xumm("some-api-key", "some-secret-key")
const payload = await xumm.payload?.create({
user_token: "xxxxxxxxxx",
txjson: {
TransactionType: "SignIn"
},
options: {
return_url: {
app: "https://sample.test/?...",
web: "https://sample.test/?id={id}"
},
force_network: "MAINNET"
},
custom_meta: {
identifier: "123123",
instruction: "Please sign this to..."
}
})) Last updated
Was this helpful?