Getting Started
Learn how to start developing on the Beatoz blockchain.
1
Install the SDK
Install the @beatoz/web3 package in your project.
# npm
npm install @beatoz/web3
# yarn
yarn add @beatoz/web3
# pnpm
pnpm add @beatoz/web32
Create Web3 Instance
Create a Web3 instance to connect to the Beatoz network.
import { Web3 } from '@beatoz/web3';
// Testnet 연결
const web3 = new Web3('https://rpc-testnet0.beatoz.io');
// 연결 확인
const status = await web3.beatoz.status();
console.log('Network:', status.node_info.network);3
Create an Account
Create an account to send transactions.
// 새 계정 생성
const account = web3.beatoz.accounts.create();
console.log('Address:', account.address);
console.log('Private Key:', account.privateKey);
// 기존 개인키로 계정 가져오기
// const account = web3.beatoz.accounts.privateKeyToAccount('0x...');4
Get Tokens from Faucet
Get BTZ tokens to use on the testnet.
You can get free test tokens from the Beatoz Faucet.
Go to Faucet