Skip to main content

useSendEth Hook

The useSendEth hook allows you to send native ETH on any supported chain through the Crefy Connect API.

Usage

Hook Returns

SendEthParams

SendEthResponse

Examples

Basic Send Transaction

With Error Handling

Display Transaction Hash

Transaction Speed Modes

Important Notes

Authentication Required: The user must be authenticated via CrefyConnectProvider before sending transactions. The hook will use the authenticated user’s wallet.
Value Format: The value parameter should be a string representing the amount in ETH (e.g., “0.1” for 0.1 ETH, not “100000000000000000”).
Chain Support: Currently supports “sepolia” and “mainnet”. More chains coming soon!