Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - simple docker-compose.yml to run litecoin core and server in order to do transactions via CLI? #3

Open
profesionalaiesam opened this issue Oct 11, 2024 · 2 comments

Comments

@profesionalaiesam
Copy link

Hey I have simple problem.

I want to deploy some docker containers which would be able to:

  • Create some litecoin addresses straight from the command line (public/private keys)
  • Send transactions by using my own wallets

How can I achieve this?

For example I have this docker-compose.yml file https://hub.docker.com/r/uphold/litecoin-core

  litecoin-core:
    image: uphold/litecoin-core
    command:
      -printtoconsole
      -regtest=1

I have bashed into the container and I tried to create wallet and it says I don't have some kind of server. Can you suggest where I could this this type of docker container?

image
@ltardivo
Copy link

Hi! I think you need to specify the rpcport you are using, and the credentials if you are using rpcauth.
For example, bashed from the docker image:
litecoin-cli -regtest -rpcport=19332 -rpcuser=xxx -rpcpassword=xxx generatetoaddress 1 "miKQVhZbFKSsJcQZ8eXwBQ89xNyetpN34q"

@profesionalaiesam
Copy link
Author

I'm not using anything, Im just using uphold/litecoin-core and I want to be able to generate litecoin address via CLI.

And then I would like to do a transaction from one wallet to another.

How can I achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants