byte_register_publisher
Become a data publisher on PayPerByte by registering your topic, payload specs, and price on-chain. Requires PRIVATE_KEY.
Instructions
Register as a data publisher on PayPerByte. Registers a schema and the publisher on-chain. Requires PRIVATE_KEY. PayPerByte v1 publishers are first-party and unstaked — leave stake at '0'; a non-zero USDC stake is approved to DataRegistry first if you choose to post one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stake | Yes | USDC reputation stake to post, as a decimal string. Default '0' — PayPerByte v1 publishers are unstaked. | |
| topic | Yes | Data feed topic (e.g. 'eth-price', 'weather-nyc', 'gas-tracker') | |
| expectedSize | Yes | Expected payload size in bytes per message | |
| maxSize | Yes | Maximum payload size in bytes per message | |
| frequency | Yes | Expected publishing frequency in seconds | |
| pricePerKB | Yes | Price per kilobyte in USDC (e.g. 0.003) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True if registration landed on-chain | |
| txHash | No | Publisher-registration transaction hash | |
| schemaTxHash | No | Schema-registration transaction hash | |
| approveTxHash | No | USDC stake approval tx hash, if a non-zero stake was posted | |
| publisher | No | Registered publisher address (the signer) | |
| stakeUsdc | No | USDC stake posted (decimal string; '0' for v1 first-party) | |
| topic | No | Registered feed topic |