API methods
Create new mix order
POST https://washmixer.com/api/mix-orderRequest
Field | Type | Value |
---|---|---|
currency | string | Bitcoin |
code | string | ULID |
addresses | array |
addresses count: 1 - 5 [ [ address: string, percent: int, delay: int ], ... ] |
service_fee | double | 0.4 - 5 |
randomization | boolean | true | false |
{ "currency": "Bitcoin", "code": "", "addresses": [ { "address": "bc1qpm4hmve4r0lw7uwnjhhtwmqzzchxw47t58k85y", "percent": 100, "delay": 0 } ], "service_fee": 2, "randomization": true }
Response
{ "data": { "id": "01hdjw1kasvk0vtdjfahn08v35", "currency": "Bitcoin", "code": "01hdjw1kasvk0vtdjfahn08v34", "receive_address": "bc1qlg8s3fpe8zlledre0qkcqvu9s26dxyxg9ekqvu", "received_amount": null, "input_txid": null, "confirmed": null, "service_fee": 2, "destination_addresses": [ { "address": "bc1qpm4hmve4r0lw7uwnjhhtwmqzzchxw47t58k85y", "payout_amount": null, "payout_txid": null, "confirmed": null, "percent": 100, "delay": 0, "status": "NotPaidOut", "created_at": "2023-10-25T07:33:36.000000Z", "updated_at": "2023-10-25T07:33:36.000000Z" } ], "randomization": true, "comment": null, "status": "New", "created_at": "2023-10-25T07:33:36.000000Z", "updated_at": "2023-10-25T07:33:36.000000Z" } }
Errors
{ "message": "The service fee field is required. (and 1 more error)", "errors": { "service_fee": [ "The service fee field is required." ], "addresses.0.address": [ "The addresses.0.address field is required." ] } }
Get mix order status
GET https://washmixer.com/api/mix-order/{id}Response
{ "data": { "id": "01h76fe54vdpktx1j0apfjhqah", "currency": "Bitcoin", "code": "01h76fe54vdpktx1j0apfjhqag", "receive_address": "bc1qpm4hmve4r0lw7uwnjhhtwmqzzchxw47t58k85y", "received_amount": 0, "input_txid": null, "confirmed": false, "service_fee": "3.73", "destination_addresses": [ { "address": "bc1q6kr5cr373746ny993k2zt3xepdytlqkaflta2j", "payout_amount": null, "payout_txid": null, "confirmed": null, "percent": 100, "delay": 0, "status": "NotPaidOut", "created_at": "2023-08-06T22:28:12.000000Z", "updated_at": "2023-08-06T22:28:12.000000Z" } ], "randomization": false, "comment": null, "status": "New", "created_at": "2023-08-06T22:28:12.000000Z", "updated_at": "2023-08-06T22:28:12.000000Z" } }
Errors
{ "message": "Record not found." }