You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/faq.md
+40-3Lines changed: 40 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,27 +3,36 @@ title: FAQ
3
3
id: FAQ
4
4
---
5
5
6
+
7
+
## Connectivity
8
+
6
9
### Which p2p port does Bee use and which should I open in my router?
7
10
8
11
The default p2p port for Bee in 1634, please forward this using your router and allow traffic over your firewall as necessary. Bee also supports UPNP but it is recommended you do not use this protocol as it lacks security. For more detailed information see the connectivity section in the docs. https://docs.ethswarm.org/docs/installation/connectivity
9
12
13
+
10
14
### How do I know if I am connected to other peers?
11
15
12
16
You may communicate with your Bee using it’s HTTP api. Type `curl http://localhost:1635/peers` at your command line to see a list of your peers.
13
17
18
+
14
19
### What does "Failed to connect to local host port 1635: Connection refused" mean?
15
20
Your node is not listening on port 1635, either the debug-api is not enabled, or it is not executing on localhost. Make sure your bee.yaml file has `debug-api-enable: true`
16
21
22
+
23
+
17
24
## Errors
18
25
19
26
### What does "could not connect to peer" mean?
20
27
21
28
“Could connect to peer can happen for various reasons.” One of the most common is that you have the identifier of a peer in your address book from a previous session. When trying to connect to this node again, the peer may no longer be online.
22
29
30
+
23
31
### What does "context deadline exceeded" error mean?
24
32
25
33
The "context deadline exceeded" is a non critical warning. It means that a node took unexpectedly long to respond a request from your node. Your node will automatically try again via another node.
26
34
35
+
27
36
### How do I set up a blockchain endpoint?
28
37
29
38
- If you use "bee start"
@@ -39,8 +48,8 @@ The "context deadline exceeded" is a non critical warning. It means that a node
39
48
- and set it to `wss://goerli.infura.io/ws/v3/your-api-key`
40
49
- after that sudo systemctl restart bee
41
50
42
-
### How to export private keys from the node with bee-clef installed
43
51
52
+
### How to export private keys from the node with bee-clef installed
44
53
45
54
If you are running Bee together with the Bee-Clef, you can type in the command line `bee-clef-keys` and that will store the .JSON file into your home folder and copy the password in your clipboard.
46
55
@@ -57,6 +66,7 @@ Try running the command below:
57
66
58
67
You can then use that to import to Metamask or any other web3 wallet provider.
59
68
69
+
60
70
### How to export private keys from the node (without bee-clef)?
-`curl http://localhost:1635/settlements` - When the balance with a given peer exceeds a threshold, a settlement will be issued, if the settlement is received, then your node should have a check from that peer.
104
117
-`curl http://localhost:1635/chequebook/address` your checkbook contract to see the gBZZ.
105
118
119
+
106
120
### How can I check how many cashed out cheques do I have?
107
121
You can look at your checkbook contract at etherscan.
108
122
Get your checkbook contract address with: `curl http://localhost:1635/chequebook/address`
109
123
110
124
111
-
112
125
### I have compared transactions between my ethereum address and my chequebook address, the number are different, which is quite weird.
113
126
114
127
Your checkbook will show OUT gBZZ transactions when your peers cash checks issued by you, but you don't pay any gas for those so they won't show up in your Ethereum address transaction list.
115
128
129
+
116
130
### How to set infura.io endpoint:
117
131
118
132
You need to sign up for a free account at infura.io, set up an Ethereum project, and get the goerli test net URL which will include your personal API key. Put that URL in your swap-endpoint and restart your node.
119
133
120
134
Be sure that you choose the right network:
121
135

122
136
137
+
123
138
### Can I connect several nodes to infura endpoint?
124
139
125
140
Yes, but their free plan has limit 100k requests per day.
`totalBalance` is the balance on the blockchain, `availableBalance` is that balance minus the outstanding (non-cashed) checks that you have issued to your peers. These latter checks do not show up on the blockchain.
136
151
It's like what the bank thinks your balance is vs what your checkbook knows is actually available because of the checks you've written that are still "in the mail" and not yet cashed.
137
152
153
+
138
154
### What determines the number of peers and how to influence their number? Why are there sometimes 300+ peers and sometimes 30?
139
155
140
156
The number of connected peers is determined by your node as it attempts to keep the distributed Kademlia well connected. As nodes come and go in the network your peer count will go up and down. If you watch bee's output logs for "successfully connected", there should be a mix of (inbound) and (outbound) at the end of those messages. If you only get (outbound) then you my need to get your p2p port opened through your firewall and/or forwarded by your router. Check out the connectivity section in the docs https://docs.ethswarm.org/docs/installation/connectivity.
141
157
158
+
142
159
### What is the difference between "systemctl" and "bee start"?
143
160
144
161
*bee start* and *systemctl start bee* actually run 2 different instances with 2 different *bee.yaml* files and two different data directories.
@@ -148,10 +165,30 @@ The number of connected peers is determined by your node as it attempts to keep
148
165
149
166
### How can I find a transaction hash for the --transaction configuration parameter?
150
167
168
+
151
169
Use this cunning one liner - thanks [filoozom](https://github.com/beejeez/beejeez/commits?author=filoozom)
152
170
153
171
Get your API key from [etherscan](https://etherscan.io)
0 commit comments