Using publishfrom

+1 vote
Hi All,

I am pretty new to Multichain and have a question (multiple actually, but this one is main)

How do I create a new addres that is not mine?
what I mean is, if I do a createkeypairs I get for example:

[
    {
        "address" : "1LqDweNnMWf8G3AxEMCXPrVfKywQtehYWdtMoS",
        "pubkey" : "0305309f1322d1919f9643cc769bbc8d410e60a5999f796db70efe34c707414137",
        "privkey" : "VChFokAsGKFX6v62VDsqzRkXS4pj38RqsN3yY4iC5oFaEv63gRbBS6Ui"
    }
]

and I wish to use this info for publishing a message from this address.

but when I do this I get the message:

error code: -709
error message:
Private key for from-address is not found in this wallet

I guess this is correct as I have not created a private key in the wallet, because if I do, the address is 'mine', but I wish to create a key for another party.

How do I do that?

Kind regards,

Michel Pasman
asked Nov 22, 2017 by michelpasman

1 Answer

+1 vote

Generally the way to create a new address with private key in the wallet is to use getnewaddress.

But if you want to use createkeypairs to create a new address that can be used for transacting, then after than a node should call importprivkey with the privkey field. Some kind of transaction (e.g. a permission grant) needs to be sent to the new address before it can be used for sending transactions.

answered Nov 22, 2017 by MultiChain
...