Web3·js
What is Web3.js?
Web3.js is a collection of tools that enable programmers to communicate with Ethereum nodes through HTTP, IPC, or WebSocket protocols using JavaScript. Atleta Olympia has a similar API, which can be used with the same JSON RPC calls as Ethereum, allowing developers to utilize the Web3.js library to interact with an Atleta Olympia node as if it were Ethereum.
Getting Started with Web3.js
Create a JavaScript Project to store all of the files you'll be creating
mkdir web3-examples && cd web3-examplesInstall the Ethers.js library and the Solidity compiler
npm install web3 solc@0.8.0Setup Web3.js with Atleta Olympia chain
const Web3 = require('web3'); // Create Web3 instance const web3 = new Web3("https://testnet-rpc.atleta.network"); // Insert your RPC URL her
Last updated