Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jesusthehun/lisk-transaction-faucet
Lisk Faucet Transaction
https://github.com/jesusthehun/lisk-transaction-faucet
Last synced: 25 days ago
JSON representation
Lisk Faucet Transaction
- Host: GitHub
- URL: https://github.com/jesusthehun/lisk-transaction-faucet
- Owner: JesusTheHun
- Created: 2019-08-21T19:33:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T16:43:47.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T11:17:28.337Z (about 1 month ago)
- Language: TypeScript
- Size: 59.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lisk Faucet Transaction
#### Blockchain side
Import the transaction into your project
```js
const { FaucetTransaction } = require('lisk-transaction-faucet');app.registerTransaction(FaucetTransaction);
```Of course you should **only** activate it in a **development** environment.
#### Client Side
```js
const { FaucetTransaction } = require('lisk-transaction-faucet');const tx = new FaucetTransaction({
senderPublicKey: somePublicKey, // the sender doesn't matter since nobody pay anything, but it sill needs to be valid
timestamp: txTimestamp,
asset: {
amount: 42,
recipientId: recipientAddress, // Faucet receiver
}
});tx.sign(senderAccountPassphrase);
```