Skip to content

feat: customize mortality#741

Merged
sinzii merged 1 commit intomainfrom
tvu-customize-era
Mar 15, 2026
Merged

feat: customize mortality#741
sinzii merged 1 commit intomainfrom
tvu-customize-era

Conversation

@sinzii
Copy link
Member

@sinzii sinzii commented Mar 15, 2026

This PR allows users to customize transaction mortality via a new mortality option in PayloadOptions — supporting immortal transactions and custom mortal periods

// Immortal transaction (never expires)
await client.tx.balances
  .transferKeepAlive(bob.address, amount)
  .signAndSend(alice, { mortality: { type: 'Immortal' } });

// Custom mortal period
await client.tx.balances
  .transferKeepAlive(bob.address, amount)
  .signAndSend(alice, { mortality: { type: 'Mortal', period: 128 } });

Huge thanks @antlerminator for reporting issues and suggesting this new feature!

@sinzii sinzii merged commit 255a79a into main Mar 15, 2026
4 of 5 checks passed
@sinzii sinzii deleted the tvu-customize-era branch March 15, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant