API

2021-02-23


Memo now has an API!

It is being released with the new identity upgrade. The API is helpful for linking external keys so it made sense to release these together.

Most API actions are free, but creating transactions requires funding an API key. Fees for creating transactions are based on the unsigned transaction size. For most transactions the fee is 4 sats/byte for the unsigned transaction size (usually about 500 sats per tx). For token transactions the fee is 8 sats/byte also based on the unsigned transaction size.

The API can also be used for getting info about users or to get lists of posts. You can also broadcast and listen for transactions once they have been signed.

A Javascript library, jMemo, is also being released with the API. The JS library allows you to generate keys and use them to sign transactions. This enables apps to be completely independent without any trust of Memo.

Apps can also redirect to Memo to link and fund external accounts.

Both the API and the Javascript library are initial iterations and are subject to complete refactoring. The beta API url is beta-api.memo.cash.

Links:

BSV API is not yet live but should be soon.