# Calculate Komodo rewards using an npm module
This module has been created by Luke Childs (opens new window) a developer in the Komodo ecosystem.
- Source code: https://github.com/atomiclabs/get-komodo-rewards (opens new window)
- npm module: https://www.npmjs.com/package/get-komodo-rewards (opens new window)
# Install
npm install get-komodo-rewards
# Usage
Pass in a utxo object and an integer of the accrued rewards
in satoshis will be returned.
const getKomodoRewards = require("get-komodo-rewards");
const utxo = {
tiptime: 1552292091,
locktime: 1552248193,
height: 1263192,
satoshis: 3206795322480
};
const rewards = getKomodoRewards(utxo);
// 205000320
# API
# getKomodoRewards(utxo)
Returns the accrued rewards in satoshis.
# Keys of the utxo
object
# License
MIT © Atomic Labs
MIT © Luke Childs