Simple Sign Request

import { Xumm } from "xumm"

const Sdk = new Xumm(process.env.XUMM_KEY, process.env.XUMM_SECRET)
const pong = await Sdk?.ping()
const payload = await Sdk.payload?.create({
  custom_meta: {
    instruction: "Sign request from " + pong?.application.name,
  },
  txjson: {
    TransactionType: "SignIn",
  },
})

console.log(payload)

See this code in action:

Last updated