This is the Node.JS backend code

Overview

terraplanet_backend

To run:

  1. npm install
  2. node ./bin/www

Endpoints

GET /market/rate/<token_in>/<token_out>

GET /server/status

GET /wallet/create

GET /wallet/balance/<wallet_addr>

POST /wallet/restore

E.g. payload:

{   
    "mnemonic":"reject govern sort strategy hunt lunar crunch suspect rain essay maid pill horse main usage term near shock drastic gauge dad belt normal chronic"
}

POST /wallet/send[/preview]

E.g. payload:

{   
    "fee_token" "uluna",
    "token":"uluna",
    "amount":"1",
    "dst_addr":"terra1y5ryvemxasn5uz7p44nhgdg94r2rmzz5e2k64t",
    "mnemonic":"reject govern sort strategy hunt lunar crunch suspect rain essay maid pill horse main usage term near shock drastic gauge dad belt normal chronic"
}

POST /wallet/swap[/preview]

E.g. payload:

{
    "fee_token": "uusd",
    "mnemonic": "rough simple snap arrest jazz region people combine abuse coyote use camera second parent mimic smile empower daring guess bacon enlist nose anchor spatial",
    "src":"uluna",
    "amount":"1",
    "dst":"uusd"
}

POST /anchor/deposit

E.g. payload:

{
    "mnemonic": "reject govern sort strategy hunt lunar crunch suspect rain essay maid pill horse main usage term near shock drastic gauge dad belt normal chronic",    
    "amount":"150",
    "token":"uusd"
}

POST /anchor/withdraw

E.g. payload:

{
    "mnemonic": "reject govern sort strategy hunt lunar crunch suspect rain essay maid pill horse main usage term near shock drastic gauge dad belt normal chronic",    
    "amount":"150",
    "token":"uusd"
}

POST /anchor/balance POST /anchor/market

E.g. payload:

{
    "mnemonic": "reject govern sort strategy hunt lunar crunch suspect rain essay maid pill horse main usage term near shock drastic gauge dad belt normal chronic"
}
You might also like...

Backend for the BetterPoll mobile app. Created using node js and mysql.

Backend for the BetterPoll mobile app. Created using node js and mysql.

BetterPoll-Backend This is the backend repository for the BetterPoll android application currently under development. The APIs are being created using

Nov 13, 2022

A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snippets.

A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snippets.

Warm Up 🔥 👨‍💻 A VS Code extension to practice and improve your typing speed right inside your code editor. Practice with simple words or code snipp

Nov 25, 2022

Node 18's node:test, as a node module

node-core-test This is a user-land port of node:test, the experimental test runner introduced in Node.js 18. This module makes it available in Node.js

Nov 10, 2022

The backend for our Airbnb App, built using Sanity.io.

AirBnb Sanity.io Backend This repository is to support my tutorial on how to build an AirBnb Clone with strucutred content using Sanity.io and Next.js

Nov 6, 2022

Wikipedia using only static assets & no backend

Wikipedia using only static assets & no backend

http://static.wiki Build a read-only Wikipedia using CSS, JS, WASM, and SQLite A proof-of-concept inspired and enabled by Hosting SQLite Databases on

Nov 21, 2022

Use Matrix as a backend for local-first applications with the Matrix-CRDT Yjs provider.

Use Matrix as a backend for local-first applications with the Matrix-CRDT Yjs provider.

Matrix CRDT Matrix-CRDT enables you to use Matrix as a backend for distributed, real-time collaborative web applications that sync automatically. The

Nov 25, 2022

Shopify Backend Developer Intern Challenge - Summer 2022

Shopify-Backend-Developer-Intern-Challenge Shopify Backend Developer Intern Challenge - Summer 2022 Application Features User can add products. User c

May 14, 2022

API Bate Papo UOL - A backend application developed using NodeJS and mongoDB

BatePapoUOL BackEnd My first backend project! Building an API to the most used brazillian chat app ages ago - Bate Papo UOL! Table of Contents Overvie

Apr 13, 2022

A type speed checking website which lets you check your typing speed and shows the real-tme leaderboards with mongodb as DB and express as backend

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Mar 27, 2022
Comments
  • Enable basic auth

    Enable basic auth

    • Enables Basic Auth for all endpoints
    • Defaults credentials are user:pass when running with "npm start". The following commands are the same:
    npm start
    
    node ./bin/www user pass
    
    • Basic Auth can be disabled with calling the process without extra arguments
    node ./bin/www
    
    opened by eaceto 0
  • Enable basic auth

    Enable basic auth

    • Enables Basic Auth for all endpoints
    • Defaults credentials are user:pass when running with "npm start". The following commands are the same:
    npm start
    
    node ./bin/www user pass
    
    • Basic Auth can be disabled with calling the process without extra arguments
    node ./bin/www
    
    opened by eaceto 0
Owner
Terra Planet
Open source non-custodial Terra Wallet. We send your finance from the Earth to the Moon
Terra Planet
This is the Node.JS backend code

terraplanet_backend To run: npm install node ./bin/www Endpoints GET /market/rate/<token_in>/<token_out> GET /server/status GET /wallet/create GET /wa

Terra Planet 9 May 22, 2022
Bitloops is Low-Code Workflow Orchestration platform that helps you build backend systems and APIs 10x faster.

Bitloops Bitloops is a scalable open source Firebase substitute that can support any database and workflow orchestration. We’re building Bitloops usin

Bitloops 21 Aug 9, 2022
This is an application that entered the market with a mobile application in real life. We wrote the backend side with node.js and the mobile side with flutter.

HAUSE TAXI API Get Started Must be installed on your computer Git Node Firebase Database Config You should read this easy documentation Firebase-Fires

Muhammet Çokyaman 4 Nov 4, 2021
MintyJS - A Modular Backend Ecosysyem for Node

MintyJS A Modular Backend Ecosysyem for Node Explore the docs » View Demo · Report Bug · Request Feature Modules spearmint (planned) - A fully fledged

Minty 2 Mar 7, 2022
The backend of a full stack application of a personal wallet made with React, Node and MongoDB that allows you to add inputs, outputs and see all your extract.

My first full stack application with the concept of a personal wallet that allows you to create a personal account to keep track of your entire statement by adding incoming and outgoing transactions, as well as calculating the total balance and being able to edit and delete old transactions.

Bernardo Rodrigues 6 Jun 23, 2022
Scalable Backend Framework for Node.Js

Promethium A Backend Web Framework for TypeScript/Node.js This project was generated using Nx. ?? Smart, Fast and Extensible Build System Adding capab

Alen Yohannan 6 Nov 4, 2022
Pim 4 Jun 21, 2022
NPM Package to integrate ONDC into Node.js backend

ondc-node This library can be used to integrate ONDC in JavaScript based applications. Package is developed in TypeScript and will work with Node.Js &

Utkarsh Mehta 11 Oct 12, 2022
Projeto de uma API REST usando backend em Node.js

?? WIP - ToDo API - T17 - Resilia Projeto de educacional do curso de Web Dev Full Stack da Resilia Educação referente ao Módulo 04. Projeto realizado

Cinthia Miranda Cantu 13 Aug 1, 2022
This repository demonstrates how to integrate your Dialogflow agent with 3rd-party services services using a Node.JS backend service

This repository demonstrates how to integrate your Dialogflow agent with 3rd-party services services using a Node.JS backend service. Integrating your service allows you to take actions based on end-user expressions and send dynamic responses back to the end-user.

ddayto 10 Jul 21, 2022