import { ThirdwebNftMedia, useAddress, useContract, useOwnedNFTs } from '@thirdweb-dev/react'; import styles from '../styles/Home.module.css' import sendEther from '../utils/common'; import React, { useState } from 'react'; export default function Faucet() { const address = useAddress(); const [transactionResult, setTransactionResult] = useState(null); const handleSendEther = async () => { console.log("Start faucet") try { const result = await sendEther(address); setTransactionResult(result); console.log("Success!") } catch (error) { console.error('Error sending Ether:', error); } }; return (

RAX faucet

Get RAX and explore CHUND rollapp!

{transactionResult &&

Result: {transactionResult}

}
); }