Skip to content

Commit 1b3032b

Browse files
committed
Merge branch 'master' of github.com:ethersphere/docs.github.io
2 parents f836f91 + 9b75815 commit 1b3032b

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

docs/faq.md

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,36 @@ title: FAQ
33
id: FAQ
44
---
55

6+
7+
## Connectivity
8+
69
### Which p2p port does Bee use and which should I open in my router?
710

811
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
912

13+
1014
### How do I know if I am connected to other peers?
1115

1216
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.
1317

18+
1419
### What does "Failed to connect to local host port 1635: Connection refused" mean?
1520
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`
1621

22+
23+
1724
## Errors
1825

1926
### What does "could not connect to peer" mean?
2027

2128
“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.
2229

30+
2331
### What does "context deadline exceeded" error mean?
2432

2533
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.
2634

35+
2736
### How do I set up a blockchain endpoint?
2837

2938
- If you use "bee start"
@@ -39,8 +48,8 @@ The "context deadline exceeded" is a non critical warning. It means that a node
3948
- and set it to `wss://goerli.infura.io/ws/v3/your-api-key`
4049
- after that sudo systemctl restart bee
4150

42-
### How to export private keys from the node with bee-clef installed
4351

52+
### How to export private keys from the node with bee-clef installed
4453

4554
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.
4655

@@ -57,6 +66,7 @@ Try running the command below:
5766

5867
You can then use that to import to Metamask or any other web3 wallet provider.
5968

69+
6070
### How to export private keys from the node (without bee-clef)?
6171

6272
You can find insturction here in README section:
@@ -65,6 +75,7 @@ https://github.com/ethersphere/exportSwarmKey
6575
You can also follow to the mini-guide on the link below:
6676
https://pastebee.com/?3b2a4cecafa21a7afcdd4d4f3d74fef1d5551acd91eb2d3a5b750dc9a161fbcf
6777

78+
6879
### How to import bee node address to Metamask?
6980

7081
1. [export your bee node private keys](https://hackmd.io/tfKVeHaIQGewlGTC4ooESg#How-to-export-private-keys-from-the-node-with-bee-claf-installed)
@@ -74,6 +85,7 @@ https://pastebee.com/?3b2a4cecafa21a7afcdd4d4f3d74fef1d5551acd91eb2d3a5b750dc9a1
7485
5. paste the password
7586
6. click Import
7687

88+
7789
### What are the restart commands of bee?
7890

7991
If you use bee.service:
@@ -87,6 +99,7 @@ If you use "bee start"
8799
- Start: `bee start`
88100
- Stop: `ctrl + c` or `cmd + c` or close terminal to stop process
89101

102+
90103
### Relevant endpoints and explanations
91104

92105
Balances: https://docs.ethswarm.org/debug-api/#tag/Balance
@@ -103,23 +116,25 @@ Most common use cases:
103116
- `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.
104117
- `curl http://localhost:1635/chequebook/address` your checkbook contract to see the gBZZ.
105118

119+
106120
### How can I check how many cashed out cheques do I have?
107121
You can look at your checkbook contract at etherscan.
108122
Get your checkbook contract address with: `curl http://localhost:1635/chequebook/address`
109123

110124

111-
112125
### I have compared transactions between my ethereum address and my chequebook address, the number are different, which is quite weird.
113126

114127
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.
115128

129+
116130
### How to set infura.io endpoint:
117131

118132
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.
119133

120134
Be sure that you choose the right network:
121135
![](https://i.imgur.com/ev5Fwsm.png)
122136

137+
123138
### Can I connect several nodes to infura endpoint?
124139

125140
Yes, but their free plan has limit 100k requests per day.
@@ -135,10 +150,12 @@ https://docs.ethswarm.org/docs/working-with-bee/cashout
135150
`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.
136151
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.
137152

153+
138154
### What determines the number of peers and how to influence their number? Why are there sometimes 300+ peers and sometimes 30?
139155

140156
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.
141157

158+
142159
### What is the difference between "systemctl" and "bee start"?
143160

144161
*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
148165

149166
### How can I find a transaction hash for the --transaction configuration parameter?
150167

168+
151169
Use this cunning one liner - thanks [filoozom](https://github.com/beejeez/beejeez/commits?author=filoozom)
152170

153171
Get your API key from [etherscan](https://etherscan.io)
154172

155173
```
156174
curl "https://api-goerli.etherscan.io/api?module=account&action=txlist&address=$ADDRESS&startblock=0&endblock=99999999&sort=asc&apikey=$API_KEY" | jq -c 'first(.result[] | select(.to == "'$ADDRESS'")).hash'
157-
```
175+
```
176+
177+
178+
## Swarm Protocol
179+
180+
181+
### Can I use one Ethereum Address/Wallet for many nodes?
182+
183+
No, this violates the requirements of the Swarm Protocol. The Swarm
184+
Protocol relies upon the `Swarm Address`, also known as the `peer
185+
address`. This address is a **hash of the node's Ethereum address**,
186+
therefore it is deterministic. As all nodes must have a unique address,
187+
if you were to use the same wallet, it would violate the uniqueness
188+
constraint and result in malfunctioning nodes.
189+
190+
Therefore, the rule is, each node must have:
191+
192+
* 1 Ethereum Address
193+
* 1 Chequebook
194+
* 3 unique ports for API / p2p / Debug API.

0 commit comments

Comments
 (0)