NEO blockchain, programming tutorials, Javascript — 1

館長
Blockchain Under The Hood
2 min readMay 7, 2018

Generate PrivateKey, PublicKey, ScriptHash, address and WIF

neon-js

This is a series of how you can start to build a decentralized app on the top of NEO. Before moving forward, I will guide you the fundamental aspect before we get started.

I am a full-stack javascript developer and one of the contributors for NEO blockchain project.

Requirement

  1. Node.js
  2. npm (node package manager)

Installation

npm init -ynpm install @cityofzion/neon-jstouch index.js

Generating account with Javascript SKD

const Neon = require('@cityofzion/neon-js')const account = Neon.default.create.account(Neon.wallet.default.create.privateKey())const privateKey = account.privateKeyconst publicKey = account.publicKeyconst scriptHash = account.scriptHashconst address = account.addressconst WIF = account.WIFprivateKey fb58253d23f681fab5b6ed8d4d6bad57d14a78f3bc186e7abacee55031c9425cpublicKey
026bb83884c79da69e47ad5cf2aa78f611692588c2968f33c3e47088545fb7ee20
scriptHash
effa5a7a975f82af0d7b4f10fabe23f8aa8b5143
address
AMupcEhbZbcx3apfJ1LHSKg5mZnBwTK9v7
WIF
L5eHrVfVjCzzoRFHtX8a5U5KfpT41tG8LaitZzW4TQaebSPFk71M

Tip of the day

private key is a way of telling NEO blockchain that you owns whatever amount of NEO, GAS or NEP5 tokens that you own for particular address

Stay Tune

I will show you how to get NEO/GAS(Native Token) from and NEP5 Token from blockchain and things going under the hood.

I make one post on every Monday UTC+0 time zone, but if I have more than 500 claps, I make another post immediately.

Feel free to drop message to me if you want to suggest a topic for me.

Useful Link

Blockchain Programing
1.「NEO blockchain, programming tutorials, Javascript — 1
2.「NEO blockchain, programming tutorials, Javascript — 2
3.「NEO blockchain, programming tutorials, Javascript — 3
4.「NEO blockchain, programming tutorials, Javascript — 4
5.「NEO blockchain, programming tutorials, Javascript — 5

Github
My Github

Neon-JS
NEON-JS-SDK

Blockchain Link List
Blockchain Posts List

About me
I am a full-stack javascript developer and one of the contributors for NEO blockchain project.

Build Decentralized Application with Javascript on the top of NEO?
NEO blockchain, programming tutorials, Javascript

If you consider yourself a talent?
Cobinhood Careers

--

--