Integrates with XRPLedger to send token payment to trustline addresses

Overview

strategyengine token distribution rest service

This service also runs here -- https://fsedistributionservice-56gpv2b23a-uc.a.run.app/

#How to run locally

  1. Install https://jdk.java.net/java-se-ri/11
  2. Install maven https://maven.apache.org/download.cgi
  3. install docker https://docs.docker.com/get-docker/
  4. mvn clean compile install
  5. docker build -t fsedistributionservice .
  6. docker run -p 127.0.0.1:8080:8080 fsedistributionservice

Reference Documentation

This spring boot application provides endpoints for sending trustline tokens

#GET /api/accountinfo/{classicAddress} Get XRP account info

#POST /api/payment send payment from a specific address to another

#POST /api/payment/trustlines send payments to all addresses configured for a trustline.

#POST /api/payment/trustlines/min/airdrop schedule an airdrop to send tokens after a min number of trustlines exist. "Airdrop begins once 3000 trustlines created"

  • minTrustLinesTriggerValue: once you have this many trustlines, it's going to send
  • amount: how much to send
  • example POST JSON
  • { "minTrustLinesTriggerValue": 3000, "trustlinePaymentRequest": { "amount": "5",
    "currencyName": "FSE", "fromClassicAddress": "r........", "fromPrivateKey": "ED....", "fromSigningPublicKey": "ED.....", "trustlineIssuerClassicAddress": "r...." } }

#GET /api/trustlines/{classicAddress} get trustlines for an address

#To start:

  • Run FseDistributionServiceApplication
  • Navigate to the swagger page and you can call the endpoints directly http://localhost:8080
  • Click the XRPL Trustline endpoints section
  • Click POST /api/payment
  • Click Model where it says Model|Schema for documentation on each parameter

#Good luck!

  • Feeling generous? Throw a spare coin this way: rNP3mFp8QGe1yXYMdypU7B5rXM1HK9VbDK

  • Thank you

You might also like...

A plugin of Grasscutter for send regular notice.

MeaNotice - Grasscutter Regular Notice Plugin MeaNotice is a plugin of Grasscutter, you can use this plugin to publish notifications in-game regularly

Oct 17, 2022

A plugin of Grasscutter for send in-game mail conveniently

A plugin of Grasscutter for send in-game mail conveniently

MeaMailPlus - Grasscutter Mail enhancements MeaMailPlus is a plugin of Grasscutter, you can use this plugin to send your mail conveniently. English |

Dec 13, 2022

Send and Receive anonymous messages, opinions, confessions etc.

 Send and Receive anonymous messages, opinions, confessions etc.

WSS - Wanna Say Something Send and Receive anonymous messages, opinions, confessions etc. Explore the docs » • Report Bug • Request Feature • About Th

Nov 26, 2022

React Native app demonstrating using xmtp-js to send a message

XMTP React Native Example This is a work in progress to demonstrate importing xmtp-js into a React Native app. The example currently generates a rando

Dec 20, 2022

All development related with the ONLYONE token.

onlyone All development related with the Onlyone Finance. ONLYONE Token Total Supply: 1 Contract creation: https://bscscan.com/tx/0x1becbd78297f267dec

Jan 1, 2023

Shitty, yet simple way to get someone's token right at their discord client's startup.

discord-token-stealer Shitty, yet simple discord injector to add a little spice to their discord client Disclaimer: This is for educational purposes o

Sep 26, 2022

Mc-msa-token-getter - Scripts to retrieve MC authentication tokens for use in modding dev envs.

Minecraft MSA Token Getter Python and Java scripts to retrieve MC authentication tokens for use in modding dev envs. Requires a properly configured Az

Jan 3, 2022

An extension for Keycloak, that enables web-based sign in with Apple and token exchange

Apple Identity Provider for Keycloak 🍎 This repository represents an extension for Keycloak, which enables Sign in with Apple for web-based applicati

Dec 29, 2022

JSON Web Token implementation for Java according to RFC 7519. Easily create, parse and validate JSON Web Tokens using a fluent API.

