SDI for dapp developers
This page describes how to interact with the x/compliance module in order to get relevant information about the verified users and issuers.
Interacting with the x/compliance module using the SwisstronikJS SDK
import { SwisstronikStargateClient } from "@swisstronik/sdk";
const client = await SwisstronikStargateClient.connect(
"https://rpc.testnet.swisstronik.com"
);Getting address details
const address = "swtr...";
const addressDetails = await client.queryAddressDetails(address);Getting Issuer details
const issuerAddress = "swtr...";
const issuerDetails = await client.queryIssuerDetails(issuerAddress);Getting verification details
Getting verified address list
Getting Issuer list
Getting verification details list
Interacting with the x/compliance module using Solidity
How to import and initialize the SWTRProxy
Getting list of verified Issuers
Get issuer by address
Get Issuer Addresses by name and versions
Checking if an user is verified with a specific verification type by any issuer
Checking if an user is verified with a specific verification type by specific issuers
Getting verification details
Getting verification details list
Checking if user has a specific verification type
Solidity Examples
Getting an image url ONLY IF the user is has a specific verification type issued by a specific issuer
Getting decoded original data of the verification by user address
Typescript examples
Using web3.js and Swisstronik plugin order to check if an user has a specific verification type issued by a specific issuer
Getting decoded original data of the verification by user address
Last updated