Table of Contents

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

byte

Methods

FromOffer(Offer)

Serialize offer and wrap it as a packet.

public static OfferPacket FromOffer(Offer offer)

Parameters

offer Offer

Returns

OfferPacket

FromPayload(byte[])

Wrap an already-serialized offer payload (e.g. from Payload).

public static OfferPacket FromPayload(byte[] payload)

Parameters

payload byte[]

Returns

OfferPacket

SerializePacketData()

public byte[] SerializePacketData()

Returns

byte[]

ToOffer()

Parse the packet payload back into an Offer.

public Offer ToOffer()

Returns

Offer