JWT-Java JSON Web Token library for Java according to RFC 7519. Table of Contents What are JSON Web Tokens? Header Payload Signature Features Supporte

Jul 10, 2022
Comments
  • about unknown errors.

    about unknown errors.

    Even if I enter the parameters correctly, I get the following error Do you know the cause?

    ERROR 1 --- [nio-8080-exec-5] c.s.x.f.c.xrp.XrplClientServiceImpl : Error sending payment to addressr.... java.lang.IllegalArgumentException: com.google.common.io.BaseEncoding$DecodingException: Invalid input length 29


    curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "amount": "2", "currencyName": "CSC", "fromClassicAddress": "rEvs...", "fromPrivateKey": "s...", "fromSigningPublicKey": "021...B5528", "toClassicAddresses": [ "r...", "r..." ], "trustlineIssuerClassicAddress": "rCSCManTZ8ME9EoLrSHHYKW8PPwWMgkwr" }' 'http://localhost:8080/api/payment'


    Response Code:200 Response Body { "responseMessages": [ "FAILED to pay r...", "FAILED to pay r..." ] }

    opened by ramd 1
Owner
strategyengine
strategyengine
The IK Analysis plugin integrates Lucene IK analyzer into elasticsearch, support customized dictionary.

IK Analysis for Elasticsearch The IK Analysis plugin integrates Lucene IK analyzer (http://code.google.com/p/ik-analyzer/) into elasticsearch, support

Medcl 14.6k Jan 5, 2023
Java library that integrates to SAP Mobile Services Backend APIs

Java integration for SAP Mobile Services is a client library to integrate your application with the backend-facing APIs of SAP Mobile Services. As this project only started, it at the moment only provides the integration to the Notification Backend services, which allows you to send push notifications to your mobile devices. Other integrated APIs may be added to this library in the future.

SAP 7 Dec 15, 2022
Saga pattern with Java => order -> payment -> stock microservices are ready to use

Order_Payment_Stock_Saga_Pattern Saga pattern with Java => order -> payment -> stock microservices are ready to use Docker-compose.yaml You can see th

Gurkan İlleez 5 Dec 27, 2022
Hexagonal Architecture Demo Project about Ticketing and Payment

This project is a sample production-ready implementation for demonstrating the power of Hexagonal Architecture (aka Ports And Adapters Pattern) written in Java.

Alican Akkuş 382 Jan 1, 2023
A simple live streaming mobile app with cool functionalities and time extension, and live chat. With a payment system integrated. Server is designed with socket.io to give you full flexibility.

Video Live Streaming Platform Android A simple live streaming mobile app with cool functionalities and time extension, and live chat. With a payment s

Dev-Geek 2 Dec 16, 2022
Kryptokrona Java SDK for building decentralized private communication and payment systems.

Kryptokrona Java SDK Kryptokrona is a decentralized blockchain from the Nordic based on CryptoNote, which forms the basis for Monero, among others. Cr

null 22 Oct 31, 2022
A Spring Boot Camel boilerplate that aims to consume events from Apache Kafka, process it and send to a PostgreSQL database.

SPRING-BOOT CAMEL BOILERPLATE This is a Spring-Boot Camel Application model that you can use as a reference to study or even to use in your company. I

Bruno Delgado 45 Apr 4, 2022
Simple and lightweight application which is checking status of your web services and send a notification if it is down.

rose-uptimer Simple and lightweight application which is checking status of your web services and send a notification if it is down. Example configura

RoseSapphire 3 Sep 25, 2022
COMPortNotifier - Smol utility to send you a notification every time you connect, or disconnect a COM port.

COMPortNotifier A smol utility that sends you a notification every time a COM port is connected, or disconnected on your computer. Useful for electric

Matt Foulks 1 Sep 7, 2022
Calef - CalEF (Calendar Entry Formatter) : Select an entry in Android-Kalender and send/share the entry's content as human readable text.

CalEF (Calendar Entry Formatter) Select an entry in Android-Kalender and send/share the entry's content as human readable text. Usually calendar entri

k3b 6 Aug 17, 2022