Web
Initialization
Use SDK repo from this project https://github.com/kryptonim-sdk/web
To create an instance of KryptonimSdk, you can optionally pass an api argument.
The api argument determines the environment to use and can be either 'integration' or 'production'.
If no value is provided, 'integration' is used as the default.
Parameters
Parameter |
Type |
Optional |
Description |
Default Value |
|---|---|---|---|---|
|
string |
yes |
Environment to use ( |
|
Example usage
import { KryptonimSdk, ApiType } from "@kryptonim-sdk";
new KryptonimSdk().getRedirectFormUrl({
exchangeOptions: {
address: "0x3D7cc84710728EB39aA4d460418816C3FfD28954",
blockchain: "Polygon",
amount: "0.5",
currency: "EUR",
},
});
// with this configuration the the following URL will be generated:
// https://intg.kryptonim.com/redirect-form?amount=0.5¤cy=EUR&blockchain=Polygon&address=0x3D7cc84710728EB39aA4d460418816C3FfD28954
KryptonimSDK methods
getRedirectFormUrl
The getRedirectFormUrl method takes optional configuration object.
- Arguments:
config
Object: Query parameters