i can't grant multichain-cli chain1 grant 1... connect

+1 vote
[test@localhost /]$ multichain-cli chain1 grant 1MJM3CXP1Zg5RVmg6UeQwupAnniTCC8vENXjLP connect
{"method":"grant","params":["1MJM3CXP1Zg5RVmg6UeQwupAnniTCC8vENXjLP","connect"],"id":"75805926-1615592990","chain_name":"chain1"}

error code: -5
error message:
Invalid address: 1MJM3CXP1Zg5RVmg6UeQwupAnniTCC8vENXjLP
[test@localhost /]$

how can i do this :( i want to grant second server
asked Mar 12, 2021 by newbiechain

1 Answer

0 votes

By default every blockchain has different addresses, in order to help prevent a mix-up between them. So you nee to find the address of the other server, after trying to connect it to this chain, not another one.

answered Mar 15, 2021 by MultiChain
first sorry for my poor English. 1MJM3CXP1Zg5RVmg6UeQwupAnniTCC8vENXjLP < this address second server
Please show the full output of the second server when you tried to connect it to this chain on the first server.
Microsoft Windows [Version 10.0.18363.1440]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Wagyu>multichaind chain2@192.168.77.1:5749

MultiChain 2.1.1 Daemon (Community Edition, latest protocol 20012)

IO error: C:\Users\Wagyu\AppData\Roaming\MultiChain\chain2\permissions.db\MANIFEST-000007: The handle is invalid.


ERROR: Couldn't initialize permission database for blockchain chain2. Probably multichaind for this blockchain is already running. Exiting...

i test on my pc
This is the problem. You are trying to connect to chain2, but the command you issued on the first server is for chain1. These have incompatible addresses.
no i just test same problem on chain 2 and 3. it same problem chain1 and 2
You have to connect to the same chain on both servers, not between different chains. Please try going through the Getting Started guide:

https://www.multichain.com/getting-started/
...