Basics of blockchain programming

Do repost and rate:

I will try to teach you some basic concepts around blockchain programming through this post.

You can access programmatically to a blockchain with many languages, such as Solidity for coding and deploying smart contracts, Javascript/NodeJS for accessing remote functions on deployed smart contracts etc...

Here we will focus on basic concepts, such as those needed for accessing remote functions on existing smart contracts on a blockchain.

For accessing the BINANCE Smart Chain, we need a remote JSON-RPC endpoint such as https://bsc-dataseed1.binance.org:443

With NodeJS, the way to declare the remote JSON-RPC endpoint for the BSC is the following :

'https://bsc-dataseed1.binance.org:443'

You can then, if you need, create a new wallet with the following code :

 account accounts

Or you can access an existing wallet thanks to the following code :

 privateKey "myprivatekey" account accountsprivateKeyToAccount

You will have to change the privateKey variable to an existing private key.

That's all for now ! 

Regulation and Society adoption

Ждем новостей

Нет новых страниц

Следующая новость