Gluwa SDK for JavaScript (Node.js)
Getting started
$ npm install @gluwa/gluwa-jsconst GluwaJS = require('@gluwa/gluwa-js');
const GluwaConfig = {
production: {
APIKey: '{Your production API Key}',
APISecret: '{Your production API Secret}',
WebhookSecret: '{Your production Webhhok Secret}',
MasterEthereumAddress: '{Your Ethereum Address for production}',
MasterEthereumPrivateKey: '{Your Ethereum Private Key for production}',
isDev: false,
},
sandbox: {
APIKey: '{Your sandbox API Key}',
APISecret: '{Your sandbox API Secret}',
WebhookSecret: '{Your sandbox Webhhok Secret}',
MasterEthereumAddress: '{Your Ethereum Address for sandbox}',
MasterEthereumPrivateKey: '{Your Ethereum Private Key for sandbox}',
isDev: true,
},
}
const Gluwa = new GluwaJS(GluwaConfig.production);Method Examples
Create a New Transaction
Create a Payment QR Code
List Transaction History for an Address
Retrieve Transaction Details by Hash
Retrieve a Balance for an Address
Webhook Validation
How to resolve promise
Last updated
Was this helpful?