Hi ,
I am using Moralis SDK in Unity using C# , and I am facing an issue …wish anyone can help me toward the direction of fixing it .
The error occurred exactly at getting the Nonce .
There is a Moralis function , which is ( Moralis.Web3Api.Account.GetTransaction ) .
I call it like that :
TransactionCollection transactions = await Moralis.Web3Api.Account.GetTransactions(ethAddress.ToLower(), LeaderBoardContractData.requiredChain);
Where ethAddress value is : 0xf598…319ac1
And the value of LeaderBoardContractData.requiredChain is 0x61 ( it comes from an enum I created )
The output of Moralis.Web3Api.Account.GetTransaction at this case gives the output as per screenshot ( in the green border box ) ,where result is an empty array .
The nonce should be extracted from the result , as follows : int currentNonce = int.Parse(transCollection.result[0].nonce);
So since result is an empty array , an error is thrown …I want to know why it returns an empty array .