This repository contains usage examples for the library @safeblock/exchange-sdk
You can try all the examples yourself by launching a local server.
If you do not have Node.js installed on your device, install it before proceeding with the steps below.
- Clone the repository
git clone https://github.com/safeblock-dev/exchange-sdk-examples
- Install dependencies
npm install
- Start the local server
npm run dev
After that, a URL will appear in your console. Open it in your browser to try out the different examples.
A simple example of building an exchange route and performing the exchange itself. Uses a minimal number of elements and dependencies.
This list will be updated over time.
You can copy and paste the MIT license summary from below.
MIT License
Copyright (c) 2022-2025 SafeBlock
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.