description |
---|
The Typescript SDK allows developers to easily create and manage ACTUS assets by simplifying the interaction with the ACTUS Protocol smart contracts. |
Install the package via:
yarn add @atpar/protocol
Initializing the Typescript SDK.
import Web3 from 'web3.js'; // v1.2.4
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 addressBook: APTypes.AddressBook;
const ap = await AP.init(
web3,
addressBook
);
API | Description |
---|---|
Contracts | wrapper around the ACTUS Protocol smart contracts |
Utils | utility methods for conversions, constants, creating signatures and handling schedules |