exchange-crypto-sdk-test
v7.0.2
Published
Example Exchange SDK.
Readme
Exchange-Crypto-Widget
Exchange-Crypto-Widget is a simple component for React applications.
Installation
You can install Exchange-Crypto-Widget via npm:
npm install exchange-crypto-sdk-testUsage
To use widget in your React application, follow these steps:
import { CryptoProvider, CryptoWidget } from "exchange-crypto-sdk-test";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.
