0.0.15 • Published 9 months ago

@ethereum-tag-service/sdk-core v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@ethereum-tag-service/sdk-core

Core SDK for interacting with Ethereum Tag Service smart contracts.

Features Test

  • Type-safe client factories for all ETS contracts
  • Built on viem for reliable Ethereum interactions
  • Automatic chain configuration
  • Support for custom RPC endpoints and Alchemy integration

Installation

npm install @ethereum-tag-service/sdk-core

Usage

Create clients for specific ETS contracts:

import { createCoreClient, createTokenClient } from '@ethereum-tag-service/sdk-core'

// Initialize the core client with all sub-clients
const coreClient = createCoreClient({
  chainId: 42161, // Arbitrum One
  account: '0x...',
  clients: {
    tokenClient: true,
    relayerClient: true
  }
})

// Or create individual clients
const tokenClient = createTokenClient({
  chainId: 42161,
  account: '0x...'
})

Available Clients

CoreClient - Main entry point with access to all contracts TokenClient - ETS token operations RelayerClient - Relayer interactions AuctionHouseClient - Auction functionality AccessControlsClient - Permission management RelayerFactoryClient - Relayer deployment TargetClient - Target contract interactions EnrichTargetClient - Target enrichment operations EtsClient - General ETS protocol interactions

Configuration

The SDK automatically configures for supported chains and can use Alchemy RPC endpoints when NEXT_PUBLIC_ALCHEMY_KEY is provided.

0.0.10

12 months ago

0.0.11

11 months ago

0.0.12

11 months ago

0.0.13

11 months ago

0.0.14

10 months ago

0.0.15

9 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago