Getting Started

Getting Started

Prerequisites

Before you begin working with Move Agent Kit, ensure you have the following prerequisites installed:

  • Node.js 16.x or higher

  • Git

Installation

Using npm

npm i move-agent-kit

From Source

git clone https://github.com/Metamove/move-agent-kit
cd move-agent-kit
npm i

Quick Start Guide

1. Basic Setup

First, import the necessary modules:

2. Configure Your Environment

Create a configuration file .env in your project root:

3. Initialize the Client

4. Basic Operations Examples

Token Transfer

Read Blockchain Data

Working with Langchain

Next Steps

  • Explore the Core Components documentation for detailed information about each module

  • Check out the Examples section for more complex usage scenarios

  • Review the Security Considerations for best practices when using the kit

Troubleshooting Common Issues

Connection Issues

If you're experiencing connection issues:

  1. Verify your node URL is correct and accessible

  2. Check your network connectivity

  3. Ensure your node is synced

Transaction Failures

Common causes of transaction failures:

  1. Insufficient gas

  2. Invalid account permissions

  3. Network congestion

For more detailed troubleshooting, refer to the Troubleshooting section.

Last updated