avalanche-js

Integrate with Avalanche P-Chain and X-Chain using TypeScript functions.

Updated May 7, 2026
One-click install
npx skills add https://github.com/Ayomisco/avaxskills --skill avalanche-js
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: avalanche-js
Source: https://github.com/Ayomisco/avaxskills/tree/main/website/public/avalanche-js
Command: npx skills add https://github.com/Ayomisco/avaxskills --skill avalanche-js

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @avalabs/avalanchejs, and includes scripts (resource) components.

What problem does it solve?

This Skill enables developers to programmatically interact with Avalanche's P-Chain and X-Chain using TypeScript, streamlining tasks such as staking, validator queries, asset transfers, and network information retrieval.

Core Features & Use Cases

  • Full Multi-Chain Support: Access Avalanche's P-Chain, X-Chain, and C-Chain APIs for comprehensive blockchain operations.
  • Validator Management & Asset Transfers: Query validators, get balances, and perform AVAX transfers across chains.
  • Use Case: A developer needs to automate staking validator checks or transfer AVAX between chains in a secure, type-safe manner.

Quick Start

Use the avalanchejs SDK to connect to the Avalanche network, set up wallet addresses, and execute a simple AVAX transfer on the X-Chain.

Frequently Asked Questions about avalanche-js

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate AVAX transfers across Avalanche multi-chain architecture using TypeScript?

You can automate AVAX transfers across Avalanche's multi-chain architecture by using TypeScript functions that interface with the @avalabs/avalanchejs SDK for secure, type-safe transactions. This enables programmatic asset operations across the X-Chain and other chains.

How do I query Avalanche validators programmatically for staking management?

To query Avalanche validators for staking management, use TypeScript functions that integrate with the P-Chain API via the @avalabs/avalanchejs SDK. This provides type-safe blockchain interactions to retrieve validator information and network details.

Can I check wallet balances on Avalanche's X-Chain and P-Chain with TypeScript?

Yes, you can check wallet balances on Avalanche's X-Chain and P-Chain with TypeScript. The Skill provides dedicated functions utilizing the @avalabs/avalanchejs API to securely retrieve balances across these specific chains.

Does the @avalabs/avalanchejs SDK support full multi-chain interactions for developers?

Yes, @avalabs/avalanchejs supports full multi-chain interactions by providing access to Avalanche's P-Chain, X-Chain, and C-Chain APIs. This allows developers to perform comprehensive blockchain operations like staking and asset transfers.

What is the best way to integrate type-safe Avalanche blockchain interactions into my automation scripts?

The best way to integrate type-safe Avalanche blockchain interactions is by using TypeScript functions built on the @avalabs/avalanchejs SDK, which ensures robust API usage for automating tasks like validator queries and asset transfers.