Developer Questions

Ask a Question

Transaction History

I am trying to lookup a XUMM transaction that is almost 60 days old in our system. We are using the XUMM API and have the response payload with Transaction ID, Payload Response UUIDv4 and Reference Call UUIDv4. When I try to retrieve the Payload UUID or Transaction ID I get a response ""code":813". Is it possible using the API to retrieve a past transactions? The 2 endpoints I have tester are <https://xumm.app/api/v1/platform/payload/$plid> <https://xumm.app/api/v1/platform/xrpl-tx/$txid>

Applying xrp code

I have been writing code since last spring and I have it working in browser and have code for web3 in file. I am needing help applying ripple/xrp code and creating a few smart contracts and payment systems. I was xrpl looking and got into testnet and created a couple accounts for practicing and applied secret to code but could not get it sequence or go through. I'm really new at this coding stuff but seem to be able to put together this huge project I'm working on. I dont know all the tech talk so its really confusing in what I'm trying to read for what I need. I contacted xumm which led me here and I also was given another website from them to look at some hooks which I haven't done yet and am doing next but like a step by step guide or on applying your code would be so helpful and much appreciated. I would love to get this done and presented to you. html node js and css+ are the languages I used. Thanks

SOLO transaction requests returning null

Howdy! We've been messing around with token integration for our project. Had a smashing success integrating STX into our system, however, i am bumping into a few issues with some other tokens, namely SOLO. A few things I can scratch off as possible causes are things like tokens, addresses, issuers etc, not only because the system I have built works well with a different token (STX) but also because, had this been the case, usually the Xumm package does a good job at returning a descriptive error of what went wrong, however, when i try to create this request, I am just getting a null response from the Xumm SDK which gives me very little to work with. This is an example request which is returning null. I have purposefully skipped the account and destination fields as previously explained. ```json { options: { expire: 5 }, custom_meta: { instruction: 'Thanks for using [Our Product]. Please approve your SOLO transaction.' }, txjson: { TransactionType: 'Payment', Account: '-', Destination: '-', Amount: { currency: 'SOLO', issuer: 'rsoLo2S1kiGeCcn6hCUXVrCpGMWLrRrLZz', value: 40 } }, user_token: '-' } ``` For comparison, a different request with the currency set to STX and with the right issuer address for that works just fine, however, when I submit this using `xumm.payload.create(request)` I just get a null response. We're currently using version `^1.6.5`of the xumm npm package. Thanks in advance for your help!

Help with coding

Could someone help with some python code (xumm.sdk) to create an offer on a NFT? I tried re-working the sample codes with no luck.

keep getting a invalid API key/secret but they match when I node deplo-commands this happens

PS C:\\Users\\socia> node "C:\\Users\\socia\\Desktop\\XRPL-DEXBot-main\\deploy-commands.js" C:\\Users\\socia\\node_modules\\xumm-sdk\\dist\\src\\Meta.js:51 throw new Error('Invalid API Key and/or API Secret. Use dotenv or constructor params.');

Problem of sign in payload

