opened
galioy
username_0
I am having a problem sending funds to other Test BTC addresses that _do not_ belong to any of the wallets of my BitGo account, through the API.
F.e., in my account I have 3 wallets, and it's all alright when I send funds between them. But if I want to do it to another address, I get the following error:
```json
"error": {
    "name": "AssertionError",
    "actual": false,
    "expected": true,
    "operator": "==",
    "message": "value has a fractional component",
    "generatedMessage": false
  }
```

I tried doing it through the BitGo website and it worked. So, the problem lies in my code, I guess. Here's where I get the error:
```javascript
wallet.sendCoins(params, function (err, response) {
      if (err || !response) {
        return res.serverError({
          'error': err
        })
      }

      return res.ok({
        'response': response
      })
    });
```
The *wallet* object is correct. The *params* are also correct (since it works with the address of my own wallets).
AssertionError when trying to send btc to other wallets through an API call
issue
created
galioy
username_0
Apparently, only **int** values are allowed.
comment
closed
galioy
username_0
issue