Use the viem library with Aurum
import { createWalletClient, custom } from 'viem'; import { aurum } from './aurum'; const walletClient = createWalletClient({ transport: custom(aurum.rpcProvider), });
aurum.rpcProvider
const [address] = await walletClient.getAddresses(); const signature = await walletClient.signMessage({ account: address, message: 'Hello!' });
const hash = await walletClient.sendTransaction({ account: address, to: '0x...', value: parseEther('0.01'), });