Class OfferPacket
- Namespace
- NArk.ArkadeIntents.Assets
- Assembly
- NArk.ArkadeIntents.dll
The Arkade offer as an IExtensionPacket (type OfferPacketType = 0x03), so it rides inside the funding transaction's Extension OP_RETURN — where the solver reads it to discover and fill the swap.
public sealed class OfferPacket : IExtensionPacket
- Inheritance
-
OfferPacket
- Implements
- Inherited Members
Properties
PacketType
public byte PacketType { get; }
Property Value
Methods
FromOffer(Offer)
Serialize offer and wrap it as a packet.
public static OfferPacket FromOffer(Offer offer)
Parameters
offerOffer
Returns
FromPayload(byte[])
Wrap an already-serialized offer payload (e.g. from Payload).
public static OfferPacket FromPayload(byte[] payload)
Parameters
payloadbyte[]
Returns
SerializePacketData()
public byte[] SerializePacketData()
Returns
- byte[]
ToOffer()
Parse the packet payload back into an Offer.
public Offer ToOffer()