Last active
May 17, 2021 04:29
-
-
Save bluepnume/2051413fb9f02a74dd712a508c241b56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const send = async (receiver : string, amount : number, fee : number) : Promise<void> => { | |
const signedTransaction = await signAndPack({ | |
sender: await keypair.publicKey, | |
receiver, | |
amount, | |
fee | |
}, await keypair.publicKey, await keypair.privateKey) | |
await network.broadcast('ADD_TRANSACTION', signedTransaction); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment