Skip to content

taDachs/faxcoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faxcoin

Messenger for people with taste.

Usage

Build the jar:

mvn package

Run the node:

java -jar target/faxcoin-0.0.1-SNAPSHOT.jar -a [address to run on]:[port to run on] -p [port to run on]

To register a new messenger use

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"address":"[messenger address]"}' \
  [address of node]/registerMessenger

To register a new neighbour use

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"address":"[neighbour address]"}' \
  [address of node]/registerNeighbour

To send a message use

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"content":"[Your friendly message]", "sender":"[message sender]", "receiver":"[Message receiver]"}' \
  [address of node]/sendMessage

To get the current message queue for a messenger

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"content":"[Your friendly message]", "sender":"[message sender]", "receiver":"[Message receiver]"}' \
  [address of node]/getMessageQueue

About

Messenger for people with taste.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages