Category Offers
Category Offers allow buyers to bid on an entire domain category. Sellers can accept these offers, selling domains within the specified category.
Struct
pub struct CategoryOffer {
// Account tag
pub tag: Tag,
// The PDA nonce
pub nonce: u8,
// The total number of domains requested
pub nb_domains: u64,
// The SOL price per domain
pub sol_price: u64,
// The category of the offer
pub category: Pubkey,
// The owner of the offer
pub owner: Pubkey,
// Timestamp at which the offer was created
pub created_at: u64,
}Make Category Offer
The creation of a category offer is managed by the makeCategoryOffer function, which specifies the number of domains, the SOL price per domain, and the category.
Take (Accept) Category Offer
Taking/accepting a category offer is facilitated through the takeCategoryOffer function, allowing sellers to sell domains within the category at the specified price.
Last updated