[#IsWellFormedPackage]
= IsWellFormedPackage
:mrdocs:

Context&hyphen;free package policy checks&colon; 1&period; The number of transactions cannot exceed MAX&lowbar;PACKAGE&lowbar;COUNT&period; 2&period; The total weight cannot exceed MAX&lowbar;PACKAGE&lowbar;WEIGHT&period; 3&period; If any dependencies exist between transactions, parents must appear before children&period; 4&period; Transactions cannot conflict, i&period;e&period;, spend the same inputs&period;

== Synopsis

Declared in `&lt;policy&sol;packages&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
IsWellFormedPackage(
    xref:Package.adoc[Package] const& txns,
    xref:PackageValidationState.adoc[PackageValidationState]& state);
----

== Return Value

true if the package satisfies all context&hyphen;free policy checks&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txns*
| Transactions making up the package&period;
| *state*
| Set with the rejection reason when the package is not well formed&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
