Module: BSV::Wallet

Defined in:
lib/bsv/wallet_interface.rb,
lib/bsv/wallet_interface/wire.rb,
lib/bsv/wallet_interface/version.rb,
lib/bsv/wallet_interface/fee_model.rb,
lib/bsv/wallet_interface/interface.rb,
lib/bsv/wallet_interface/file_store.rb,
lib/bsv/wallet_interface/substrates.rb,
lib/bsv/wallet_interface/validators.rb,
lib/bsv/wallet_interface/key_deriver.rb,
lib/bsv/wallet_interface/proof_store.rb,
lib/bsv/wallet_interface/wire/reader.rb,
lib/bsv/wallet_interface/wire/writer.rb,
lib/bsv/wallet_interface/inline_queue.rb,
lib/bsv/wallet_interface/memory_store.rb,
lib/bsv/wallet_interface/proto_wallet.rb,
lib/bsv/wallet_interface/coin_selector.rb,
lib/bsv/wallet_interface/fee_estimator.rb,
lib/bsv/wallet_interface/wallet_client.rb,
lib/bsv/wallet_interface/chain_provider.rb,
lib/bsv/wallet_interface/broadcast_queue.rb,
lib/bsv/wallet_interface/storage_adapter.rb,
lib/bsv/wallet_interface/wire/serializer.rb,
lib/bsv/wallet_interface/change_generator.rb,
lib/bsv/wallet_interface/local_proof_store.rb,
lib/bsv/wallet_interface/errors/wallet_error.rb,
lib/bsv/wallet_interface/null_chain_provider.rb,
lib/bsv/wallet_interface/certificate_signature.rb,
lib/bsv/wallet_interface/whats_on_chain_provider.rb,
lib/bsv/wallet_interface/errors/invalid_hmac_error.rb,
lib/bsv/wallet_interface/substrates/http_wallet_json.rb,
lib/bsv/wallet_interface/substrates/http_wallet_wire.rb,
lib/bsv/wallet_interface/errors/invalid_parameter_error.rb,
lib/bsv/wallet_interface/errors/invalid_signature_error.rb,
lib/bsv/wallet_interface/errors/unsupported_action_error.rb,
lib/bsv/wallet_interface/substrates/wallet_wire_transceiver.rb

Defined Under Namespace

Modules: BroadcastQueue, CertificateSignature, ChainProvider, Interface, ProofStore, StorageAdapter, Substrates, Validators, Wire Classes: ChangeGenerator, CoinSelector, FeeEstimator, FileStore, InlineQueue, InvalidHmacError, InvalidParameterError, InvalidSignatureError, KeyDeriver, LocalProofStore, MemoryStore, NullChainProvider, ProtoWallet, UnsupportedActionError, WalletClient, WalletError, WhatsOnChainProvider

Constant Summary collapse

VERSION =
'0.8.0'
FeeModel =

Backward-compatible alias for FeeEstimator.

All fee estimation is consolidated in FeeEstimator, which provides both pre-construction estimation (estimate) and post-construction delegation (compute / estimate_for_tx). This alias ensures existing code referencing FeeModel continues to work.

Examples:

model = BSV::Wallet::FeeModel.new(sats_per_kb: 50)
model.estimate(p2pkh_inputs: 2, p2pkh_outputs: 3)
model.compute(transaction)
model.dust_floor
FeeEstimator