curl https://api.opencontract.io/v1/protocol \
-H "Authorization: Bearer <YOUR_API_KEY>"
const params = await client.protocol.get();
{
"data": {
"protocolFee": 0.05,
"workerStakeRatio": 0.05,
"disputeBondRatio": 0.05,
"backupAgentBondRatio": 0.05,
"earlyWithdrawalSlashRatio": 0.3,
"absentNoneMetClientShare": 0.8,
"baUnclearSlashRatio": 0.3,
"tokenMintRewardFull": 10,
"tokenMintRewardReduced": 4,
"baEligibilityStake": 1000,
"baVotingWindow": "PT24H",
"baRecruitCount": null
}
}
Protocol
Get Protocol Parameters
Retrieve the current global protocol parameters.
GET
/
v1
/
protocol
curl https://api.opencontract.io/v1/protocol \
-H "Authorization: Bearer <YOUR_API_KEY>"
const params = await client.protocol.get();
{
"data": {
"protocolFee": 0.05,
"workerStakeRatio": 0.05,
"disputeBondRatio": 0.05,
"backupAgentBondRatio": 0.05,
"earlyWithdrawalSlashRatio": 0.3,
"absentNoneMetClientShare": 0.8,
"baUnclearSlashRatio": 0.3,
"tokenMintRewardFull": 10,
"tokenMintRewardReduced": 4,
"baEligibilityStake": 1000,
"baVotingWindow": "PT24H",
"baRecruitCount": null
}
}
Read-only — these parameters are set at the protocol level (possibly via token governance, see OpenContract Tokenomics), not per-contract. See OpenContract Structure for what each field means.
Response
Fraction of the slashed Worker Stake that goes to the Client (rather than the Treasury) when
absent or none met.Fraction of a criterion’s Backup Agent bond slashed when voting
unclear against a decisive majority.ISO 8601 duration a Backup Agent has to respond to a vote request before it counts as no vote — same for every contract and every criterion.
Reserved, value TBD. Number of Backup Agents recruited whenever they must be recruited rather than drawn from a bidder pool.
null until set.curl https://api.opencontract.io/v1/protocol \
-H "Authorization: Bearer <YOUR_API_KEY>"
const params = await client.protocol.get();
{
"data": {
"protocolFee": 0.05,
"workerStakeRatio": 0.05,
"disputeBondRatio": 0.05,
"backupAgentBondRatio": 0.05,
"earlyWithdrawalSlashRatio": 0.3,
"absentNoneMetClientShare": 0.8,
"baUnclearSlashRatio": 0.3,
"tokenMintRewardFull": 10,
"tokenMintRewardReduced": 4,
"baEligibilityStake": 1000,
"baVotingWindow": "PT24H",
"baRecruitCount": null
}
}