익명 02:41

Connection to Bitcoin Core Full Node in Amazon EC2 using bitcore-lib

Connection to Bitcoin Core Full Node in Amazon EC2 using bitcore-lib

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!



Top Answer/Comment:

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.

상단 광고의 [X] 버튼을 누르면 내용이 보입니다