lisk-transaction-faucet
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Lisk Faucet Transaction

Blockchain side

Import the transaction into your project

const { FaucetTransaction } = require('lisk-transaction-faucet');
 
app.registerTransaction(FaucetTransaction);

Of course you should only activate it in a development environment.

Client Side

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);

Package Sidebar

Install

npm i lisk-transaction-faucet

Weekly Downloads

2

Version

1.0.4

License

WTFPL

Unpacked Size

5.71 kB

Total Files

9

Last publish

Collaborators

  • jesus_the_hun