
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@settlemint/sdk-eas
Advanced tools
✨ https://settlemint.com ✨
Integrate SettleMint into your application with ease.
The SettleMint EAS SDK provides a lightweight wrapper for the Ethereum Attestation Service (EAS), enabling developers to easily create, manage, and verify attestations within their applications. It simplifies the process of working with EAS by handling contract interactions, schema management, and The Graph integration, while ensuring proper integration with the SettleMint platform. This allows developers to quickly implement document verification, identity attestation, and other EAS-based features without manual setup.
createEASClient(
options
):object
Defined in: sdk/eas/src/eas.ts:36
Creates an EAS client for interacting with the Ethereum Attestation Service.
Parameter | Type | Description |
---|---|---|
options | ClientOptions | Configuration options for the client |
object
An object containing the EAS client instance
Name | Type | Defined in |
---|---|---|
getSchema() | (uid ) => Promise <string > | sdk/eas/src/eas.ts:96 |
registerSchema() | (options ) => Promise <string > | sdk/eas/src/eas.ts:95 |
Will throw an error if the options fail validation
import { createEASClient } from '@settlemint/sdk-eas';
const client = createEASClient({
schemaRegistryAddress: "0x1234567890123456789012345678901234567890",
attestationAddress: "0x1234567890123456789012345678901234567890",
accessToken: "your-access-token",
chainId: "1",
chainName: "Ethereum",
rpcUrl: "http://localhost:8545"
});
Defined in: sdk/eas/src/types.ts:39
Options for registering a new schema in the EAS Schema Registry.
Defined in: sdk/eas/src/types.ts:26
Represents a single field in an EAS schema.
ClientOptions =
z.infer
<typeofClientOptionsSchema
> &Pick
<ViemClientOptions
,"accessToken"
|"chainId"
|"chainName"
|"rpcUrl"
>
Defined in: sdk/eas/src/client-options.schema.ts:32
Configuration options for creating an EAS client. Combines EAS-specific options with base Viem client options.
const
ClientOptionsSchema:ZodObject
<{accessToken
:ZodString
;attestationAddress
:ZodEffects
<ZodString
,`0x${string}`
,string
>;chainId
:ZodString
;chainName
:ZodString
;rpcUrl
:ZodString
;schemaRegistryAddress
:ZodEffects
<ZodString
,`0x${string}`
,string
>; },"strip"
,ZodTypeAny
, {accessToken
:string
;attestationAddress
:`0x${string}`
;chainId
:string
;chainName
:string
;rpcUrl
:string
;schemaRegistryAddress
:`0x${string}`
; }, {accessToken
:string
;attestationAddress
:string
;chainId
:string
;chainName
:string
;rpcUrl
:string
;schemaRegistryAddress
:string
; }>
Defined in: sdk/eas/src/client-options.schema.ts:10
Schema for validating EAS client configuration options. Extends the base Viem client options with EAS-specific requirements.
const
EAS_FIELD_TYPES:object
Defined in: sdk/eas/src/types.ts:5
Supported field types for EAS schema fields. Maps to the Solidity types that can be used in EAS schemas.
Name | Type | Default value | Defined in |
---|---|---|---|
address | "address" | "address" | sdk/eas/src/types.ts:7 |
bool | "bool" | "bool" | sdk/eas/src/types.ts:8 |
bytes | "bytes" | "bytes" | sdk/eas/src/types.ts:9 |
bytes32 | "bytes32" | "bytes32" | sdk/eas/src/types.ts:10 |
int256 | "int256" | "int256" | sdk/eas/src/types.ts:12 |
int8 | "int8" | "int8" | sdk/eas/src/types.ts:14 |
string | "string" | "string" | sdk/eas/src/types.ts:6 |
uint256 | "uint256" | "uint256" | sdk/eas/src/types.ts:11 |
uint8 | "uint8" | "uint8" | sdk/eas/src/types.ts:13 |
We welcome contributions from the community! Please check out our Contributing guide to learn how you can help improve the SettleMint SDK through bug reports, feature requests, documentation updates, or code contributions.
The SettleMint SDK is released under the FSL Software License. See the LICENSE file for more details.
FAQs
Ethereum Attestation Service (EAS) integration for SettleMint SDK
The npm package @settlemint/sdk-eas receives a total of 1,897 weekly downloads. As such, @settlemint/sdk-eas popularity was classified as popular.
We found that @settlemint/sdk-eas demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.