Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: default priority fee per-chain #1006

Merged
merged 15 commits into from
Aug 10, 2023
Prev Previous commit
Next Next commit
chore: changeset
jxom committed Aug 10, 2023
commit e2cd44338d4c45186f9e4609d7505f05e262999d
17 changes: 17 additions & 0 deletions .changeset/sweet-lemons-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"viem": minor
---

Added `fees` to `chain` config that includes a `getDefaultPriorityFee` for setting a default priority fee for a chain.

```ts
import type { Chain } from 'viem'

export const example = {
// ...
fees: {
getDefaultPriorityFee: () => 1_000_000n, // 0.001 gwei
},
// ...
} as const satifies Chain
```