UNPKG

@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.

21 lines (20 loc) 668 B
import { StarkErrorCode } from './common'; import { GatewayRequestType } from './gateway/gateway-request-type'; import { FeederGateway, Gateway } from './index'; declare class StarkExClient { static readonly StarkErrorCode: typeof StarkErrorCode; static readonly GatewayRequestType: typeof GatewayRequestType; gateway: Gateway; feederGateway: FeederGateway; constructor(config: StarkExClientConfig); } interface StarkExClientConfig { endpoint: string; certs?: StarkExCertsConfig; } declare type StarkExCertsConfig = { cert: string; key: string; ca?: string; }; export { StarkExClient, StarkExClientConfig, StarkExCertsConfig };