You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -107,3 +110,19 @@ export function createSessionKey(options: CreateSessionKeyOptions) {
107
110
signature: "0x",
108
111
});
109
112
}
113
+
114
+
/**
115
+
* Checks if the `createSessionKey` method is supported by the given contract.
116
+
* @param availableSelectors An array of 4byte function selectors of the contract. You can get this in various ways, such as using "whatsabi" or if you have the ABI of the contract available you can use it to generate the selectors.
117
+
* @returns A boolean indicating if the `createSessionKey` method is supported.
118
+
* @extension ERC7702
119
+
* @example
120
+
* ```ts
121
+
* import { isCreateSessionKeySupported } from "thirdweb/extensions/erc7702/account";
0 commit comments