No unspent output with activate or admin permission when trying to grant permissions to new address.

+4 votes
I have created a new node and issued 1 new address. I then tried to grant permissions to this address and got the following error: *No unspent output with activate or admin permission*. I tried to run the multichaind with -reindex=1 as well but still getting the same issue. What could be the issue here?

PS C:\multichain> .\multichain-cli LucidOceanTestChain listunspent 0 999999
{"method":"listunspent","params":[0,999999],"id":1,"chain_name":"LucidOceanTestChain"}

[
    {
        "txid" : "df80ecbaa2e78b76d1a24eb912d1867990f35d778d149d9ca8b87fa2cb4f3905",
        "vout" : 0,
        "address" : "1LxTMtXtXynbne5TNqjE9AfTsNa59GzdLDPqWu",
        "account" : "",
        "scriptPubKey" : "76a91493a75ec70f27c9613bab9ca51b26be730beaa64988ac",
        "amount" : 0.00000000,
        "confirmations" : 59,
        "cansend" : true,
        "spendable" : true,
        "assets" : [
        ],
        "permissions" : [
        ]
    }
]

PS C:\multichain> .\multichain-cli LucidOceanTestChain grant 1RfXXYGTFFfpACh1rXw8gt4wQAbqVSd5uuXsrY receive
{"method":"grant","params":["1RfXXYGTFFfpACh1rXw8gt4wQAbqVSd5uuXsrY","receive"],"id":1,"chain_name":"LucidOceanTestChain"}

error code: -704
error message:
No unspent output with activate or admin permission
PS C:\multichain>
asked Oct 2, 2017 by RobertJ

1 Answer

+1 vote
Are you trying to grant permissions on the new node, or from the original node? The ability to change permissions is not available to everyone – only to those addresses with the appropriate permissions. By default a new address created will not have those permissions, until they've been explicitly granted.
answered Oct 2, 2017 by MultiChain
This is a new chain with only one node(which has admin/issue by default). I was trying to just create a new address and grant it receive permissions to do simple transactions as a test project for my local environment.
Strange. Please post the output of listpermissions.
C:\multichain>multichain-cli LucidOceanTestChain listpermissions
{"method":"listpermissions","params":[],"id":1,"chain_name":"LucidOceanTestChain"}

[
    {
        "address" : "1JZpnFNYw3zQbyGKqve7rDWben3PuC2g3bhwBP",
        "for" : null,
        "type" : "mine",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "1JZpnFNYw3zQbyGKqve7rDWben3PuC2g3bhwBP",
        "for" : null,
        "type" : "admin",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "1JZpnFNYw3zQbyGKqve7rDWben3PuC2g3bhwBP",
        "for" : null,
        "type" : "activate",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "1JZpnFNYw3zQbyGKqve7rDWben3PuC2g3bhwBP",
        "for" : null,
        "type" : "connect",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "1JZpnFNYw3zQbyGKqve7rDWben3PuC2g3bhwBP",
        "for" : null,
        "type" : "send",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "1JZpnFNYw3zQbyGKqve7rDWben3PuC2g3bhwBP",
        "for" : null,
        "type" : "receive",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "1JZpnFNYw3zQbyGKqve7rDWben3PuC2g3bhwBP",
        "for" : null,
        "type" : "issue",
        "startblock" : 0,
        "endblock" : 4294967295
    },
    {
        "address" : "1JZpnFNYw3zQbyGKqve7rDWben3PuC2g3bhwBP",
        "for" : null,
        "type" : "create",
        "startblock" : 0,
        "endblock" : 4294967295
    }
]
OK, so the listunspent output shows one UTXO, belonging to an address which has no permissions at all. You can use listwallettransactions to go back and see how the original address ended up with no UTXOs.
...