Skip to content

Instantly share code, notes, and snippets.

@bluepnume
Last active May 17, 2021 04:41
Show Gist options
  • Save bluepnume/4ad4d23e4d99cac82efd1da38f03a929 to your computer and use it in GitHub Desktop.
Save bluepnume/4ad4d23e4d99cac82efd1da38f03a929 to your computer and use it in GitHub Desktop.
type BitcoinNodeType = {|
mine : () => Promise<void>,
send : (receiver : string, amount : number, fee : number) => Promise<void>
|};
export function BitcoinNode() : BitcoinNodeType
const mine = async () : Promise<void> => {
};
const send = async (receiver : string, amount : number, fee : number) : Promise<void> => {
};
return {
mine,
send
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment