private async Task <bool> findSettingToken() { var utxos = await NeblioTransactionHelpers.GetAddressNFTsUtxos(Address); var txId = string.Empty; if (utxos != null) { foreach (var u in utxos) { if (u.Tokens?.ToList()?[0]?.TokenId == TokenId) { var info = await NeblioTransactionHelpers.TransactionInfoAsync(null, TransactionTypes.Neblio, u.Txid, Address); if (info != null) { // owner txs if (info.To[0] == info.From[0]) // to prevent another person will send setting token with wrong setting { if (info.VoutTokens[0].Metadata != null) { if (info.VoutTokens[0].Metadata.TryGetValue("ShopSettingToken", out string value)) { if (value == "true") { SettingToken = info.VoutTokens[0]; loadSettingsFromToken(); return(true); } } } } } } } } return(false); }