Grant permission in nodejs

+3 votes

I want to grant permission of send and receive  to every new address but not able to do this

Here is my code

var grant=async()=>{

await multichain.grant({address:"16jX3qouzbM24UWe6ee7XDKzCEwKd7UmvyKnJb",permissions:"send"}, (err, res) => {


console.log("This is token:"+res)





Error:{ code: -1, message: 'value is type null, expected str' }

I dont know about the params of grant function in multichain can anyOne guide me please?

Thnx in advance

asked May 5, 2020 by Muzammil

1 Answer

0 votes
All of the commands and their parameters are described in great detail here:

If you are using the Node.js library that we link from the site, here's a useful list of commands within the library and parameters that they take:
answered May 6, 2020 by MultiChain