Skip to content

Monitors the Stellar network and publishes events to webhooks

License

Notifications You must be signed in to change notification settings

zulucrypto/stellar-event-publisher

Repository files navigation

stellar-event-publisher

Monitors the Stellar network and publishes events to webhooks

Quickstart

  1. Clone this project

    $ git clone https://github.com/zulucrypto/stellar-event-publisher.git
    $ cd stellar-event-publisher
  2. Install dependencies

    $ composer install

    Accept the defaults for all options

  3. Set up a webhook to receive events. https://requestb.in/ provides a quick and free way to test webhooks

  4. Create a config file that will send all ledgers to the webhook:

    var/config/send-ledgers.json

    [
      {
        "source": "ledgers",
        "destination": "https://requestb.in/YOUR_BIN_HERE"
      }
    ]
    
  5. Initialize the database

    $ bin/console doctrine:schema:create
  6. Start the supervisor process which launches the watcher and webhook publisher

    $ bin/console sep:supervisor
  7. Within 30 seconds ledger events should start being delivered to your webhook endpoint

Docker Container

To run this project without checking out the source code, use the docker image

  1. Set up a webhook to receive events. https://requestb.in/ provides a quick and free way to test webhooks

  2. Create a directory to contain config files

    $ mkdir /tmp/sep-config-test
  3. Create a config file that will send all ledgers to the webhook:

    /tmp/sep-config-test/send-ledgers.json

    [
      {
        "source": "ledgers",
        "destination": "https://requestb.in/YOUR_BIN_HERE"
      }
    ]
    
  4. Use docker to run a stellar event publisher container that reads from the config directory

    $ docker run -v /tmp/sep-config-test:/project/var/config zulucrypto/stellar-event-publisher

About

Monitors the Stellar network and publishes events to webhooks

Resources

License

Stars

Watchers

Forks

Packages

No packages published