🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@ixo/oracles-chain-client

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ixo/oracles-chain-client

latest
Source
npmnpm
Version
1.3.2
Version published
Weekly downloads
304
-45.91%
Maintainers
2
Weekly downloads
 
Created
Source

@ixo/oracles-chain-client

TypeScript client library for IXO blockchain operations, specifically designed for oracle builders and blockchain workflows.

Overview

Provides high-level abstractions for IXO blockchain interactions:

  • Client: Wallet management, transaction signing, automatic gas estimation
  • Authz: Oracle permission management and delegated operations
  • Claims: Claim submission workflows and payment intents
  • Entities: Entity creation, querying, and configuration management
  • Payments: Oracle payment workflows with escrow functionality
  • Crypto: ECIES encryption/decryption utilities for secure data handling
  • React: React-specific utilities and hooks for frontend integration

Key Features

  • Smart Fee Calculation: Automatic gas estimation with intelligent fallbacks
  • Authorization Management: Complete oracle permission workflows
  • Payment Workflows: Escrow-based payment system for oracle services
  • Type Safety: Full TypeScript support with comprehensive type definitions
  • React Ready: Built-in React hooks and components
  • Production Tested: Battle-tested in production oracle environments

Installation

npm install @ixo/oracles-chain-client
# or
pnpm add @ixo/oracles-chain-client

Quick Setup

Environment Configuration

Create a .env file with the required configuration:

RPC_URL=https://devnet.ixo.earth/rpc/
SECP_MNEMONIC=your-wallet-mnemonic-phrase-here

Basic Usage

import {
  walletClient,
  claimsClient,
  gqlClient,
} from '@ixo/oracles-chain-client';

// Initialize wallet client
await walletClient.checkInitiated();

// Submit a claim
await claimsClient.submitClaim({
  granteeAddress: 'ixo1oracle...',
  claimId: 'claim-123',
  collectionId: 'collection-456',
});

// Query blockchain data
const entities = await gqlClient.GetEntitiesByOwnerAddress({
  ownerAddress: 'ixo1...',
});

Modules

Core Modules

  • Client: Wallet management and transaction signing
  • Authz: Oracle authorization and permission management
  • Claims: Claim submission and intent workflows
  • Entities: Entity creation and management
  • Payments: Oracle payment and escrow workflows
  • Crypto: ECIES encryption/decryption utilities

React Integration

import { Payments, Authz } from '@ixo/oracles-chain-client/react';

// Use in React components with full TypeScript support
const MyOracleComponent = () => {
  const handlePayment = async () => {
    const payments = new Payments();
    await payments.payClaim(params);
  };

  return <button onClick={handlePayment}>Pay Oracle</button>;
};

API Documentation

Complete documentation for all modules:

  • Client - Wallet client and transaction management
  • Authz - Authorization and permissions
  • Claims - Claim operations and intents
  • Entities - Entity management and queries
  • Payments - Payment workflows and pricing
  • Crypto - ECIES encryption and secure data handling

Development

# Build package
pnpm build

# Run tests
pnpm test

# Generate GraphQL types
pnpm generate

Contributing

Contributions welcome! Ensure tests pass and follow existing patterns.

License

Licensed under terms in package.json.

FAQs

Package last updated on 10 Jun 2026

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