Get candidate settings
/mining/candidateThe stratum.candidate settings that decide what this client's blocks carry besides the genesis transaction, which collateral box funds them, and when a served job is replaced mid-block. Values are the ones the client started with.
Responses
200The candidate settings in forceCandidateSettings▶
blockTransactionsbooleanrequiredWhether this client's blocks carry transactions besides the genesis transaction. When false, no source is asked.
▶
sourcesCandidateSourceSettings[]requiredEvery transaction source, in the order candidates ask them.
namestringrequiredone ofrollupsemissionsrentforwardssigmafilithosdexergodexarbenabledbooleanrequiredThe source's own
enabledsetting.activebooleanrequiredWhether candidates ask this source for transactions:
blockTransactionsis on, the source is enabled withmaxTxsabove 0 and, forforwards,sigmafi,lithosdex,ergodexandarb, the matchingbatchingblock is enabled.maxTxsintegerrequiredTransactions this source may place in one block, carried ancestors included.
maxBytesinteger · int64requiredSerialized bytes this source may claim.
maxCostinteger · int64requiredValidation cost this source may claim.
blockSharenumber · doublerequiredFraction of the node's block size and cost limits the whole package may claim.
waitForBlockPackagebooleanrequiredWhether the first job for a height waits, up to
genesisWaitMs, for the sources before it is sent.genesisWaitMsintegerrequiredMilliseconds to wait for the genesis transaction before a solo job is sent instead.
blockTxTimeoutintegerrequiredMilliseconds the sources have to build their transactions.
mempoolRefreshMsintegerrequiredMilliseconds between mid-block package rebuilds. 0 turns them off.
cacheRefreshMsintegerrequiredMilliseconds between re-sending the served package to the Ergo node, so the node keeps the job miners are on. Between 20000 and 55000.
minCandidateChangeRevenueinteger · int64requirednanoERG a rebuilt package must add over the served one before the job changes mid-block.
refreshForProtocolTxsbooleanrequiredWhether a rebuilt package that adds rollup or emission transactions also changes the job mid-block.
minNewProtocolTxsintegerrequiredRollup or emission transactions the rebuilt package must add before
refreshForProtocolTxschanges the job.collateralStrategystringrequiredHow the collateral box is picked.
highestFeetakes the highest priority fee, compared in 0.001 ERG steps and drawn at random within a step, until a box reachesclearanceAge;randomdraws from every usable box.one ofhighestFeerandomclearanceAgeintegerrequiredWith
highestFee, blocks a collateral box may stay live before the oldest is taken regardless of fee. Ignored byrandom.pinnedInputsintegerrequiredWallet boxes set aside to fund transactions that need a wallet input inside this client's own block.
defaultClearanceAgeintegerrequiredThe shipped
clearanceAge, which most clients run.maxClearanceAgeintegerrequiredThe largest
clearanceAgeany client accepts. A collateral box this old is drawn first by every client usinghighestFee.
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description