diff --git a/playground/src/App.tsx b/playground/src/App.tsx index 49ab229..9dbbb2c 100644 --- a/playground/src/App.tsx +++ b/playground/src/App.tsx @@ -45,6 +45,7 @@ export function App() { + @@ -309,6 +310,33 @@ function AuthorizeKey() { ) } +function RevokeKey() { + const [revoked, setRevoked] = useState(false) + return ( +
+

experimental_revokeKey

+
{ + e.preventDefault() + const formData = new FormData(e.target as HTMLFormElement) + const publicKey = formData.get('publicKey') as `0x${string}` + + setRevoked(false) + await porto.provider.request({ + method: 'experimental_revokeKey', + params: [{ publicKey }], + }) + setRevoked(true) + }} + > + + +
+ {revoked &&

Key revoked.

} +
+ ) +} + function GetKeys() { const [result, setResult] = useState(null)