UNPKG

@reservoir0x/relay-kit-ui

Version:

Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.

15 lines 482 B
import axios from 'axios'; const fetcher = async (url, headers) => { const response = await fetch(url, { headers }); if (!response.ok) { const errorData = await response.json(); throw new Error(errorData.message || 'Network error'); } return response.json(); }; export default fetcher; export const axiosPostFetcher = async (url, params) => { const { data } = await axios.post(url, params); return data; }; //# sourceMappingURL=fetcher.js.map