Skip to content

daimeng/amino-decoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terra Amino Decoder

How to use

  • Start rest server
$ make install
$ amino-decoder start
  • Query with rest server
curl -X GET http://127.0.0.1:3000/version
curl -X POST http://127.0.0.1:3000/decode/tx -d '{"amino_encoded_tx": "ENCODED_TX_STRING"}'
curl -X POST http://127.0.0.1:3000/decode/batch -d '{"amino_encoded_tx": ["ENCODED_TX_STRING1", "ENCODED_TX_STRING2"]}'

From python

requests.post('http://127.0.0.1:3000/decode/tx', json={'amino_encoded_tx': "ENCODED_TX_STRING"})
  • Directly decode amino encoded tx
$ amino-decoder version
$ amino-decoder decode tx [amino-encoded-tx]

How to build

# it will create build folder and generate binary for each platform (Windows, Mac, Linux)
$ make  

Use docker

# Note port is remapped to 6969
docker run --rm -p 6969:3000 -it rmdec/amino-decoder:v1.1.0 amino-decoder start

About

rest server for amino decoding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 74.7%
  • Makefile 20.9%
  • Dockerfile 4.4%