o3-dapi-ont
Version:
Ontology Plugin for o3-dapi
19 lines (15 loc) • 352 B
text/typescript
import { sendMessage } from '../../messaging';
import { Command } from '../../constants';
interface GetGasPriceInput {
network: string;
}
interface GasPrice {
gasPrice: number;
height: number;
}
export function getGasPrice(data: GetGasPriceInput): Promise<GasPrice> {
return sendMessage({
command: Command.getGasPrice,
data,
});
}