API

How to use our API?

First of all a API Key is required. You can request it at contact@mix-bitcoin.net. To call the API you have to use HTTPS and POST. All of our responses will be served in JSON format.

Get the current fees

https://mix-bitcoin.net/current-fees.php

Response

{“fixedFee”: 0.0003, “variableFee”: 0.5}

Start a mixing job

https://mix-bitcoin.net/api.php

forwardToAddress (= your Wallet address, no contract wallets allowed currently)

timeDelayInHours (= a time delay between 0 and 48 hours before recieving your washed Ether) (OPTIONAL)

mixingCode (= your mixing code from previous mixing orders) (OPTIONAL)

apiKey (= your API key)

Response

{“forwarderAddress”: “SEND_YOUR_BTC_TO”,

“letterOfGuarantee”: “LETTER_OF_GUARANTEE_BASE64_ENCODED”,

“mixingCode”: “YOUR_MXING_CODE”,

“availableFundsInBTC”: “MAX_AMOUNT_YOU_CAN_MIX”,

“expires”: “DATETIME_WHEN_THE_FORWARDER_ADDRESS_EXPIRES”,

“errorCode”: AN_ERROR_CODE(0_MEANS_SUCCESS)}

Error codes

0 = Success
1 = The server is currently under maintenance. Please try again later.
2 = Invalid address
3 = Invalid Timedelay, make sure it is a number between 0 and 48 without decimal places
4 = Invalid mixing code, make sure it is alphanumeric and 8 characters long
5 = Missing address parameter in POST data
6 = Invalid address, address belongs to a contract

Example without time delay and mixing code

https://mix-bitcoin.net/api.php

Post data:

forwardToAddress: bc1qa0kztk7g9f0mytkxctsydaku80khywgvjwkyvg

apiKey: Your-API-key

Response

{“forwarderAddress”: “bc1qaffrumpfvgq400pr4kshtje882sdkzv7300a8k”, “letterOfGuarantee”: “VEhJUyBJUyBBIFBMQUNFSE9MREVSIEZPUiBUSEUgQk
FTRTY0IEVOQ09ERUQgTEVUVEVSIE9GIEdVQVJBTlRFRQ==”, “mixingCode”: “ABCDEFGH”, “availableFundsInBTC”: “10.32114141”, “expires”: “02 August 2022 15:28”, “errorCode”: 0}

Example with time delay and mixing code

https://mix-bitcoin.net/api.php

Post data:

forwardToAddress: bc1qa0kztk7g9f0mytkxctsydaku80khywgvjwkyvg

timeDelayInHours: 1

mixingCode: 123ABC

apiKey: Your-API-key

Response

{“forwarderAddress”: “bc1qaffrumpfvgq400pr4kshtje882sdkzv7300a8k”, “letterOfGuarantee”: “VEhJUyBJUyBBIFBMQUNFSE9MREVSIEZPUiBUSEUgQkF
TRTY0IEVOQ09ERUQgTEVUVEVSIE9GIEdVQVJBTlRFRQ==”,”mixingCode”: “ABCDEFGH”, “availableFundsInBTC”: “11.23456789”, “expires”: “02 August 2022 15:28”, “errorCode”: 0}