npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aptin/interface-sdk-js

v1.1.0

Published

Aptin Finance's lending function in js

Readme

Aptin interface-sdk-js

Aptin lending service interface on Aptos networks.

Installation

npm i @aptin/interface-sdk-js

or

yarn add @aptin/interface-sdk-js

Quickstart

Here is a demo of the most important interface services

import { LendingService } from '@aptin/interface-sdk-js'

//The first parameter is the user's wallet address
//It is better to use your own endpoints for the second parameter
const lend = new LendingService("0x3d231debf7a43e1334228c30955828226f91570f799a46cbda8bc6109dabc01c");
 
//Get the current user's lending data
//Return user supply and borrow data
const assets = await lend.getAssets(); 

//Get information on all loan pools
//Return pool supply and lending data, e.g. total apy
const poolInfos = await lend.getPoolInfos();

Submit and sign transaction

Supply Transaction

//Get supply payload
//Parameters are token address and supply amount
//Return TransactionPayload
const supplyPayload =await lend.supply("0x1::aptos_coin::AptosCoin",1.5); 

//The project then calls the wallet directly to sign the transaction
//Official wallet for example:
const txnHash = await window.aptos.signAndSubmitTransaction(supplyPayload);

Withdraw Transaction

const withdrawPayload =await lend.withdraw("0x1::aptos_coin::AptosCoin",1.5)

Borrow Transaction

const borrowPayload =await lend.borrow("0x1::aptos_coin::AptosCoin",1.5) 

Repay Transaction

const repayPayload =await lend.repay("0x1::aptos_coin::AptosCoin",1.5)

Supported coin list

| name | symbol | address | | ----------------------- | ------ | --------------------------------------------------------------------------------- | | APTOS | APT | 0x1::aptos_coin::AptosCoin | | Wrapped Ether(Wormhole) | WETH | 0xcc8a89c8dce9693d354449f1f73e60e14e347417854f029db5bc8e7454008abb::coin::T | | USD Coin(Wormhole) | USDC | 0x5e156f1207d0ebfa19a9eeff00d62a282278fb8719f4fab3a586a0a2c0fffbea::coin::T | | Wrapped Ether(LayerZero)| zWETH | 0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::WETH | | USD Coin(LayerZero) | zUSDC | 0xf22bede237a07e121b56d91a491eb7bcdfd1f5907926a9e58338f964a01b17fa::asset::USDC | | Tortuga Staked Aptos | tAPT | 0x84d7aeef42d38a5ffc3ccef853e1b82e4958659d16a7de736a29c55fbbeb0114::staked_aptos_coin::StakedAptosCoin |