0xsquid / examples

Example integrations with the Squid SDK/API and Contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Squid examples

Repository of examples integrating the Squid API, SDK and Widget ✨💜

Instructions

Requires node and npm to be installed

Navigate to the folder you want to try cd V2/sdk/swapArbitrumEthToBaseUsdc

Install packages yarn install

Copy the .env.example to a file named .env in the same directory, fill in your values. These will not be committed, since .env is in the .gitignore file.

Run index.js yarn start

How to approach this

Get straight into code! Run the crossChainSwap example, understand it, and then start extending. Send some tokens to the Cosmos, buy an NFT across chains, and stake across chains.

Check out our docs for a deeper look, and some hidden features.

V1 vs V2

V1 is the original Squid API

  • EVM & Cosmos support
  • Planned to be deprecated

V2

  • EVM only (Cosmos coming soon)
  • Where everything we build will be going from here!

Where to find us

If you'd like support, or a private walkthrough, we're happy to jump on a chat and help you through anything:)

Find us here: Discord Twitter

About

Example integrations with the Squid SDK/API and Contracts

License:Apache License 2.0


Languages

Language:TypeScript 98.8%Language:JavaScript 0.8%Language:Solidity 0.3%