Home / Standards / Money Account API standard

Money Account API standard

Introduction

Money Account API act as a communication channel between the participants in the payment network. The API should be implemented on any server participating in Bitcoin Cheque payments, including Bitcoin Banks and webshops.

The API at a bank can offer support for Payment Apps to draw Bitcoin Cheques and for the receivers of the verify and claim it. A webshop and use the API to receive cheques as payments. Moreover, the API offers support for users to withdraw their Bitcoins from their user account by requesting a Bitcoin transaction.

The API is accessed by using HTTP Get and Post requests. The rationale for using HTTP is to make it easy for any web site to implement it, for example, by creating PHP scripts. Otherwise, the implementation could require changes in server configuration, which may not be possible at many web hosts.

A web site implementing the API must add an HTTP External Resources Link element to the header section of the web page. The element typically will look like this:

<link rel="MoneyAccountAPI" href=”https://example.com/ajax.php”>

The resource link informs external users, like a Payment App, where the API is located. Before accessing the API, the web page header section must be read. This gives flexibility to the implementation of the API, which does not even need to be on the same web server.

Standard document

The latest version of the Bitcoin Cheque standard is located on GitHub:

https://github.com/bitcoincheque/standards/blob/master/Money_Address_Standard.md

Top