# All files / src/api/methods getUnspent.js

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 4/4

    1
    2
    3
    4
    5
    6
    71x

    1x
    5x
    5x

     const { filterUnspent } = require('../../utils');

    module.exports = async (bridgeState, address, color) => {
      const { unspent } = bridgeState.currentState;
      return filterUnspent(unspent, address, color);
    };