herald-exchange-offramp-sdk
v0.0.1
Published
Herald Exchange Offramp SDK Widget
Downloads
9
Readme
Herald Exchange Offramp SDK Widget
Herald Exchange Offramp SDK Widget is a simple component for React applications.
Installation
You can install Herald Exchange Offramp SDK Widget via npm:
npm install herald-exchange-offramp-sdkUsage
To use widget in your React application, follow these steps:
import { CryptoProvider, CryptoWidget } from "herald-exchange-offramp-sdk";Initialize the widget:
<CryptoProvider>
<CryptoWidget
apiKey={YOUR_API_KEY}
redirectUrl={REDIRECT_URL}
defaultTab="sell"
buyParameters={{ from_amount: "10", token_type: "USDC" }}
sellParameters={{
from_amount: "10",
from_currency: "TRX",
to_currency: "INR",
}}
// To Generate API Key Please Visit : https://herald.exchange
// Supported Token Types : ["USDT", "USDC", "ETH", "BNB", "MATIC", "SOL", "TRX", "BTC"]
/>
</CryptoProvider>;License
This project is licensed under the MIT License - see the LICENSE file for details.
