Grant permission in nodejs

+2 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(err)

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

})

}

grant();

////////////////////////////////////////////

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 by Muzammil

1 Answer

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

https://www.multichain.com/developers/json-rpc-api/

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:

https://github.com/scoin/multichain-node/blob/development/lib/commands.js
answered May 6 by MultiChain
...