pub struct WalletBroadcastResult {
pub accepted: bool,
pub transaction_id: Option<String>,
pub rejection: Option<String>,
}Expand description
control.wallet.broadcast — the outcome of pushing an already-signed bundle.
§A rejection is a VALUE; an unreachable network is an ERROR
A mempool that looked at the bundle and said no is a successful call with accepted: false and
a rejection reason — the bundle was seen and judged. Failing to REACH a
mempool is a catalogued error instead. Collapsing the two turns “your wifi dropped” into “your
mint failed”, and the remedies are opposite: retry the same bundle, versus build a new one.
§Accepted is not confirmed
accepted: true says the mempool took the bundle. It is not evidence that anything reached a
block, and a caller must never record an outcome from it — only a buried confirmation of the
created coin is evidence.
Fields§
§accepted: boolWhether the network accepted the bundle into its mempool.
transaction_id: Option<String>The transaction id (the spend bundle’s name), lowercase 64-hex, when accepted.
rejection: Option<String>Why the mempool refused, when it refused. null on acceptance.
Trait Implementations§
Source§impl Clone for WalletBroadcastResult
impl Clone for WalletBroadcastResult
Source§fn clone(&self) -> WalletBroadcastResult
fn clone(&self) -> WalletBroadcastResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more