@abstraxn/relayer
Version:
Abstraxn Relayer package for handling gas-less transactions, facilitating smart contract interactions, and relaying user transactions efficiently.
14 lines (13 loc) • 322 B
TypeScript
export declare enum HttpMethod {
Get = "get",
Post = "post",
Delete = "delete"
}
interface HttpRequest {
url: string;
method: HttpMethod;
body?: Record<string, any>;
headers?: object;
}
export declare function sendRequest<T>({ url, method, body, headers }: HttpRequest): Promise<T>;
export {};