Pc.
Interface may be subject to change in future releases.
The Pc namespace is provided as a convenience to build post conditions. The pattern chains methods together to build a post condition. PRINCIPAL -> [AMOUNT] -> CODE -> ASSET
PRINCIPAL -> [AMOUNT] -> CODE -> ASSET
The builder starts with the principal method.
Some partial classes are used along the way, but aren't intended to be used directly.
The principal to check, which should/should-not be sending assets. A string in the format "address" or "address.contractId".
A partial post condition builder, which can be chained into a final post condition.
import { Pc } from '@stacks/transactions';Pc.principal('STB44HYPYAT2BB2QE513NSP81HTMYWBJP02HPGK6').willSendEq(100).stx();
Generated using TypeDoc
Pc.
Post Condition BuilderInterface may be subject to change in future releases.
The Pc namespace is provided as a convenience to build post conditions. The pattern chains methods together to build a post condition.
PRINCIPAL -> [AMOUNT] -> CODE -> ASSET
The builder starts with the principal method.
Some partial classes are used along the way, but aren't intended to be used directly.
Param
The principal to check, which should/should-not be sending assets. A string in the format "address" or "address.contractId".
Returns
A partial post condition builder, which can be chained into a final post condition.
Example