Skip to main content

parse

Function parse 

Source
pub fn parse(
    ctx: &mut SpendContext,
    spend_bundle: &SpendBundle,
) -> Result<Offer>
Expand description

Parse a decoded SpendBundle into a spendable Offer within ctx.

The offer’s parsed pointers (offered NFT metadata) are valid only for ctx’s allocator, so a build that reconstructs offered assets must use this SAME ctx.