API documentation


Request API key

This is no longer available.


The API For advanced users

Send payment

Send POST request to:

https://www.microwallet.org/api/v1/send

Required parameters:
Optional parameters:
Response:

JSON. The status in the JSON is 200 if it was successful.

Example responses:

{"status":403,"message":"Invalid API key."}

{"status":402,"message":"Insufficient funds."}

{"status":200,"balance":"97369","balance_bitcoin":"0.00097369"}

{"status":200}


Get balance

Always cache the result of this API call.

Send GET request to:

https://www.microwallet.org/api/v1/balance

Required parameters:
Response:

JSON. The status in the JSON is 200 if it was successful.

Example responses:

{"status":200,"balance":"500000","balance_bitcoin":"0.00500000"}

{"status":401,"message":"API key missing."}


Get Bitcoin address

Usernames will be discontinued. This API call returns the Bitcoin address of a user. The returned Bitcoin address is what the user set on the Settings page.

Send GET request to:

https://www.microwallet.org/api/v1/get-bitcoin-address

Required parameters:
Response:

JSON. The status in the JSON is 200 if it was successful.

Example responses:

{"status":200,"bitcoin_address":"1MiCRoXT5gFtGZLSmW6efAx968WAKvD5xz"}

{"status":404,"message":"Bitcoin address does not exists."}