Getting started

In order to get started, you need to know the network where the crypto security is deployed (Ethereum or Polygon PoS) and the smart contract account address of the crypto security.

Then, simply connect to an RPC provider serving the network where the crypto security is deployed. The following script shows a Node.js example using the web3 module:

const Web3 = require("web3")

const provider = "<HTTP endpoint of you RPC provider for the DLT network";
const { abi } = require("<path to the contract ABI");
const tokenAddress = "<smart contract account address>";

const Web3Client = new Web3(new Web3.providers.HttpProvider(provider));
const contract = new Web3Client.eth.Contract(abi, tokenAddress);

Using this basic setup you can now start to interact with the crypto security. For example, you can call the name of the crypto security using the ERC-20 "name" function.

const name = await;
console.log("Name: " + name);

To see all available functions, have a look at the Token Interface reference.

Last updated