diff --git a/packages/sdk/src/modules/JsonRpcDatasource.ts b/packages/sdk/src/modules/JsonRpcDatasource.ts index 1337050d..0ff96888 100644 --- a/packages/sdk/src/modules/JsonRpcDatasource.ts +++ b/packages/sdk/src/modules/JsonRpcDatasource.ts @@ -56,7 +56,14 @@ export default class JsonRpcDatasource extends BaseDatasource { } async getInscriptions({ outpoint, decodeMetadata }: GetInscriptionsOptions) { - const inscriptions = await rpc[this.network].call("GetInscriptions", { outpoint }, rpc.id) + const { inscriptions } = await rpc[this.network].call<{ + inscriptions: Inscription[] + pagination: { + limit: number + prev: string | null + next: string | null + } + }>("GetInscriptions", { outpoint }, rpc.id) return decodeMetadata ? DatasourceUtility.transformInscriptions(inscriptions) : inscriptions }