Skip to content

Commit 0cdfdb6

Browse files
committed
feat/client: add function for getepochparams
Signed-off-by: Chris Gianelloni <cgianelloni@cloudstruct.net>
1 parent 1af99f1 commit 0cdfdb6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/src/services/http.services.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
PaymentTransactionHashRequest,
44
TokenTransactionHashRequest,
55
} from "src/entities/common.entities";
6-
import { TransactionStatus } from "src/entities/koios.entities";
6+
import { EpochParams, TransactionStatus } from "src/entities/koios.entities";
77
import { GetRewards, GetCustomRewards } from "../entities/vm.entities";
88
import axios from "axios";
99

@@ -75,6 +75,11 @@ export async function getBlock(): Promise<{ block_no: number }> {
7575
return { block_no: 0 };
7676
}
7777

78+
export async function getEpochParams(): Promise<EpochParams[]> {
79+
const response = await axios.get(`/getepochparams`);
80+
return response.data;
81+
}
82+
7883
export async function getNetworkId(): Promise<{ network: NetworkId }> {
7984
const response = await axios.get(`/features`);
8085
if (response && response.data) {

0 commit comments

Comments
 (0)