@starkware-industries/starkex-js
Version:
`starkex-js` is a JavaScript wrapper around the [StarkEx API](https://starkware.co/starkex/api/) that can be used in both NodeJS and Browser environments.
13 lines (12 loc) • 376 B
TypeScript
import { StarkExCertsConfig } from '../lib';
import { AxiosResponse, Method } from 'axios';
/**
* helper method to perform an api requests
*/
export declare const apiRequest: ({ path, method, data, headers, certs }: {
path: string;
method?: Method;
data?: any;
headers?: Record<string, string>;
certs?: StarkExCertsConfig;
}) => Promise<AxiosResponse>;