byte_publish_data
Publish a data payload to a subscriber on the PayPerByte DataStream, hashing it and settling the fee in USDC.
Instructions
Publish data to a subscriber via the PayPerByte DataStream contract. Hashes the payload, records size on-chain, and settles the fee in USDC. Requires PRIVATE_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subscriber | Yes | Subscriber Ethereum address (0x...) | |
| data | Yes | Data payload to publish (will be hashed on-chain) | |
| maxFee | Yes | Maximum fee in USDC willing to pay for this publish (e.g. 0.05) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True if publish landed on-chain | |
| txHash | No | Publish transaction hash | |
| payloadSize | No | Payload size recorded on-chain (bytes) | |
| payloadHash | No | keccak256 of the payload as recorded on-chain |