UNPKG

@renegade-fi/core

Version:
11 lines 480 B
import { GET_ORDER_BY_ID_ROUTE } from "../constants.js"; import { getRelayerWithAuth } from "../utils/http.js"; import { getWalletId } from "./getWalletId.js"; export async function getOrder(config, parameters) { const { id } = parameters; const { getBaseUrl } = config; const walletId = getWalletId(config); const res = await getRelayerWithAuth(config, getBaseUrl(GET_ORDER_BY_ID_ROUTE(walletId, id))); return res.order; } //# sourceMappingURL=getOrder.js.map