-
Notifications
You must be signed in to change notification settings - Fork 299
Closed
Description
Following the example at https://bitgo.com/api/?shell#send-coins-to-multiple-addresses, I my local express server and got
> curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"recipients": [{"address": "2N7Sms6BqZaQVp6Cv73qhJeDHmbSzAe7gV1", "amount": 1000}], "walletPassphrase": "passprhase" }' "http://localhost:3080/api/v1/wallet/$WALLETID/sendmany"
{"error":"invalid bitcoin address: 0"} # the server shows this is a 500After fooling with it a bit, I tried the same tx using /sendcoins:
> curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"address": "2N7Sms6BqZaQVp6Cv73qhJeDHmbSzAe7gV1", "amount": 1000, "walletPassphrase": "passphrase" }' "http://localhost:3080/api/v1/wallet/$WALLETID/sendcoins"
{"error":"output value is less than dust threshold"}I increase the amount in the /sendmany example, and it works. I think both should respond with the same error message (and no 500s).
Metadata
Metadata
Assignees
Labels
No labels