metablink-sdk
v0.0.7
Published
Generate referral links for token swaps and earn rewards by sharing with friends.
Downloads
6
Readme
Metablink Swap API
This package provides a simple interface to create links. It allows you to generate a URL that can be used to perform currency swaps using the Metablink platform.
Installation
To install the package, you can use npm or yarn:
npm install metablink-sdk
Usage
const { Currency, createSwapLink } = require("metablink-sdk");
const link = createSwapLink("your-wallet-address", Currency.SOL, "token", 0.01);
console.log(link);