• Resolved shreenath

    (@shreenath)


    Bitcoin and Altcoin Wallets error

    The Bitcoin RPC API cannot be contacted.
    You need to make sure that your Bitcoin RPC settings are correctly configured.
    Then edit your .conf file and append the following:

    server=1
    rpcallowip=127.0.0.1/8
    rpcallowip=185.27.133.4/24
    rpcport=8332
    walletnotify=curl -s https://liteconnect.com/wallets/notify/BTC/wallet/%s >/dev/null
    blocknotify=curl -s https://liteconnect.com/wallets/notify/BTC/block/%s >/dev/null
    rpcauth=:9840942ae0b7556f4b1469ba62f98ac5$a6acc4c00129069112ef274c003273479cf417dbf6a7fd10efc2737b3265ddb1
    Finally, start the daemon.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author dashed-slug.net

    (@dashedslug)

    Hello,

    What exactly is the problem? Are you trying to connect to a local bitcoin wallet daemon? It seems you have not entered a username into the built-in coin adapter settings.

    If you don’t know what all of that is, perhaps you should use one of the cloud wallets. Please read the readme to see what’s available. There is also a discussion of coin adapters. Most people nowadays use the CoinPayments adapter extension, because it’s much easier.

    There’s also PDF documentation with a troubleshooting section. See the bundle download on the dashed-slug website.

    kind regards,
    Alex

    Thread Starter shreenath

    (@shreenath)

    Yes i followed the video that you have posted along with the download of the app. I still have that error.

    Plugin Author dashed-slug.net

    (@dashedslug)

    The video is for people who want to install and maintain their own bitcoin wallet running on their own server. If this is what you want to do, and you understand the implications, then you did well to follow that video.

    The error you see is a generic error for when connectivity between your WordPress and the bitcoin wallet doesn’t work, for whatever reason (think firewalls, invalid credentials, misconfiguration of the wallet, etc).

    As I mentioned earlier, it seems you have not entered a username in your adapter settings. I say this because in the auth line there should be a username between = and :. You must enter the same username, password and TCP port as you did in bitcoin.conf.

    Thread Starter shreenath

    (@shreenath)

    I am now trying to use the coin adapter like you had suggested. I am trying to find the plugin “the coin adapter” But still its taking me to “Bitcoins and Altcoins” only.

    Thanks for the suggestion on your next comment i will try that too.

    Thread Starter shreenath

    (@shreenath)

    Like you told is it suffient if i enter the username alone or should i have this entered bwtween”=” and “:”

    rpcuser=admin
    rpcpassword=********

    Plugin Author dashed-slug.net

    (@dashedslug)

    Either use rpcuser and rpcpassword, or instead use rpcauth (rpcauth is better because your credentials are salted). This is detailed in the bitcoin documentation https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

    Enter your credentials in your coin adapter settings. Then copy the information presented to you into the conf file.

    The video is from a time before I implemented salted credentials into the plugin.

    regards

    Plugin Author dashed-slug.net

    (@dashedslug)

    Since it seems like you are getting started, I believe you would benefit from reading the glossary section in the documentation. The concept of coin adapters and app extensions, which is central to the plugin, is explained there. It will save you some time. The plugin has one coin adapter built-in, the one for bitcoin core. Other coin adapters are installed as separate WordPress plugins.

    You will also benefit from downloading the free PDF because there is a troubleshooting section in there. I have assembled a list of the most common problems that people have when first installing the plugin.

    Thread Starter shreenath

    (@shreenath)

    I entered my credentials in the coin adapter settings, copied the information presented and pasted into the bitcoin.conf file in my server and refreshed still i get the error.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Have you eliminated all the other issues I mentioned? Connectivity, linux firewalls, etc? Have you checked that your daemon is running? Have you restarted the daemon after changing your conf file? Can you perform a connection from WordPress to the port you opened via other means (telnet, nc, etc)?

    Thread Starter shreenath

    (@shreenath)

    I have checked for issues in Connectivity, Livux firewalls. How to check if the daemon is running. I am using mac. Please provide me a link that will help me with the installation and running of the bitcoind daemon

    Plugin Author dashed-slug.net

    (@dashedslug)

    A link to installation instructions for bitcoin core is provided in the plugin’s readme.

    General knowledge of system administration is outside the scope of the documentation I provide for the plugin. If you are having trouble doing this, I will again recommend that you install a cloud wallet instead. Connecting to a local wallet is mostly for people who are comfortable with the Linux command line and networking. I’m only mentioning this to save you from some frustration.

    If you have good reasons to want to proceed with connecting to your own bitcoin wallet, you can use nc to check that the port is open. Whether you are on a mac or pc is irrelevant. You will need to ssh to the WordPress machine and use nc like so:

    https://superuser.com/questions/621870/test-if-a-port-on-a-remote-system-is-reachable-without-telnet

    You are not only looking at whether the port is open or not, but also if it is reachable from your WordPress machine. What server are you running the bitcoin daemon on?

    If on the other hand you find it difficult to setup your network, you can always install the CoinPayments adapter: https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/coinpayments-adapter-extension/

    regards

    • This reply was modified 7 years ago by dashed-slug.net. Reason: added mention of install instructions for bitcoin core
    Thread Starter shreenath

    (@shreenath)

    Ok fine im ready to use the cloud wallet. I have created account in CoinPayments created myself an API key. There is a step where i have to copy my merchand ID and public and private api key and paste it in the wallet -> coin Payment settings which im not able to find in my admin pannel.

    Is the coin payment setting the same as the BitCoin Core Node. You earlier told that the coin payment plugin is already integrated in the plugin but i dont find it.

    Thank you for your support this far. please get me over this installation.

    Plugin Author dashed-slug.net

    (@dashedslug)

    Great, you’re almost there! I see you have been following the instructions at https://www.dashed-slug.net/bitcoin-altcoin-wallets-wordpress-plugin/coinpayments-adapter-extension/

    On that same page you will find the download for the CoinPayments adapter.

    You will need to disable the bitcoin core adapter. The plugin will warn you about this.

    Keep in mind that once you get it working, you will have a number of problems and questions with the plugin. Do read the website and documentation. It’s there to save you time.

    kind regards

    Thread Starter shreenath

    (@shreenath)

    Great,

    Thanks for your support. It is now working effectively. The thing i had missed was the adapter download zip. That had everything that needed to make stuff happen.

    Thanks for your support.

    • This reply was modified 7 years ago by shreenath.
    Plugin Author dashed-slug.net

    (@dashedslug)

    You are very welcome. Glad you got it working.

    If you do have another issue with the main plugin, open a new thread here. If you face an issue with the coin adapter, you can post it at the support forum: https://www.dashed-slug.net/forums/forum/coinpayments-net-coin-adapter-extension-support/

    regards

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘The Bitcoin RPC API cannot be contacted.’ is closed to new replies.