Recently, I am working on generating an Ethereum QR code that mobile wallet (e.g. imToken) can scan and pay from there. But the problem is that I cannot pass the data value.

I use C# code to generate the QR code as following:

using (MemoryStream ms = new MemoryStream())
                QRCodeGenerator qrGenerator = new QRCodeGenerator();
                var url = "ethereum:" + coinAddress + "?amount=" + value + "&data=3130302c4852313739383337363236342c3836";
                ViewBag.QRCodeUrl = url;
                QRCodeData qrCodeData = qrGenerator.CreateQrCode(url, QRCodeGenerator.ECCLevel.Q);
                QRCode qrCode = new QRCode(qrCodeData);
                using (Bitmap bitMap = qrCode.GetGraphic(20))
                    bitMap.Save(ms, ImageFormat.Png);
                    ViewBag.QRCodeImage = "data:image/png;base64," + Convert.ToBase64String(ms.ToArray());

I follow this url syntax:


I can get the address and amount But not the data

Please help correcting me if I have done wrongly.
Any solutions or corrections, I highly appreciated. Thank you in advance.

  • 1
    You ever get this solved? – Daithí Aug 13 '18 at 19:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.