@apricot-lend/sdk-ts
TypeScript icon, indicating that this package has built-in type declarations

0.18.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @apricot-lend/sdk-ts

Weekly Downloads

8

Version

0.18.3

License

none

Unpacked Size

926 kB

Total Files

94

Last publish

Collaborators

  • joedai
  • apricot-yhou