Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mercurial-finance/apricot-sdk

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mercurial-finance/apricot-sdk

TS SDK for Apricot on Solana

  • 0.17.6
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Apricot's Typescript SDK

For building transactions, see src/utils/TransactionBuilder.ts

For directly firing transactions, see src/utils/ActionWrapper.ts and src/tools/doTrans.ts

setup

yarn install
yarn build

doTrans.js script

After setup, you can invoke the tool scripts, for example:

# first deposit uses "new-and-deposit"
node dist/tools/doTrans.ts public your_wallet_key.json new-and-deposit SOL 1
# second deposit onwards uses just "deposit"
node dist/tools/doTrans.ts public your_wallet_key.json deposit USDC 10

Similar commands for withdraw, borrow, and repay also exist. Please refer to doTrans.ts for details.

Keywords

FAQs

Package last updated on 17 Nov 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc