Skip to content

feat!: add Wallet::send for native anti-fee-sniping#126

Merged
storopoli merged 1 commit into
alpenlabs:mainfrom
bc1cindy:send
Jun 30, 2026
Merged

feat!: add Wallet::send for native anti-fee-sniping#126
storopoli merged 1 commit into
alpenlabs:mainfrom
bc1cindy:send

Conversation

@bc1cindy

Copy link
Copy Markdown
Contributor

adds Wallet::send (Core's send RPC) for the v29/v30 clients.

wallet_create_funded_psbt can't produce Core's anti-fee-sniping nLockTime (its funding path always sets coin_control.m_locktime); send does. With add_to_wallet=false it returns the signed PSBT without broadcasting.

tested: regtest (nLockTime in [tip-100, tip], finalizable + mempool-accepted) and SendOptions serialization.

BREAKING: adds a required method to the public Wallet trait

closes #125

@bc1cindy bc1cindy marked this pull request as ready for review June 25, 2026 15:58
Comment thread src/types.rs Outdated
Comment thread src/client/v30.rs Outdated
Comment thread src/client/v29.rs Outdated
Comment thread src/client/v30.rs Outdated
Comment thread src/client/v29.rs Outdated
Comment thread src/traits.rs Outdated
Comment thread src/client/v29.rs
@storopoli

Copy link
Copy Markdown
Member

FYI once this is merged we'll tag a 0.15.0 version in crates.io

@bc1cindy

Copy link
Copy Markdown
Contributor Author

FYI once this is merged we'll tag a 0.15.0 version in crates.io

thank you

@storopoli storopoli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor doc nit

Comment thread src/traits.rs Outdated
`wallet_create_funded_psbt` can't anti-fee-snipe (its funding path pins
`m_locktime`); `send` does. `add_to_wallet=false` returns the signed PSBT.

BREAKING: new required `Wallet` trait method.

@storopoli storopoli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK c60942c

@storopoli storopoli merged commit 1c2fcf0 into alpenlabs:main Jun 30, 2026
14 checks passed
@storopoli

Copy link
Copy Markdown
Member

published in 0.15.0 in crates.io

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.

Add Wallet::send (Bitcoin Core's send RPC)

2 participants