File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3
3
PaymentTransactionHashRequest ,
4
4
TokenTransactionHashRequest ,
5
5
} from "src/entities/common.entities" ;
6
- import { TransactionStatus } from "src/entities/koios.entities" ;
6
+ import { EpochParams , TransactionStatus } from "src/entities/koios.entities" ;
7
7
import { GetRewards , GetCustomRewards } from "../entities/vm.entities" ;
8
8
import axios from "axios" ;
9
9
@@ -75,6 +75,11 @@ export async function getBlock(): Promise<{ block_no: number }> {
75
75
return { block_no : 0 } ;
76
76
}
77
77
78
+ export async function getEpochParams ( ) : Promise < EpochParams [ ] > {
79
+ const response = await axios . get ( `/getepochparams` ) ;
80
+ return response . data ;
81
+ }
82
+
78
83
export async function getNetworkId ( ) : Promise < { network : NetworkId } > {
79
84
const response = await axios . get ( `/features` ) ;
80
85
if ( response && response . data ) {
You can’t perform that action at this time.
0 commit comments