Skip to content

Commit

Permalink
test dsc
Browse files Browse the repository at this point in the history
  • Loading branch information
GTC6244 committed Nov 28, 2024
1 parent 3cece32 commit 2155ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SharedService/Services/ChainData/BlockScout/RpcCalls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public async Task<BlockScoutResponse> GetTxListAsync( string rpc_api_url, strin

var client = new HttpClient();
try {
var response = await client.GetAsync( rpc_api_url + "?module=account&action=txlist&sort=desc&&offset=300&startblock=" + blockStart.ToString() + "&endBlock=" + blockEnd.ToString() + "&address=" + address);
var response = await client.GetAsync( rpc_api_url + "?module=account&action=txlist&sort=dsc&&offset=300&startblock=" + blockStart.ToString() + "&endBlock=" + blockEnd.ToString() + "&address=" + address);
var responseString = await response.Content.ReadAsStringAsync();
if ( string.IsNullOrWhiteSpace(responseString)) {
Console.WriteLine("No data returned from BlockScout" );
Expand All @@ -26,7 +26,7 @@ public async Task<BlockScoutResponse> GetTxListAsync( string rpc_api_url, strin
catch (Exception ex) {
Console.WriteLine("Error: " + ex.Message);
}

return blockScoutResponse;
}
}

0 comments on commit 2155ce7

Please sign in to comment.