code: def format_unspents(unspents):
      
      assert BLOCKSTACK_TEST, 'format_unspents can only be used in test mode!'
      return [{
          "transaction_hash": s["txid"],
          "outpoint": {
              'hash': s['txid'],
              'index': s["vout"],
          },
          "value": int(Decimal(s["amount"]*SATOSHIS_PER_COIN)),
          "out_script": s["scriptPubKey"],
          "confirmations": s["confirmations"]
          }
          for s in unspents
      ]
docs: Used for testing only!