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

@0xsquid/sdk

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsquid/sdk

## Integration Tests

  • 1.0.0-beta.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24K
decreased by-26.99%
Maintainers
1
Weekly downloads
 
Created
Source

api-sdk

Integration Tests

  1. Run the backend API

  2. Run all tests

yarn integration

Run only specific tests

yarn integration:sendtrade
yarn integration:tradesend
yarn integration:tradesendtrade

Examples to interact with the Squid API - testnet supported

API endpoint documentation https://app.gitbook.com/o/bX90yMGYDBu3T1Hqg4EA/s/tXbXyuWIO2PwzNc5Dets/integrate-squid/api

  • install package dependancies "yarn install"
  • configuration in .env file (rename example to .env)
  • explore the /api/quotes & api/tokens endpoints for supported chains and tokens
  • run approval.ts to approve tokens before any transactions eg "yarn ts-node approve.ts"
  • run transaction.ts to query /api/transaction endpoint and send tokens cross chain ✨

Notes

Transactions are not sent via the api, the api is a helper endpoint only, transactions are submitted via the callers rpc endpoint.

FAQs

Package last updated on 24 Aug 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