Retrieving List of Transactions
Monday, October 11, 2021 at 04:53amHi Team,
I am trying to fetch a list of transactions that should include the received transaction from other senders which requires the signing.
Unfortunately, I don't see the transactions which are sent by others with the below code,
var packages = _ossClient.PackageService.GetUpdatedPackagesWithinDateRange(status, pageRequest, DateTime.Now.AddDays(-90), DateTime.Now);
while (packages.HasNextPage())
{
packages = _ossClient.PackageService.GetPackages(status, packages.NextRequest);
}
return packages.Results;
I need your help in this case! Please let me know if you need further info.
Reply to: Retrieving List of Transactions
Tuesday, October 12, 2021 at 09:12amHi Srinivasan K K,
Behind the scene, the .GetPackages() function invokes the GET /api/packages API, which only returns the packages created by current API Key holder. In order to receive transactions from other senders, you will need to first get their respectively API Keys then build different OssClient objects and pull packages separately. You can find a sample code on how to do so in my previous reply.
Duo