
Welcome
​
Tutorials
​
Run a Node
Overview
Configuring
Publishing Archives
Running
Monitoring
Commands
Upgrading
Tier 1 Organizations
​
Run an API Server
Overview
Prerequisites
Installing
Configuring
Remote Captive Core
Running
Ingestion
Monitoring
Scaling
​
Software/SDKs
Software and SDKs
​
Glossary
Glossary
In the above code samples, proper error checking is omitted for brevity. However, you should always validate your results, as there are many ways that requests can fail. You should refer to the guide on Handling Errors Gracefully for tips on error management strategies.
Follow Received Payments
This tutorial shows how easy it is to use Horizon to watch for incoming payments on an account using JavaScript and EventSource. We will eschew using js-stellar-sdk, the high-level helper library, to show that it is possible for you to perform this task on your own with whatever programming language you would like to use.
This tutorial assumes that you:
-
Have node.js installed locally on your machine.
-
Have curl installed locally on your machine.
-
Are running on Linux, macOS, or any other system that has access to a bash-like shell.
-
Are familiar with launching and running commands in a terminal.
In this tutorial we will learn:
-
How to create a new account.
-
How to fund your account using friendbot.
-
How to follow payments to your account using curl and EventSource.
​
Project Skeleton
Let’s get started by building our project skeleton: