EOSIO / eosjs

General purpose library for the EOSIO blockchain.
http://eosio.github.io/eosjs
MIT License
1.43k stars 463 forks source link

Multiple signature in one request using eosjs #205

Closed sehgal12 closed 6 years ago

sehgal12 commented 6 years ago

I have written a smart contract in which several action require multiple signature in one request. How to get the transaction signed by say user and admin and push to to the blockchain using eosjs?

nsjames commented 6 years ago

You can check out this code if you're using Scatter, https://github.com/EOSEssentials/Scatter/blob/master/readme.md#multi-part-signatures-involving-the-application-and-an-identity

You can also pass multiple keys into keyProvider or multiple awaited promises into signProvider which converge as a single array