Cryptocurrency Payment Gateway Plugin Integration In Node JS
Node JS
Integrate CoinRemitter In Node JS
Built on Chrome's V8 JavaScript engine, Node.js is a JavaScript runtime. It allows developers to run JavaScript on the server side, creating scalable and efficient network applications. Node.js uses an event-driven, non-blocking I/O model, making it well-suited for real-time, data-intensive applications. It is open-source and supported by a large community of web developers.
Seeing Node.js’ futuristic applications, integrating a reliable platform for processing errorless crypto transactions became necessary. With the help of the Node.js open-source plugin, merchants can directly receive crypto payments on their Node.js websites. Follow the process shown below to integrate Coinremitter into your Node.js website:
Configuration Guide:
You can install Coinremitter package using npm in your project using :
npm i coinremitter-api
Usage of Package :
You need to include package wherever you want to use this like,
const coinremitter = require('coinremitter-api');
Now, you can access all the methods of package by creating object of class like ,
const btcWallet = new coinremitter('WALLET_API_KEY','WALLET_PASSWORD');
Get Wallet Balance:
You can get your wallet balance by using the "getBalance" call.
const balance = btcWallet.getBalance();
It will return either a positive response or an answer to an error if anything goes wrong.
Below you can check the successful response:
{
"success": true,
"data": {
"wallet_id": "6746c765xxxxxxxxxxxxxx",
"wallet_name": "BTC-wallet",
"coin_symbol": "BTC",
"coin": "Bitcoin",
"coin_logo": "https://api.coinremitter.com/assets/images/coins/32x32/BTC.png",
"blockchain_network_name": "Bitcoin Network",
"contract_address": "",
"contract_address_url": "",
"explorer_url": "https://www.blockchain.com/explorer/transactions/btc/",
"chain_id": "",
"remaining_withdraw_limit_24h": "49",
"balance": "1.73000000",
"minimum_deposit_amount": "0.1"
}
}
Over 38,000 merchants are using CoinRemitter
Join them now