Developer Questions

Ask a Question

Once I've created a signing request on the backend, how do I redirect a user to the signing request on the frontend?

I've got an API endpoint that creates a signing request, like this: const subscription = await Xumm.payload .createAndSubscribe(request, (event) => { // .... more logic, the end result is an object with a link, etc... How do I take this information, and show the signing request on the frontend? I assume I use the jwt SDK for this, and probably need to pass the UUID? I was able to "hack" it by doing window.open([link]) to the link returned (subscription.created.next.always), but then after signing it doesn't return to the app. Thanks!
ANSWERED

UI workflow while waiting for the wallet user to scan the QR code

I'm working on something like an NFT marketplace. Say a user with Xumm wallet is on an NFT buy page. They click Buy Now and my backend shoots a request to Xumm API and get the below. { uuid: '77f7cde5-54a0-405b-afa6-864f1464693b', next: { always: 'https://xumm.app/sign/77f7cde5-54a0-404693b', no_push_msg_received: 'https://xumm.app/sign/77f7cde5-5464693b/qr' }, refs: { qr_png: 'https://xumm.app/sign/77f7cde5-54a0-44693b_q.png', qr_matrix: 'https://xumm.app/sign/77f7cde5-54a0464693b_q.json', qr_uri_quality_opts: [ 'm', 'q', 'h' ], websocket_status: 'wss://xumm.app/sign/77f7cd864f1464693b' }, pushed: true } So, my site will pop-up the QR code at https://xumm.app/sign/77f7cde5-8464693b_q.png and wait for the user to sign using their wallet. But how should I listen to know when the user has signed the request? Should my frontend listen to the websocket at wss://xumm.app/sign/77f7cde5-5464693b? Or is there a better way?
ANSWERED

how to add custom node in xumm app

I am trying to add custom node for NFTdevnet to test NFT methods. Please help wss://xls20-sandbox.rippletest.net:51233
ANSWERED

Is any XUMM SDK for unity3d?

Is any XUMM SDK for unity3d?
ANSWERED

Unity3d

Can we connect XUMM Wallet with unity 3d
ANSWERED

How to add other asset(currency) than XRP in custom network(https://hooks-testnet-v2.xrpl-labs.com/)?

I want to add other asset than XRP like XGBL to XUMM wallet to test the minting functionality. External Sites does not allow these addresses since its custom and is testnet. How can I add any other asset?
ANSWERED

"Unable to verify payload signature" on some Android phones only.

So we have this weird saying "Unable to verify payload signature" only in some Android phones. My colleague has 'infinix X655C" Android phone with Android version 10. It keeps throwing this error when he tries to sign the transaction(works for login through). But if I try to sign the same transaction by importing the same account in my Android or IOS it works. So don't know what exactly is going on here? Error Image: [Whats-App-Image-2022-06-20-at-9-28-26-PM.jpg](https://postimg.cc/TpHDBqR7) Signing Img: [![Whats-App-Image-2022-06-20-at-9-28-26-PMa.jpg](https://i.postimg.cc/TwT6Z84s/Whats-App-Image-2022-06-20-at-9-28-26-PMa.jpg)](https://postimg.cc/kVYzbH9N) Payload Reference number: 34118a0d-2115-4131-a2b4-e7d930f4f7e9
ANSWERED

Xumm with Auth0

As I saw in the login of the developer console, xumm is using auth0 also. I just don't seem to be able to get it configured correctly. When my unified login shows up, I cannot reach the QR Code scan a validate with my Xumm app. After I signed the sign-in transaction I am redirected, but still on the Auth0 login screen. In other terms the back and forth didn't help. Am I missing something, do I need a rule in Auth0 to get it working properly?
ANSWERED

Error: Payload encoding error: Invalid type to construct an Amount

The payload creation for this json throws "Invalid type to construct an Amount" error. What is the format for Amount? ```{ user_token: '69002d91-8692-4ab2-8e7f-51d0a7d36082', TransactionType: 'NFTokenCreateOffer', txjson: { TransactionType: 'NFTokenCreateOffer', Account: 'rBaw9YZND7cDF1f2jQVE1bDsSZY1szv7fs', NFTokenID: '00080000C924488438D936EC938CCBD9D20F52AD732DF98B44B17C9E00000003', Amount: 100000000, Flags: 1, Destination: 'rKLYHZgkP3afTaBh9DyZZkq3B9n3wu9nyS', Owner: 'rKLYHZgkP3afTaBh9DyZZkq3B9n3wu9nyS' }, options: { submit: true, multisign: false, expire: 15, return_url: 'http://localhost:3001' } }``` [image.png](https://postimg.cc/tsY0mktX)
ANSWERED

How do we detect if the account was signed through a test/dev/main net?

So TransactionType: 'SignIn' is only a XUMM transaction, but there are some sites like Sologenic, XrpToolkit that detects if the account is a tes account and says its not activated. So how do we detect that the account is not activated when user tries to sign through a testnet or devnet or even through main net?