ts-sdk-address

Create, parse, and format Aptos account addresses with the TypeScript SDK.

19|8|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/aptos-labs/aptos-agent-skills --skill ts-sdk-address
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ts-sdk-address
Source: https://github.com/aptos-labs/aptos-agent-skills/tree/main/skills/sdk/typescript/ts-sdk-address
Command: npx skills add https://github.com/aptos-labs/aptos-agent-skills --skill ts-sdk-address

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of creating, parsing, and managing Aptos account addresses within the TypeScript SDK, ensuring correctness and adherence to AIP-40 standards.

Core Features & Use Cases

  • Flexible Address Creation: Use AccountAddress.from() for easy conversion from strings, bytes, or existing addresses.
  • Strict AIP-40 Compliance: Employ AccountAddress.fromStringStrict() for precise LONG or SHORT form validation.
  • Derived Address Generation: Utilize helper functions like createObjectAddress and createTokenAddress to deterministically generate addresses for objects, resources, and tokens.
  • Use Case: When developing a dApp, you need to reliably create and reference user accounts, smart contract addresses, and NFT identifiers. This skill ensures you do so correctly and securely.

Quick Start

Use the ts-sdk-address skill to create an AccountAddress from the string '0x1'.

Frequently Asked Questions about ts-sdk-address

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

FAQPage Schema
How do I create an Aptos account address in TypeScript?

Create an Aptos account address in TypeScript using `AccountAddress.from()` to easily convert strings, bytes, or existing addresses into a valid format.

What is the difference between flexible and strict AIP-40 address parsing?

AIP-40 address parsing differs by validation strictness: `AccountAddress.from()` allows flexible conversion, while `AccountAddress.fromStringStrict()` enforces precise LONG or SHORT form validation.

How do I generate a derived address for an Aptos object or token?

Generate a derived address for Aptos objects, resources, or tokens by utilizing helper functions like `createObjectAddress` and `createTokenAddress` to deterministically calculate the target address.

When should I use strict AIP-40 validation for Aptos addresses?

Use strict AIP-40 validation with `AccountAddress.fromStringStrict()` when your dApp requires precise LONG or SHORT form address formatting to ensure correctness and security for user accounts and smart contracts.

Does the Aptos TypeScript SDK support special address formats?

Yes, the Aptos TypeScript SDK supports special address formats and AIP-40 standards, providing helper functions to handle specific addresses and ensure correct parsing and formatting within your dApp.