Skip to content

Latest commit

 

History

History

README.md

@polkadot-agent-kit/core

Core functionality for Polkadot Agent Kit

version downloads

Overview

The @polkadot-agent-kit/core package provides core functionality for building AI agents that interact with the Polkadot ecosystem. It includes utilities for blockchain operations, DeFi interactions, staking, and cross-chain transfers.

Features

  • Cross-Chain Transfers (XCM) - Native asset transfers between parachains
  • DeFi Operations - Token swaps and liquidity operations
  • Staking & Nomination Pools - Join pools, bond/unbond, claim rewards
  • Bifrost Integration - Mint vDOT tokens and liquid staking
  • Utility Functions - Address validation, balance checking, transaction handling

Installation

pnpm add @polkadot-agent-kit/core

Development

Prerequisites

  • Node.js >= 22
  • pnpm (recommended)

Setup & Run

# Install dependencies
pnpm install

# Build the package
pnpm build

# Run tests
pnpm test

Available Scripts

  • pnpm build - Build the package
  • pnpm test - Run unit tests
  • pnpm lint - Run ESLint
  • pnpm compile - TypeScript compilation check
  • pnpm format:write - Format code with Prettier

License

Published under MIT License.


Made with 💛 by Elastic Labs