npm install @futuretense/stellar-multisig
import StellarSdk from 'stellar-sdk';
import multiSig from '@futuretense/stellar-multisig';
const server = StellarSdk.Server('...');
const tx = StellarSdk.TransactionBuilder('...').build();
...
const sources = multiSig.getTransactionSourceAccounts(tx);
const accounts = await multiSig.fetchAccountRecords(server, sources);
const signatures = ['...', '...', ...];
const res = multiSig.hasEnoughSignatures(tx, accounts, signatures);
Copyright © 2018-2020 Future Tense, LLC