This is a simple repo that shows how to send a transaction to the TestNet (Nikau🌴, using the CENNZnet API.
index.js demonstrates how to:
- Connect an
apisession object with a CENNZnet node - Load a keypair
- Send a transaction to say hi!
- clone the repo
yarn
Supply your message, path to keypair.json and the password
node index.js "hello CENNZnet!" ./myKeyPair.json passwordYou can use the CENNZnet Portal to create an account. The keypair.json is downloaded to your machine when you create the account.
The user guide for the CENNZnet Portal can be found here.
My CENNZnet address is: 5FWEHQqYMN8YCg8yJxKHnon7Dtx4Psp2xnjvKfQqGC6kUwgv
Connecting to CENNZnet...
Saying hello...
Said hello 🚀: 'hello world'
Tx hash: 0x0390f6ea97a38ef762db8c44b4e69c5d7ebf9fed9dd726ce6007162f2d3acef7
Go to UNcover to view the transaction!
