Post
Topic
Board Development & Technical Discussion
Re: Why is it empty when sending rpc via curl?
by
ETFbitcoin
on 11/10/2022, 09:51:04 UTC
--snip--
The funny thing is that I don't know where to get them from.(
IP I took from the seeds
In curl, I specify any login and password, but I don’t know where to get which one is needed (

FYI, if that node isn't owned by you or the owner doesn't give RPC credential to you, your only option is connect to that node using P2P protocol[1][2]. But you only can get limited data such as transaction, block and block header.

You also have this file generator: https://jlopp.github.io/bitcoin-core-config-generator/ I have not used it so I can't comment on how accurate it is, but I know people who have used it that say it does generate valid files.

I used it and it generate valid/accurate config file, but i used it 1-2 years ago.



[1] https://developer.bitcoin.org/devguide/p2p_network.html
[2] https://en.bitcoin.it/wiki/Protocol_documentation#Message_types