widgetQueryType property
WidgetQueryType?
get
widgetQueryType
The type of the current widgetQuery or sharedWidgetQuery, if any.
Use pattern matching to read the type-specific data:
switch (ctx.widgetQueryType) {
case WidgetQueryTypeSignData(:final wallet, :final signData):
// Verify signData for wallet.address
case WidgetQueryTypeSentTransaction(:final msgHash):
// Look up the transaction by msgHash
case WidgetQueryTypeData(:final walletCard):
// Plain data, optionally with the user's TON wallet card
case null:
break;
}
Implementation
WidgetQueryType? get widgetQueryType =>
widgetQuery?.type ?? sharedWidgetQuery?.type;