Grant a new addresse node

+2 votes

Hello,

I'm trying to connect my second server to my Blockchain with the grant command.

As you mentioned in your getting-started page, I just follow this page.

multichain-cli chain1 grant 1VbtyoBknvWjKCdPRXzYvCtuSRDXh2spfvxU8a connect

However, an issue appears :

{"method":"grant","params":["1VbtyoBknvWjKCdPRXzYvCtuSRDXh2spfvxU8a","connect"],"id":1,"chain_name":"chain1"}

error code: -4

error message:

Insufficient funds

I really don't understand this issue, I've tried to change parameters but it doesn't work. I don't understand why I've to set an amount.

Thank you in advance for your help.

 

asked Aug 14, 2016 by Jerem1

1 Answer

+1 vote

You need to issue the grant command from the first server, which owns an address that has admin permissions. In addition, you may need "sufficient funds" if you chose to use a native currency in your blockchain - in that case please post the output from getblockchainparams so we can take a look.

answered Aug 15, 2016 by MultiChain
Hi,
Thank you,

My betblockchainparams output:
 {
    "chain-protocol" : "multichain",
    "chain-description" : "MultiChain chain1",
    "chain-is-testnet" : false,
    "target-block-time" : 15,
    "maximum-block-size" : 1000000,
    "default-network-port" : 9577,
    "default-rpc-port" : 9576,
    "anyone-can-connect" : false,
    "anyone-can-send" : false,
    "anyone-can-receive" : false,
    "anyone-can-issue" : false,
    "anyone-can-mine" : false,
    "anyone-can-activate" : false,
    "anyone-can-admin" : false,
    "allow-p2sh-outputs" : true,
    "allow-multisig-outputs" : true,
    "setup-first-blocks" : 60,
    "mining-diversity" : 0.30000000,
    "admin-consensus-admin" : 0.50000000,
    "admin-consensus-activate" : 0.50000000,
    "admin-consensus-mine" : 0.50000000,
    "admin-consensus-issue" : 0.00000000,
    "mining-requires-peers" : true,
    "first-block-reward" : -1,
    "initial-block-reward" : 0,
    "reward-halving-interval" : 52560000,
    "reward-spendable-delay" : 1,
    "minimum-per-output" : 0,
    "maximum-per-output" : 100000000000000,
    "minimum-relay-fee" : 0,
    "native-currency-multiple" : 100000000,
    "skip-pow-check" : false,
    "pow-minimum-bits" : 16,
    "target-adjust-freq" : -1,
    "allow-min-difficulty-blocks" : false,
    "only-accept-std-txs" : true,
    "max-std-tx-size" : 100000,
    "max-std-op-return-size" : 4096,
    "max-std-op-drops-count" : 5,
    "max-std-element-size" : 600,
    "chain-name" : "siachain",
    "protocol-version" : 10005,
    "network-message-start" : "f7fdd3ff",
    "address-pubkeyhash-version" : "00790a68",
    "address-scripthash-version" : "05d33d38",
    "private-key-version" : "807254ca",
    "address-checksum-value" : "b432b399",
    "genesis-pubkey" : "03e57680b771071f8cda73c4969d6665578c0a0a1fbed8657b37333026342c089e",
    "genesis-version" : 1,
    "genesis-timestamp" : 1471020562,
    "genesis-nbits" : 520159231,
    "genesis-nonce" : 45669,
    "genesis-pubkey-hash" : "ba5e11e1b7de0fe10bec2495652d85e71ed98442",
    "genesis-op-return-script" : "5b6e6f74207365745d",
    "genesis-hash" : "00002002909ee4a0212aa222ac903014b284fa136529dc6f304aaba0c701f8fb",
    "chain-params-hash" : "9c2921606bc090be5c925a1666cd1b116f08ace0289733b388f2828493636057"
}

So, what funds do I have to put in my grant command ?
I'm sorry if it's a dummy issue, I just start with this development
You don't seem to be using a native currency. Are you issuing the grant command from the same node that started the blockchain?
...