@msquared/etherbase-client
Version:
React hooks for interacting with Etherbase smart contracts
7 lines (6 loc) • 320 B
JavaScript
import { getConfig } from "./config";
export async function fetchEventDefinitionsData(sourceAddress, config) {
const { httpReaderUrl } = config || getConfig();
const response = await fetch(`${httpReaderUrl}/event-definitions?sourceAddress=${sourceAddress}`, { cache: "no-store" });
return response.json();
}