Pick divisible coins for amount

Get spendable inputs from a specific amount and asset.

Request
Result
Request
const params = {
asset: 'xamdfH5Uk+alv3le0pEA01qSsfZjycyMsqaqHtycJ1M=',
addresses: ['ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q'],
last_ball_mci: 1000000000,
amount: 10000,
spend_unconfirmed: 'own',
};
client.request('light/pick_divisible_coins_for_amount', params, function(err, result) {
console.log(result);
});
Result
{
inputs_with_proofs: [
{
input: {
unit: "06ni8/eDzmcxwtWeQyuSXhqGsqmVN3I1fsR+5NAj4Sw=",
message_index: 1,
output_index: 1
}
}
],
total_amount: 985000
}