3.0.0-taiko.12 • Published 8 months ago
@dodoex/api v3.0.0-taiko.12
API
DODO Service API
HOW TO USE
import { SwapWidgetApi } from '@dodoex/api';
import { SwapWidget } from '@dodoex/widgets';
const dodoService = new SwapWidgetApi();
const apikey = ""
const projectId = "";
export default function Swap() {
React.useEffect(() => {
if (projectId && apiKey) {
const dodoService = new SwapWidgetApi();
dodoService
.getConfigSwapWidgetProps(projectId, apiKey)
.then(({ swapWidgetProps }) => {
setConfig(swapWidgetProps);
});
}
}, [projectId, apiKey]);
return <SwapWidget {...config} apikey={apiKey} />;
}
3.0.0-taiko.16
8 months ago
3.0.0-taiko.15
8 months ago
3.0.0-taiko.14
8 months ago
3.0.0-taiko.13
8 months ago
3.0.0-taiko.12
8 months ago
3.0.0-taiko.11
8 months ago
3.0.0-taiko.10
9 months ago
3.0.0-taiko.9
9 months ago
3.0.0-taiko.7
9 months ago
3.0.0-taiko.8
9 months ago
3.0.0-taiko.5
9 months ago
3.0.0-taiko.6
9 months ago
3.0.0-taiko.1
9 months ago
3.0.0-taiko.3
9 months ago
3.0.0-taiko.2
9 months ago
3.0.0-beta.1
1 year ago
3.0.0-beta.0
1 year ago
3.0.0-beta.3
11 months ago
3.0.0-beta.2
1 year ago
3.0.0-beta.4
10 months ago
3.0.0-taiko.4
9 months ago
3.0.0-bartio.0
9 months ago
0.0.1
1 year ago