QR Code generation endpoint

QR Code generation endpoint

2 years, 4 months ago

Our team has added a new endpoint to automatically generate payment QR codes for you!

To make your lives easier and integrations faster, we have added a new endpoint that will automatically generate a payment QR code for any currency.

The new endpoint /qrcode/ is available for all currencies and takes 2 parameters: address and value (optional).
If value is provided, then a full payment URI is built for the coin selected, if not, then the QR code will consist of the address only.

The output will be a base64-encoded image that can be added directly to a <img> HTML tag.

Examples:

https://api.cryptapi.io/btc/qrcode/?address=1PE5U4temq1rFzseHHGE2L8smwHCyRbkx3&value=0.01
https://api.cryptapi.io/erc20/busd/qrcode/?address=0x76e81bf0d554c1c9237cc143905079c6a4a5bf26&value=12.5
https://api.cryptapi.io/trc20/usdt/qrcode/?address=TBEQYbaTXZdYd9hUpEpp6QRRTbzs3o6kSr
Share