Skip to content

future-tense/stellar-multisig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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