Skip to content

Ljzn/MNode

 
 

Repository files navigation

M2

(WARNING) this repo is under developping and lack of testing.

How to use?

requirements

erlang > 21 elixir > 1.5 postgreSQL > 9.5 nodejs

run

iex -S mix phx.server

Make Directory

curl -X POST  \
  'http://localhost:4000/api/mkdir' \
  -H 'x-app-key: 123' \
  -H 'x-onchain-path: /eva'

Write File

curl -X POST  \
  'http://localhost:4000/api/write' \
  -H 'x-app-key: 123' \
  -H 'x-onchain-path: /eva/narv.png' \
  -H 'Content-Type: application/octet-stream' \
  --data-binary @narv.png

Read File

curl -X GET \
  'http://localhost:4000/api/read' \
  -H 'x-app-key: 123' \
  -H 'x-onchain-path: /joe_armstrong_crypto_tutorial.pdf' \
  -o joe_armstrong_crypto_tutorial.pdf

Transfer Coins

curl -X POST 'http://localhost:4000/api/transfer' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'x-app-key: 3yJJyCN3Ykkg8fLRz4tmUUZ0FrlnHiXJWQlkycdzxIg=' \
  -d '{"to": "15Q1Max442hdV8TXzJHwgSs5aavYqS5kU2", "amount": 5000}'

About

Integrating the power of MetaNet into your APP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Elixir 84.6%
  • Erlang 11.0%
  • JavaScript 2.0%
  • HTML 1.9%
  • Other 0.5%