UNPKG

@aptos-labs/aptos-client

Version:

Client package for accessing the Aptos network API.

27 lines (24 loc) 644 B
type AptosClientResponse<Res> = { status: number; statusText: string; data: Res; config?: any; request?: any; response?: any; headers?: any; }; type AptosClientRequest = { url: string; method: "GET" | "POST"; body?: any; params?: any; headers?: any; overrides?: any; }; /** * Used for JSON responses * @param requestOptions */ declare function aptosClient<Res>(requestOptions: AptosClientRequest): Promise<AptosClientResponse<Res>>; declare function jsonRequest<Res>(requestOptions: AptosClientRequest): Promise<AptosClientResponse<Res>>; export { aptosClient as default, jsonRequest };