Getting started
This guide explains how to set up ACTUS Protocol and develop with it. It's the ACTUS Protocol "Hello World" equivalent.
Install prerequisites
Create a new project
mkdir ap-tutorial && cd ap-tutorial
yarn init -y # initalize a default project
yarn add @atpar/protocolGetting started with the Typescript SDK
import Web3 from 'web3.js';
import { AP } from '@atpar/protocol';
// connecting to Rinkeby Testnet via infura
const web3 = new Web3(new Web3.providers.Web3SocketProvider('wss://rinkeby.infura.io/ws/v3/<PROJECT_ID>'));
const defaultAccount = (await web3.eth.getAccounts())[0];
const ap = await AP.init(web3, ADDRESS_BOOK);Last updated