generated from wharfkit/api-client-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added get_health and get_account functions
- Loading branch information
Showing
7 changed files
with
1,932 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { APIClient, NameType, TimePointType, UInt64Type } from "@wharfkit/antelope"; | ||
import { SortType } from "../types"; | ||
|
||
export class HyperionV1APIClient { | ||
public history: HyperionV1HistoryAPIClient; | ||
|
||
constructor(private client: APIClient) { | ||
this.history = new HyperionV1HistoryAPIClient(client); | ||
} | ||
} | ||
|
||
class HyperionV1HistoryAPIClient { | ||
constructor(private client: APIClient) {} | ||
|
||
async get_actions(options: { | ||
account_name: NameType | ||
pos?: UInt64Type; | ||
offset?: UInt64Type; | ||
filter?: UInt64Type; | ||
sort?: SortType; | ||
after?: TimePointType; | ||
before?: TimePointType; | ||
parent?: number; | ||
}): Promise<any> { | ||
return this.client.call({ | ||
path: `/v1/history/get_actions`, | ||
method: 'POST', | ||
// responseType: GetActionsResponse, | ||
params: options | ||
}) | ||
} | ||
} |
Oops, something went wrong.