I installed Counterparty Federated Node - what next?

You can use curl to test it.

If your Federated Node runs on another system, you can connect to it remotely:

  • Ensure firewall is off or that port TCP/4000 is open (or otherwise tunnel your traffic to your Federated Node’s 127.0.0.1:4000 using any port you wish). Note that by default counterpartyd listens only on the loopback interface, and that can be changed in counterpartyd.conf; to bind all interfaces change the rpc-host variable from “localhost” to “0.0.0.0”).

  • In your RPC calls use the correct counterparty-server username, password and port

  • As explained at the top, Countewallet is accessible remotely via port TCP/443 (in case you want to work with Counterwallet)

  • You can test your API connectivity to Federated Node with a Python script similar to this (use port 14000 for testnet).

import json
import requests
from requests.auth import HTTPBasicAuth
url = "http://server-address:4000/api/"
headers = {'content-type': 'application/json'}
auth = HTTPBasicAuth('YOURUSERNAME', 'YOURPASSWORD')
payload = {
  "method": "get_running_info",
  "jsonrpc": "2.0",
  "id": 0,
}
response = requests.post(
  url, data=json.dumps(payload), headers=headers, auth=auth).json()
print("GET_RUNNING_INFO RESULT: ", response)