Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 731 Bytes

readme.md

File metadata and controls

28 lines (17 loc) · 731 Bytes

@futuretense/stellar-multisig

Build Status

Install

npm install @futuretense/stellar-multisig

Usage

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