> For the complete documentation index, see [llms.txt](https://obytejs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://obytejs.com/0.1.17/api/core/pick-divisible-coins-for-amount.md).

# Pick divisible coins for amount

### Example

```javascript
const params = {
  asset: 'xamdfH5Uk+alv3le0pEA01qSsfZjycyMsqaqHtycJ1M=',
  addresses: ['ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q'],
  last_ball_mci: 1000000000,
  amount: 10000,
  spend_unconfirmed: 'own',
};

client.api.pickDivisibleCoinsForAmount(params, function(err, result) {
  if (err) return console.error(err);
  console.log(result);
});
```

### Returns

```javascript
{
  inputs_with_proofs: [
    {
      input: {
        unit: "06ni8/eDzmcxwtWeQyuSXhqGsqmVN3I1fsR+5NAj4Sw=",
        message_index: 1,
        output_index: 1
      }
    }
  ],
  total_amount: 985000
}
```
