strategyengine token distribution rest service
This service also runs here -- https://fsedistributionservice-56gpv2b23a-uc.a.run.app/
#How to run locally
- Install https://jdk.java.net/java-se-ri/11
- Install maven https://maven.apache.org/download.cgi
- install docker https://docs.docker.com/get-docker/
- mvn clean compile install
- docker build -t fsedistributionservice .
- 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!