From 0212fe0032eb0c5d6bfb74ebaab42543b73d6d6b Mon Sep 17 00:00:00 2001
From: Adam Soltys
Coinos has a simple REST API that can be used to register accounts and make payments and
- queries. The following examples show how you can call the API with curl from your command line.
+ queries. The following examples show how you can call the API with curl from your command line.
API Base URL
@@ -30,10 +33,11 @@
{#if user && token}
This token authorizes you to use the API as {user.username}.
{:else}
- Sign in to view your auth token here, or get one from the /login endpoint.
+ Sign in to view your auth token here, or get one from the
+ /login endpoint.
{/if}
- Save it in a variable called $token to run the examples.
+ Save it in a variable called $token to run the examples.
Get a lightning invoice to receive funds
+Get a lightning invoice to receive funds
- Get a bitcoin address to receive funds
+Get a bitcoin address to receive funds
Sample response
You can check the received field to see how much has been paid
- -Specify a webhook to be called when an invoice is paid
+Specify a webhook to be called when an invoice is paid