> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aurumsdk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ethers v6

> Use the ethers v6 library with Aurum

### Provider

```typescript theme={null}
import { BrowserProvider } from 'ethers';
import { aurum } from './aurum';

const provider = new BrowserProvider(aurum.rpcProvider);
```

### Sign a Message

```typescript theme={null}
const signer = await provider.getSigner();
const signature = await signer.signMessage('Hello!');
```

### Send a Transaction

```typescript theme={null}
import { parseEther } from 'ethers';

const signer = await provider.getSigner();
const tx = await signer.sendTransaction({ 
  to: '0x...',
  value: parseEther('0.01'),
});

const receipt = await tx.wait();
```

### Read Contract Data

```typescript theme={null}
import { Contract } from 'ethers';

const erc20 = new Contract(tokenAddress, erc20Abi, provider);
const balance = await erc20.balanceOf(walletAddress);
```

### Write to a Contract

```typescript theme={null}
const signer = await provider.getSigner();
const erc20 = new Contract(tokenAddress, erc20Abi, signer);

const tx = await erc20.transfer(recipient, amount);
await tx.wait();
```
