origin
Usage
import { Pc } from '@stacks/transactions';
// The transaction sender will send exactly 10,000 microSTX
Pc.origin().willSendEq(10000).ustx();
// The transaction sender will send at most 5,000 of a fungible token
Pc.origin()
.willSendLte(5000)
.ft('ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.token-contract', 'token-name');
// The transaction sender will lock at most 1 STX when staking
Pc.origin().willSendLte(1000000).ustxToLock();
// The transaction sender will not perform any gated PoX action
Pc.origin().willNotPerformPox();Notes
Signature
Returns
Last updated
Was this helpful?