Sign inSign up

openpharma/op-java-ms-hedera

By openpharma

•Updated over 7 years ago

OpenPharma Micro Service for Hedera (REST API)

Image
0

378

openpharma/op-java-ms-hedera repository overview

⁠OpenPharma Micro Service for Hedera

⁠How to use?

Simply run it with all needed parameters:

docker run -d \
  -p 8000:8000 \
  --name=op_hedera_main \
  -e SERVER_PORT=8000 \
  -e HEDERA_NODE_ADDRESS=testnet.hedera.com \
  -e HEDERA_NODE_PORT=50130 \
  -e HEDERA_NODE_ACCOUNT_SHARD=0 \
  -e HEDERA_NODE_ACCOUNT_REALM=0 \
  -e HEDERA_NODE_ACCOUNT_NUM=3 \
  -e HEDERA_PAYING_ACCOUNT_SHARD=0 \
  -e HEDERA_PAYING_ACCOUNT_REALM=0 \
  -e HEDERA_PAYING_ACCOUNT_NUM=1004 \
  -e HEDERA_PAYING_ACCOUNT_PUBLIC_KEY=xxx \
  -e HEDERA_PAYING_ACCOUNT_PRIVATE_KEY=xxx \
  openpharma/op-java-ms-hedera

That's it.

When your Docker container is started, just open the right URL in your browser. You'll have access to a simple HTML page giving you more details on the authentication and a Swagger live documentation.

⁠Environment variables

This image uses environment variables for configuration.

Available variablesDefault valueDescription
SERVER_PORT9000Listening port
HEDERA_NODE_ADDRESSno defaultAddress of the net that you want to connect
HEDERA_NODE_PORTno defaultPort of the net that you want to connect
HEDERA_NODE_ACCOUNT_SHARDno defaultShard number of the node account
HEDERA_NODE_ACCOUNT_REALMno defaultRealm number of the node account
HEDERA_NODE_ACCOUNT_NUMno defaultAccount number of the node account
HEDERA_PAYING_ACCOUNT_SHARDno defaultShard number of the paying (your) account
HEDERA_PAYING_ACCOUNT_REALMno defaultRealm number of the paying (your) account
HEDERA_PAYING_ACCOUNT_NUMno defaultAccount number of the paying (your) account
HEDERA_PAYING_ACCOUNT_PUBLIC_KEYno defaultPublic key of the paying (your) account
HEDERA_PAYING_ACCOUNT_PRIVATE_KEYno defaultPrivate key of the paying (your) account

⁠Additional Information

This version is based on the Hedera Java SDK 0.2.0 and has been fully tested in the Hedera test nets.

⁠License

The repository utilizes code licensed under the terms of the Apache Software License and therefore is licensed under ASL v2 or later.

This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.

This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.

You should have received a copy of the Apache Software License along with this program. If not, see https://www.apache.org/licenses/LICENSE-2.0.html⁠

The source code forked from other open source projects will inherit its license.

Tag summary

Content type

Image

Digest

Size

364.7 MB

Last updated

over 7 years ago

docker pull openpharma/op-java-ms-hedera