Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@settlemint/sdk-eas

Package Overview
Dependencies
Maintainers
3
Versions
909
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@settlemint/sdk-eas

Ethereum Attestation Service (EAS) integration for SettleMint SDK

Source
npmnpm
Version
2.2.2-prd773eb0f
Version published
Weekly downloads
3.2K
35.07%
Maintainers
3
Weekly downloads
 
Created
Source

@settlemint/sdk-eas

Ethereum Attestation Service (EAS) integration for SettleMint SDK.

Features

  • Attestation submit/parse
  • Graph query helpers
  • Schema creation utils

Installation

npm install @settlemint/sdk-eas

Usage

import { createEASClient } from '@settlemint/sdk-eas';
import { getPublicClient, getWalletClient } from '@settlemint/sdk-viem';

const publicClient = getPublicClient({ ... });
const walletClient = getWalletClient({ ... });

const easClient = createEASClient({
  publicClient,
  walletClient,
  schemaRegistryAddress: '0x...',
  attestationContractAddress: '0x...',
});

// Create a schema
const schemaId = await easClient.createSchema({
  schema: 'bytes32 documentHash,uint256 timestamp,address userId',
  resolver: '0x...',
  revocable: true,
});

// Submit an attestation
const attestationId = await easClient.submitAttestation(schemaId, {
  recipient: '0x...',
  expirationTime: 0n,
  revocable: true,
  data: '0x...',
});

// Parse an attestation
const attestation = await easClient.parseAttestation(attestationId);

// Get attestations for a schema
const attestations = await easClient.getAttestations(schemaId);

License

FSL-1.1-MIT

Keywords

settlemint

FAQs

Package last updated on 05 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts