Package org.bitcoinj.core
Class FeeFilterMessage
java.lang.Object
org.bitcoinj.core.BaseMessage
org.bitcoinj.core.FeeFilterMessage
- All Implemented Interfaces:
Message
Represents a "feefilter" message on the P2P network, which instructs a peer to filter transaction invs for
transactions that fall below the feerate provided.
See BIP133 for details.
Instances of this class are immutable.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidbitcoinSerializeToStream(OutputStream stream) Serializes this message to the provided stream.feeRate()Gets the fee rate.Deprecated.static FeeFilterMessageCreate a fee filter message with a given fee rate.static FeeFilterMessageread(ByteBuffer payload) Deserialize this message from a given payload.toString()Methods inherited from class org.bitcoinj.core.BaseMessage
messageSize, serializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bitcoinj.core.Message
bitcoinSerialize, getMessageSize, unsafeBitcoinSerialize
-
Method Details
-
of
Create a fee filter message with a given fee rate.- Parameters:
feeRate- fee rate- Returns:
- fee filter message
-
read
public static FeeFilterMessage read(ByteBuffer payload) throws BufferUnderflowException, ProtocolException Deserialize this message from a given payload.- Parameters:
payload- payload to deserialize from- Returns:
- read message
- Throws:
BufferUnderflowException- if the read message extends beyond the remaining bytes of the payloadProtocolException
-
bitcoinSerializeToStream
Description copied from class:BaseMessageSerializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().- Specified by:
bitcoinSerializeToStreamin classBaseMessage- Throws:
IOException
-
feeRate
Gets the fee rate.- Returns:
- fee rate
-
getFeeRate
Deprecated.usefeeRate() -
toString
-
feeRate()