byte_subscribe
Prevent silent payment failures when subscribing to a data feed by automatically setting USDC allowance. Optionally skip for manual cap.
Instructions
Subscribe to a PayPerByte publisher's data feed. By default also sets USDC allowance to DataStreamLib to type(uint256).max so the subscription doesn't silently lose payments when allowance depletes (the contract's allowance-skip path emits DataStreamed with amount=0 on transferFrom failure rather than reverting). Pass skipAllowance: true to opt out and set a finite cap manually. Requires PRIVATE_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| publisher | Yes | Publisher Ethereum address (0x...) to subscribe to | |
| skipAllowance | No | If true, don't bundle the USDC approve(max) call. Default false. Auto-approve is also skipped when the wallet already has ≥ $1000 USDC of allowance to DataStreamLib. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True if subscribe landed on-chain | |
| txHash | No | Subscribe transaction hash | |
| allowanceTxHash | No | USDC approve(max) transaction hash, if bundled | |
| publisher | No | Publisher subscribed to |