UseEvm Hook
The useEvm hook is part of the Zky Toolkit, providing Ethereum (EVM) interaction capabilities.
Overview
The useEvm
hook offers methods for performing specific actions on a connected Ethereum-compatible wallet. The hook internally manages the connection details and required parameters for signing ransactions on supported EVM networks.
Available Methods
The useEvm
hook returns an object with the following methods:
sendTransfer
: Sends a native EVM token transfer to a specified recipient. (Coming soon)signTransaction
: Signs an EVM transaction without submitting it, returning the signed transaction.
Method Details
sendTransfer
Input Parameters:
chainId
(required): The ID of the network where the transfer will be executed.
Output: Returns a signed Transaction
Example:
Last updated