Verified Address

Verified Address is data that proves a specific wallet address has been KYC-verified by a trusted issuer. With this, users can access web3 financial services more securely.

This document shows how to query and use Verified Address so you can reference it when building on-chain apps.

Querying Verified Address

Requirements

Make sure the following are installed.

Set up development environment

In this tutorial, we’ll use viem. Viemarrow-up-right is a Node.js library, so we’ll start by creating a Node.js project.

1

Create a project folder

mkdir giwa-verified-address-tutorial
cd giwa-verified-address-tutorial
2

Initialize the project

pnpm init
3

Install dependencies

pnpm add -D tsx @types/node
pnpm add viem@^2.38.0

Configure the Chain Client

Set up chain client for querying Verified Address.

Contract addresses and ABI setup

Verified Address is queried via the DojangScrollarrow-up-right contract and the EASarrow-up-right contract. To do so, you first need to define the contract addresses and ABIs.

Querying Verified Address

Now let’s try querying a Verified Address.

You can check whether an address is verified directly through the DojangScroll contract, a convenience contract provided by the Dojang service.

If you need additional metadata such as the expiration time, you’ll need to query the attestation data directly from the EAS contract.

1

Writing the code

2

Running

Using Verified Address

As shown in the example below, you can restrict certain contract functions so that only wallets with a Verified Address are allowed to execute them.

Last updated