byte_register_publisher
Register a data publisher and its schema on-chain with topic, expected and max size, frequency, and price per KB. An optional USDC stake backs reputation.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"stake": "<stake>",
"topic": "<topic>",
"expectedSize": "<expectedSize>",
"maxSize": "<maxSize>",
"frequency": "<frequency>",
"pricePerKB": "<pricePerKB>"
},
"name": "byte_register_publisher"
}
}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') | |
| 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) | |
| expectedSize | Yes | Expected payload size in bytes per message |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Registered feed topic | |
| txHash | No | Publisher-registration transaction hash | |
| success | No | True if registration landed on-chain | |
| publisher | No | Registered publisher address (the signer) | |
| stakeUsdc | No | USDC stake posted (decimal string; '0' for v1 first-party) | |
| schemaTxHash | No | Schema-registration transaction hash | |
| approveTxHash | No | USDC stake approval tx hash, if a non-zero stake was posted |