Skip to content

Instantly share code, notes, and snippets.

@bluepnume
Created May 13, 2021 07:22
Show Gist options
  • Save bluepnume/708f68ef8ac9bd453d0c12ba30440a20 to your computer and use it in GitHub Desktop.
Save bluepnume/708f68ef8ac9bd453d0c12ba30440a20 to your computer and use it in GitHub Desktop.
type MemPool = Array<{|
fee : number,
signedTransaction : string
|}>;
type BitcoinNodeType = {|
getPublicKey : () => Promise<string>,
run : () => Promise<void>,
send : (receiver : string, amount : number, fee : number) => Promise<void>,
getBlockChain : () => BlockChainType,
getMemPool : () => MemPool
|};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment