Skip to content

Commit a6a374c

Browse files
docs: Clarify transactionOrigin field
1 parent a9f5d76 commit a6a374c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/snaps-sdk/src/types/handlers/transaction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ export type Transaction = EIP1559Transaction | LegacyTransaction;
9191
* @param args.chainId - The CAIP-2 {@link CaipChainId} of the network the
9292
* transaction is being submitted to.
9393
* @param args.transactionOrigin - The origin of the transaction. This is the
94-
* URL of the website that submitted the transaction. This is only available if
95-
* the Snap has enabled the `allowTransactionOrigin` option in the
96-
* `endowment:transaction-insight` permission.
94+
* URL of the website that submitted the transaction or 'metamask'.
95+
* This is only available if the Snap has enabled the `allowTransactionOrigin`
96+
* option in the `endowment:transaction-insight` permission.
9797
* @returns An object containing insights about the transaction. See
9898
* {@link OnTransactionResponse}. Can also return `null` if no insights are
9999
* available.

0 commit comments

Comments
 (0)