Cashlink Connect
About Cashlink ConnectCashlink Studio DemoMake a test investment
  • Welcome!
  • Cashlink Connect Distribution Hub
  • Cashlink Connect Core
  • ⚙️Distributor API
    • Introduction
    • Getting started
    • Overview
    • Concepts
      • Products
      • Investors
      • Investments
      • Transfers
      • Redemption
    • Example Guide
    • Full Distributor API Reference
  • ⚙️Issuer API
    • Introduction
    • Getting started
    • Overview
    • Concepts
      • Distribution platforms
      • Issuers
      • Products
      • Listings
      • Investments
    • Full Issuer API Reference
  • 🖥️ISSUER CASHLINK STUDIO
    • Issuer creation
  • Product creation
  • 📑Registry Smart Contracts
    • Introduction
    • Getting started
    • Token Interface
  • 💡More information
    • Supported environments
    • Publication of the issuance | Bundesanzeiger
    • BaFin | crypto securities communication
Powered by GitBook
On this page

Was this helpful?

  1. Registry Smart Contracts

Getting started

PreviousIntroductionNextToken Interface

Last updated 6 months ago

Was this helpful?

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 :

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 contract.methods.name().call();
console.log("Name: " + name);

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

📑
web3 module
Token Interface reference