Closed napangelo closed 1 year ago
Have you tried using the async methods? RequestAirdropAsync
Yeah that's the solution. Managed to recreate the issue and that was the fix. Any time the application freezes like that and can't be closed out is a result of a thread block in the STA
`
private async void OnTestClicked(object sender, EventArgs e)
{
Wallet fromWallet = new Wallet(WordCount.TwentyFour, WordList.English);
IRpcClient rpcClient = ClientFactory.GetClient(Cluster.DevNet);
var transactionHash = await rpcClient.RequestAirdropAsync(fromWallet.Account.PublicKey, 100_000_000);
Debug.WriteLine($"TxHash: {transactionHash.Result}");
}
`
Now works! Thanks very much!
Hi,
I tried importing Solnet into my MAUI Mobile project.
This is the code:
On "RequestAirdrop" the Android app crashes.
This is the output:
can someone help me?
Thanks Angelo