Need urgent: how to specify rpc userid and password to liststreamqueryitems commands

+1 vote
Need urgent: how to specify rpc userid and password to liststreamqueryitems commands

I am getting below error

{"method":"liststreamqueryitems","params":["chainStream",{"keys":["2019-05-22"]},true],"id":"55742973-1558589859","chain_name":"chainname"}

error: incorrect rpcuser or rpcpassword (authorization failed)
asked May 23 by anonymous

1 Answer

0 votes
MultiChain's API uses HTTP Basic Authentication, as described here:

https://en.wikipedia.org/wiki/Basic_access_authentication

This should be supported as standard by whatever method (language library, curl, etc...) you're using to issue API commands.
answered May 23 by MultiChain
...