diff --git a/src/vector/ogmios-provider.ts b/src/vector/ogmios-provider.ts index aee95b9..022969f 100644 --- a/src/vector/ogmios-provider.ts +++ b/src/vector/ogmios-provider.ts @@ -173,6 +173,14 @@ export class OgmiosProvider implements Provider { ); } + async getNetworkTip(): Promise<{ slot: number; hash: string }> { + const result = await this.rpc('queryNetwork/tip'); + return { + slot: result.slot ?? 0, + hash: result.id ?? '', + }; + } + async getUtxosByOutRef(outRefs: OutRef[]): Promise { const outputReferences = outRefs.map((ref) => ({ transaction: { id: ref.txHash },