Sending Address
Use QR code scanner on Gluwa mobile app to get wallet address from your user.
Last updated
Was this helpful?
Was this helpful?
// example code when using cozmo/jsQR
import jsQR from "jsqr";
const width = 300;
const height = 300;
const sendAddressData = {
QrType: 'SendAddress',
Key: 'Your user\'s unique key',
Message: 'The message to be exposed to the user',
ServiceName: 'Your service\'s name',
TargetUrl: 'Your service\'s api url',
Currency: 'sUSDCG',
Environment: 'prod',
};
const code = jsQR(sendAddressData, width, height);<a href="https://app.gluwa.com/action/scan/%7B%22currency%22%3A%22BTC%22%2C%22Target%22%3A%22TEST%22%7D">
Connect to Gluwa app
</a>const sendAddressData = {
QrType: 'SendAddress',
Key: 'Your user\'s unique key',
Message: 'The message to be exposed to the user',
ServiceName: 'Your service\'s name',
TargetUrl: 'Your service\'s api url',
Currency: 'sUSDCG',
Environment: 'prod',
};
const url = `https://app.gluwa.com/action/scan/${encodeURIComponent(JSON.stringify(sendAddressData))}`;{
"Key": "as defined in the Send Address QR Code",
"Address": "Address of the user"
}