0

I'm running a Bitcoin Core Node on AWS EC2 Instance and i want to connect to this node and make transactions using Nodejs App.

I used the following guide to install Bitcoin Core Node on AWS: https://medium.com/@daniel.wegmann/step-by-step-guide-to-run-bitcoin-core-node-on-aws-3761174a861a

I used the following guide to make the transactions: https://medium.com/@claudio_69833/how-to-create-bitcoin-transactions-with-javascript-b3b43f53ca0c

How do I connect my Node and perform the transactions through it?

Thanks!

1
  • 2
    Bitcore is an entirely unrelated project from Bitcoin Core. You need a JSON-RPC library to connect to Bitcoin Core, not a separate node implementation like Bitcore. Commented Aug 19, 2022 at 21:02

1 Answer 1

0

Bitcoin core that is running inside the aws ec2 instance has rpc server hosted inside the instance which you can connect with a rpc url something like this http://127.0.0.1:18332/ , this url will work inside the ec2 instance, but if you want to connect to the same rpc server from a different machine(like from your personal laptop), you can use ngrok (maybe) to expose localhost as https and then try to access from you machine with the new ngrok url. I have not tried this, but let me know if this works. Or if you can somehow expose the localhost url to an https, that should help you to connect to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.