Fulfill an order that offers ether (the native token for the given chain) or ERC20 to ERC721/ERC1155 or ERC721/ERC1155 to ERC20. An arbitrary number of "additional recipients" may also be supplied which will each receive native tokens from the fulfiller as consideration.
function fulfillBasicOrder(struct BasicOrderParameters parameters)
external payable returns (bool fulfilled)
Name
Type
Description
parameters
BasicOrderParameters
Additional information on the fulfilled order. Note that the offerer must first approve this contract (or their preferred conduit if indicated by the order) for their offered ERC20/ERC721/ERC1155 token to be transferred.
Name
Type
Description
fulfilled
bool
A boolean indicating whether the order has been successfully fulfilled.
fulfillOrder
Fulfill an order with an arbitrary number of items for offer and consideration. Note that this function does not support criteria-based orders or partial filling of orders (though filling the remainder of a partially-filled order is supported).
function fulfillOrder(struct Order order, bytes32 fulfillerConduitKey)
external payable returns (bool fulfilled)
Name
Type
Description
order
Order
The order to fulfill. Note that both the offerer and the fulfiller must first approve this contract (or the corresponding conduit if indicated) to transfer any relevant tokens on their behalf and that contracts must implement onERC1155Received to receive ERC1155 tokens as consideration.
fulfillerConduitKey
bytes32
A bytes32 value indicating what conduit, if any, to source the fulfiller's token approvals from. The zero hash signifies that no conduit should be used, with direct approvals set on Seaport.
Name
Type
Description
fulfilled
bool
A boolean indicating whether the order has been successfully fulfilled.
fulfillAdvancedOrder
Fill an order, fully or partially, with an arbitrary number of items for offer and consideration alongside criteria resolvers containing specific token identifiers and associated proofs.
The order to fulfill along with the fraction of the order to attempt to fill. Note that both the offerer and the fulfiller must first approve this contract (or their preferred conduit if indicated by the order) to transfer any relevant tokens on their behalf and that contracts must implement onERC1155Received to receive ERC1155 tokens as consideration. Also note that all offer and consideration components must have no remainder after multiplication of the respective amount with the supplied fraction for the partial fill to be considered valid.
criteriaResolvers
CriteriaResolver[]
An array where each element contains a reference to a specific offer or consideration, a token identifier, and a proof that the supplied token identifier is contained in the merkle root held by the item in question's criteria element. Note that an empty criteria indicates that any (transferable) token identifier on the token in question is valid and that no associated proof needs to be supplied.
fulfillerConduitKey
bytes32
A bytes32 value indicating what conduit, if any, to source the fulfiller's token approvals from. The zero hash signifies that no conduit should be used, with direct approvals set on Seaport.
recipient
address
The intended recipient for all received items, with address(0) indicating that the caller should receive the items.
Name
Type
Description
fulfilled
bool
A boolean indicating whether the order has been successfully fulfilled.
fulfillAvailableOrders
Attempt to fill a group of orders, each with an arbitrary number of items for offer and consideration. Any order that is not currently active, has already been fully filled, or has been cancelled will be omitted. Remaining offer and consideration items will then be aggregated where possible as indicated by the supplied offer and consideration component arrays and aggregated items will be transferred to the fulfiller or to each intended recipient, respectively. Note that a failing item transfer or an issue with order formatting will cause the entire batch to fail. Note that this function does not support criteria-based orders or partial filling of orders (though filling the remainder of a partially-filled order is supported).
The orders to fulfill. Note that both the offerer and the fulfiller must first approve this contract (or the corresponding conduit if indicated) to transfer any relevant tokens on their behalf and that contracts must implement onERC1155Received to receive ERC1155 tokens as consideration.
offerFulfillments
FulfillmentComponent[][]
An array of FulfillmentComponent arrays indicating which offer items to attempt to aggregate when preparing executions.
considerationFulfillments
struct FulfillmentComponent[][]
An array of FulfillmentComponent arrays indicating which consideration items to attempt to aggregate when preparing executions.
fulfillerConduitKey
bytes32
A bytes32 value indicating what conduit, if any, to source the fulfiller's token approvals from. The zero hash signifies that no conduit should be used, with direct approvals set on this contract.
maximumFulfilled
uint256
The maximum number of orders to fulfill.
Name
Type
Description
availableOrders
bool[]
An array of booleans indicating if each order with an index corresponding to the index of the returned boolean was fulfillable or not.
executions
Execution[]
An array of elements indicating the sequence of transfers performed as part of matching the given orders.
fulfillAvailableAdvancedOrders
Attempt to fill a group of orders, fully or partially, with an arbitrary number of items for offer and consideration per order alongside criteria resolvers containing specific token identifiers and associated proofs. Any order that is not currently active, has already been fully filled, or has been cancelled will be omitted. Remaining offer and consideration items will then be aggregated where possible as indicated by the supplied offer and consideration component arrays and aggregated items will be transferred to the fulfiller or to each intended recipient, respectively. Note that a failing item transfer or an issue with order formatting will cause the entire batch to fail.
The orders to fulfill along with the fraction of those orders to attempt to fill. Note that both the offerer and the fulfiller must first approve this contract (or their preferred conduit if indicated by the order) to transfer any relevant tokens on their behalf and that contracts must implement onERC1155Received to enable receipt of ERC1155 tokens as consideration. Also note that all offer and consideration components must have no remainder after multiplication of the respective amount with the supplied fraction for an order's partial fill amount to be considered valid.
criteriaResolvers
CriteriaResolver[]
An array where each element contains a reference to a specific offer or consideration, a token identifier, and a proof that the supplied token identifier is contained in the merkle root held by the item in question's criteria element. Note that an empty criteria indicates that any (transferable) token identifier on the token in question is valid and that no associated proof needs to be supplied.
offerFulfillments
FulfillmentComponent[][]
An array of FulfillmentComponent arrays indicating which offer items to attempt to aggregate when preparing executions.
considerationFulfillments
FulfillmentComponent[][]
An array of FulfillmentComponent arrays indicating which consideration items to attempt to aggregate when preparing executions.
fulfillerConduitKey
bytes32
A bytes32 value indicating what conduit, if any, to source the fulfiller's token approvals from. The zero hash signifies that no conduit should be used, with direct approvals set on this contract.
recipient
address
The intended recipient for all received items, with address(0) indicating that the caller should receive the items.
maximumFulfilled
uint256
The maximum number of orders to fulfill.
Name
Type
Description
availableOrders
bool[]
An array of booleans indicating if each order with an index corresponding to the index of the returned boolean was fulfillable or not.
executions
Execution[]
An array of elements indicating the sequence of transfers performed as part of matching the given orders.
matchOrders
Match an arbitrary number of orders, each with an arbitrary number of items for offer and consideration along with a set of fulfillments allocating offer components to consideration components. Note that this function does not support criteria-based or partial filling of orders (though filling the remainder of a partially-filled order is supported).
The orders to match. Note that both the offerer and fulfiller on each order must first approve this contract (or their conduit if indicated by the order) to transfer any relevant tokens on their behalf and each consideration recipient must implement onERC1155Received to enable ERC1155 token receipt.
fulfillments
Fulfillment[]
An array of elements allocating offer components to consideration components. Note that each consideration component must be fully met for the match operation to be valid.
Name
Type
Description
executions
Execution[]
An array of elements indicating the sequence of transfers performed as part of matching the given orders.
matchAdvancedOrders
Match an arbitrary number of full or partial orders, each with an arbitrary number of items for offer and consideration, supplying criteria resolvers containing specific token identifiers and associated proofs as well as fulfillments allocating offer components to consideration components.
The advanced orders to match. Note that both the offerer and fulfiller on each order must first approve this contract (or a preferred conduit if indicated by the order) to transfer any relevant tokens on their behalf and each consideration recipient must implement onERC1155Received in order to receive ERC1155 tokens. Also note that the offer and consideration components for each order must have no remainder after multiplying the respective amount with the supplied fraction in order for the group of partial fills to be considered valid.
criteriaResolvers
CriteriaResolver[]
An array where each element contains a reference to a specific order as well as that order's offer or consideration, a token identifier, and a proof that the supplied token identifier is contained in the order's merkle root. Note that an empty root indicates that any (transferable) token identifier is valid and that no associated proof needs to be supplied.
fulfillments
Fulfillment[]
An array of elements allocating offer components to consideration components. Note that each consideration component must be fully met in order for the match operation to be valid.
recipient
address
The intended recipient for all unspent offer item amounts, or the caller if the null addressis supplied.
Name
Type
Description
executions
Execution[]
An array of elements indicating the sequence of transfers performed as part of matching the given orders.
cancel
Cancel an arbitrary number of orders. Note that only the offerer or the zone of a given order may cancel it. Callers should ensure that the intended order was cancelled by calling getOrderStatus and confirming that isCancelled returns true.
function cancel(struct OrderComponents[] orders) external returns (bool cancelled)
Name
Type
Description
orders
OrderComponents
The orders to cancel.
Name
Type
Description
cancelled
bool
A boolean indicating whether the supplied orders have been successfully cancelled.
validate
Validate an arbitrary number of orders, thereby registering their signatures as valid and allowing the fulfiller to skip signature verification on fulfillment. Note that validated orders may still be unfulfillable due to invalid item amounts or other factors; callers should determine whether validated orders are fulfillable by simulating the fulfillment call prior to execution. Also note that anyone can validate a signed order, but only the offerer can validate an order without supplying a signature.
function validate(struct Order[] orders) external returns (bool validated)
Name
Type
Description
orders
Order[]
The orders to validate.
Name
Type
Description
validated
bool
A boolean indicating whether the supplied orders have been successfully validated.
incrementCounter
Cancel all orders from a given offerer with a given zone in bulk by incrementing a counter. Note that only the offerer may increment the counter.
function incrementCounter() external returns (uint256 newCounter)
Name
Type
Description
newCounter
uint256
The new counter.
getOrderHash
Retrieve the order hash for a given order.
function getOrderHash(struct OrderComponents order) external view returns (bytes32 orderHash)
Name
Type
Description
order
OrderComponents
The components of the order.
Name
Type
Description
orderHash
bytes32
The order hash.
getOrderStatus
Retrieve the status of a given order by hash, including whether the order has been cancelled or validated and the fraction of the order that has been filled.