1.1.0 • Published 5 months ago
flex-swap-sdk v1.1.0
Project Name
Description
This project utilizes the FlexSDK to interact with a custom network. It demonstrates how to initialize the SDK, retrieve account coin amounts, and more.
Prerequisites
- Node.js installed on your machine
- A valid private key for authentication
Setup
Clone the repository:
git clone <repository-url> cd <repository-directory>
Install dependencies:
npm install
Configure your environment:
- Replace
privateKey
insrc/quickstart.ts
with your actual private key. - Ensure that
TESTNET_FULLNODE
andTESTNET_INDEXER
are set to the correct endpoints for your custom network.
- Replace
Usage
To run the script and retrieve the account coin amount, execute the following command:
npx ts-node src/quickstart.ts