hey team we are trying to integrate XUMM for our website in web browser. we need to sign a customised hash in order to go through. however the following code does not wake up any QR code process. Can you help give some idea? Thanks const subscription = await this.xumm.payload.createAndSubscribe({ custom_meta: { instruction: hash.hash, }, txjson: { TransactionType: "SignIn", } }, event => { console.log('New payload event:', event.data) if (event.data.signed === true) { console.log(event.data.payload_uuidv4) console.log('Woohoo! The sign request was signed :)') this.doLogin(event.data.payload_uuidv4, userAccount,hash) return event.data } ``` if (event.data.signed === false) { console.log('The sign request was rejected :(') this.closeHandle() return false } }) ```

Seeking guidance on creating xumm payload with nft-metadata

Hey, community members, I need help on creating xumm payload with nft-metadata. Here is the payload I'm currently using for minting: payload_data = { ``` form = NFTForm(request.POST, request.FILES, initial={ 'xrpl_data': xrpl_data_json}) print(form) if form.is_valid(): title = form.cleaned_data['title'] description = form.cleaned_data['description'] image = form.cleaned_data['image'] payload_data = { "txjson": { "TransactionType": "NFTokenMint", "Account": publicAddress, "URI": ipfs_cid, "Flags": 8, "TransferFee": 10, "NFTokenTaxon": 0 }, "options": { "return_url": { "web": "http://127.0.0.1:8000/XummMintCallbackView" } }, "metadata": { "name": title, "description": description } } ``` So, please let me know if there is any alternate way to handle the metadata or if is there any standard format for payload_data to include the metadata for the MintNFToken transaction.

Seeking Guidance on NFT Minting with XUMM - Any Advice?

Hello fellow forum members, I'm a python/django developer, looking for assistance in creating NFTs using XUMM. I'm interested in the entire process, from minting to listing these non-fungible tokens on the blockchain(XRPL). Any kind of code snippit you can provide will be greatly appreciated! Could someone kindly provide a step-by-step guide or offer any tips, resources, or recommendations to help me get started with this exciting venture? Your expertise would be greatly appreciated! Thank you in advance.

getting this error var Keypair = ripple_keypairs_1.default.deriveKeypair(familyseed); ^ TypeError: Cannot read properties of undefined (reading 'deriveKeypair')

``` if (process.argv.length < 3) { console.log('usage: node dist/index <secret_type> <secret> <destination> <amount>'); console.log ("secret type\n1. family\n2. Mnemonic\n\n") process.exit(1); } import { XrplClient } from "xrpl-client"; import { utils, derive, sign } from "xrpl-accountlib"; const cilent = new XrplClient('wss://s.altnet.rippletest.net:51233'); const main = async () => { let account: any; if (isNaN(Number(process.argv[5]))){ console.log('Invalid amount'); process.exit(1); } if (process.argv[2] !== "1" && process.argv[2] !== "2") { console.log('\nPlease enter appropriate secret type from the selection\n'); process.exit(1); } if (!utils.isValidAddress(process.argv[4])) { console.log('Invalid destination address'); process.exit(1); } if (process.argv[2] === "1"){ if (!utils.isValidSeed(process.argv[3])) { console.log('Invalid family seed'); process.exit(1); } account = derive.familySeed(process.argv[3]); } if (process.argv[2] === "2" ) { if (!utils.isValidMnemnic(process.argv[3])) { console.log('Invalid Mnemonic'); process.exit(1); } account = derive.mnemonic(process.argv[3]); } console.log(process.argv[3]) const data = await cilent.send({ id :1, command: 'account_info', account: account.address, strict: true, }); /*console.log(data);*/ if (data.error){ console.log ("Error: ", data.error_message); process.exit(1); } console.log("Balance: ", Number(data.account_data.Balance) / 1000000); if ( Number(data.account_data.Balance) / 1000000 <= Number(process.argv[5]) +10 ) { console.log("Not enough balance"); process.exit(1); } const { id, signedTransaction } = sign( { TransactionType: 'Payment', account: account.address, Destination: process.argv[4], Amount: String(Number(process.argv[5]) * 1000000), Sequence: data.account_data.Sequence, Fee: String(12), }, account); console.log(id); console.log(signedTransaction); /* if (data.error){ console.log ("Error: ", data.error_message); process.exit(1); } console.log("LedgerEntryType: ", data.result.account_data?.LedgerEntryType); console.log("Balance: ", data.result.account_data.Balance / 1000000, "XRP"); console.log("OwnerCount: ", data.result.account_data?.OwnerCount); console.log("Sequence: ", data.result.account_data?.Sequence); console.log("Current Ledger Index: ", data?.ledger_current_index); */ }; main(); ``` this is the full script

Need Help with XUMM User Authentication in Python/Django Application

Hello XUMM Developer Community, I hope this message finds you well. I am currently working on implementing user authentication in my Python/Django application using XUMM. I have made progress up to the point where users can successfully sign in by scanning a barcode. ![](https://files.readme.io/2df8bb2-image.png) However, I am encountering an issue where the user cannot be redirected to my website upon successful sign-in. I would greatly appreciate your assistance in resolving this issue. If you have any experience or insights into how to properly handle the redirection after a successful sign-in using XUMM in a Django application, I would be very grateful for your guidance. Any advice, code snippets, or best practices you can share would be incredibly valuable to me and my project. Thank you in advance for your help and support. I look forward to hearing from you and learning from your expertise. Best regards, Varun Kumar