Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@layerzerolabs/lz-iotamove-oft-sdk-v2

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/lz-iotamove-oft-sdk-v2

latest
npmnpm
Version
3.0.142
Version published
Maintainers
1
Created
Source

@layerzerolabs/lz-iotamove-oft-sdk-v2

LayerZero V2 IOTA OFT (Omnichain Fungible Token) SDK

Overview

This SDK provides TypeScript bindings for interacting with LayerZero V2 OFT contracts on the IOTA blockchain. It enables developers to create, manage, and transfer omnichain fungible tokens across different blockchains using the LayerZero protocol.

Installation

npm install @layerzerolabs/lz-iotamove-oft-sdk-v2
# or
yarn add @layerzerolabs/lz-iotamove-oft-sdk-v2
# or
pnpm add @layerzerolabs/lz-iotamove-oft-sdk-v2

Features

  • Cross-chain Transfers: Send tokens across different blockchains
  • OFT & OFT Adapter: Interact with deployed OFT & OFT Adapter
  • OFT Composer: Advanced composition functionality for complex cross-chain operations

Usage

Basic OFT Operations

import { OFT } from "@layerzerolabs/lz-iotamove-oft-sdk-v2";
import { SDK } from "@layerzerolabs/lz-iotamove-sdk-v2";

// Initialize SDK
const sdk = new SDK({
  client: iotaClient,
  packages: packageOptions,
  objects: objectOptions,
  stage: Stage.MAINNET,
});

// Create OFT instance
const oft = new OFT(
  builderPackageId,
  builderObjectId,
  packageId,
  iotaClient,
  objects,
  oftObjectId,
  adminCapId,
  coinType,
  sdk.moduleManager,
);

// Send tokens to another chain
const sendParam = {
  dstEid: destinationEndpointId,
  to: recipientAddress,
  amountLd: amount,
  minAmountLd: minAmount,
  extraOptions: options,
  composeMsg: new Uint8Array(0),
  oftCmd: new Uint8Array(0),
};

const { nativeFee, zroFee } = await oft.quoteSend(sender, sendParam, false);

OFT Composer

import { OFTComposer } from "@layerzerolabs/lz-iotamove-oft-sdk-v2";

const composer = new OFTComposer(
  packageId,
  iotaClient,
  objects,
  oftComposerObjectId,
  adminCapId,
  oftComposerRegistryId,
  coinType,
  moduleManager,
);

// Register composer with endpoint
const lzComposeInfo = await composer.lzComposeInfo();
composer.registerComposerMoveCall(tx, lzComposeInfo);

Documentation

For detailed documentation and examples, please visit the LayerZero documentation.

License

MIT

FAQs

Package last updated on 22 Oct 2025

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