bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 45쪽 중 22쪽
.
Subscribe
eth_subscribe announces new logs. The node reads them with eth_getLogs.
The node reads logs from the start block to the chain head. Each
eth_getLogs
request covers 10,000
blocks, or the chain's
rpc_log_range_blocks
. When the provider refuses a range, the node halves
the range and sends the request again. The smallest range is one block. The node keeps the narrower
width for the rest of the sync.
The node recognizes a refusal that names a block range or a result-size limit, for example the
messages in the table under
Measured endpoints
. A provider that refuses a
range with other words makes the node retry and fail instead of narrowing. Set
rpc_log_range_blocks
to the provider's documented cap for such a provider. The same key raises the
range for a provider that permits more than 10,000 blocks, which makes the first sync faster.
A narrow range makes the first sync slower. A history of 5,000,000 blocks takes 500 requests at
10,000 blocks, and 500,000 requests at 10 blocks. When the range is 128 blocks or less, the node
logs a warning.
The node retries other failures in two layers:
The transport retries HTTP 429 and 503 responses, and the JSON-RPC errors that mean the same. It
tries up to 8 more times. The first wait is 500 ms, and a
Retry-After
value from the provider
replaces it.
The log fetcher sends each range at most 3 times, with waits of 2 s and 4 s between the attempts.
After the third failure, the sync stops with an error.
The node does not treat a plan or authorization refusal as a range limit. A narrower range cannot
fix it, so the sync fails.
The first sync starts at the lowest
deploy_block
of all configured contracts. On mainnet, the
published
fee_token
deploy block (20663730) is about 4.8 million blocks before the
bonding_registry
deploy block (25473398). The node does not use
fee_token
, so you can remove
it from the configuration to shorten the first sync.
Missing log history
An endpoint that dropped old logs can answer a historical
eth_getLogs
request with an empty result
and no error. The node cannot tell this apart from a range with no events. It finishes the first
sync, reports success, and misses the events that registered it. The node then does not submit
tickets, and the log does not explain why.
This failure is not stable over time. On 16 September 2026,
ethereum-sepolia-rpc.publicnode.com
returned 0 logs for the test range of the previous Sepolia deployment. On 25 September 2026, the
same endpoint returned all 67 logs. Test each endpoint yourself, and test it again after a provider
change. Do not rely on the product description of a provider. Free tiers of several well-known
providers do not keep the full history.
Only a log query with a known expected result finds this failure. Do not use a historical state
check in its place.
Test an endpoint
Run this test before you use a new endpoint. Replace the URL with the HTTP URL of your endpoint. The
command needs
curl
and
jq
.
Sepolia
Mainnet
RPC
=
https://your-endpoint.example
# Sepolia CiphernodeRegistry, from deployments/manifest.json
CIPHERNODE_REGISTRY_CONTRACT
=
0xb1E8640CF8D0A927290E3d9E1b01c4899B5225Ef
FROM
=
$(
printf
'0x%x'
11873232
)
# the registry deploy block
TO
=
$(
printf
'0x%x'
11873281
)
# FROM + 49: a range of 50 blocks
# The result must be a log count, not an error and not an empty list.
curl
-s
-X
POST
"$RPC"
-H
'Content-Type: application/json'
\
-d
"{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$FROM\",\"toBlock\":\"$TO\",\"address\":\"$CIPHERNODE_REGISTRY_CONTRACT\"}]}"
\
|
jq
'if .error then {error: .error} else {logs: (.result | length)} end'
This range holds
6
logs. The range is in the past, so the count does not change.
RPC
=
https://your-endpoint.example
# Mainnet BondingRegistry, from deployments/manifest.json
BONDING_REGISTRY_CONTRACT
=
0x0ec90465095C21830BEcED07e032809A2Bd2915F
FROM
=
$(
printf
'0x%x'
25473398
)
# the registry deploy block
TO
=
$(
printf
'0x%x'
25483397
)
# FROM + 9,999: a range of 10,000 blocks
# The result must be a log count, not an error and not an empty list.
curl
-s
-X
POST
"$RPC"
-H
'Content-Type: application/json'
\
-d
"{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$FROM\",\"toBlock\":\"$TO\",\"address\":\"$BONDING_REGISTRY_CONTRACT\"}]}"
\
|
jq
'if .error then {error: .error} else {logs: (.result | length)} end'
This range holds
2
logs: the
Upgraded
and
AdminChanged
events of the proxy deployment. The
range is in the past, so the count does not change.
Read the result this way:
Result
Meaning
logs
at the expected count
The endpoint keeps this history.
logs: 0
The endpoint dropped the history and did not report it. Do not use it.
An
error
that names a block range
The range cap is below 10,000 blocks. The node narrows its range, so the endpoint works but syncs slower.
An
error
about a plan or a token
The endpoint refuses the request. The node cannot use it.
To test a larger range, increase
TO
. The count then changes as the registry emits events, so
compare the result with a second endpoint.
Measured endpoints
These results are for the previous Sepolia deployment, on 25 September 2026. The range was 10,000
blocks from the deploy block of its
CiphernodeRegistry
, and it held 67 logs. The current
deployment is too new for a range of that size. Provider behavior changes, so run the test yourself
before you trust a row.
Endpoint
eth_getLogs
over the test range
eth_getCode
at the deploy block
Usable with the node
sepolia.gateway.tenderly.co
67 logs
0x
(state not served)
Yes
ethereum-sepolia-rpc.publicnode.com
67 logs (0 logs on 16 September 2026)
historical state … is not available
Yes on 25 September, but it lost history before
sepolia.drpc.org
ranges over 10000 blocks are not supported on free plan
(also for 3,500 blocks)
chain is not available on free plan
No
1rpc.io/sepolia
eth_getLogs is limited to 0 - 50 blocks range
state at block … is pruned
Yes, with a slow sync
sepolia.gateway.tenderly.co
returns every log but no historical state. This row shows why a state
check must not replace a log check.
1rpc.io
caps the range at 50 blocks. The node narrows its
range below that cap by itself, but a long history then needs many more requests. Use it only as a
fallback.
Paid providers
An archive tier does not prove that an endpoint keeps the log history. Run the test above first. The
first sync of a short history needs a few hundred
eth_getLogs
requests at the full range. After
the sync, the node keeps one WebSocket subscription and makes occasional reads. The request count is
usually not the deciding factor.
Test the free tier of a paid provider before you use it. Free tiers often cap
eth_getLogs
to a
much smaller range, and some do not keep old logs. A small range cap only makes the sync slower.
Missing log history makes the endpoint unusable.
Watch a sync
Run the node with
-v
to see each range that it requests:
Fetched log chunk chain_id=11155111 chunk=1 total_chunks=4 from=11677109 to=11687108 events=125
When a provider refuses a range, the node logs a warning and continues with a smaller range:
Provider rejected the block range, narrowing the window and retrying chain_id=11155111
from=11677109 rejected_to=11687108 window=5000 shrinks=1 error=...
When the range is 128 blocks or less, the node also logs this warning:
The provider caps eth_getLogs to a narrow range. The first sync needs many requests and is
slow. Use an endpoint with a wider range limit to sync faster.
At the end of the sync, the node logs
Log fetch complete
with the number of chunks and the final
range width.
If the node exits during the first sync
HTTP 429 or a rate limit message.
The node retries these by itself. If it still exits, the
limit of the endpoint is too low for a sync. Use another endpoint.
A restart loop.
A first sync that stops before it ends reads the same history again at the
next start. The learned range width is kept in memory only. Startup also has a time limit,
node.startup_timeout_secs
(default 1800 s). If the endpoint is too slow to finish in that time,
increase the limit or use an endpoint with a wider range. A restart loop against a narrow endpoint
does not make progress and uses quota. Under systemd,
Restart=always
with
StartLimitIntervalSec=0
keeps the restarts going, so fix the endpoint first.
Failed to fetch logs … after 3 retries
.
If the error text names a block range, the node did
not recognize the wording of the provider. Report the exact message. Otherwise, the endpoint
refused the request for another reason, for example its plan.
The sync completes, but the node is never selected.
Run the log test above. This is the
symptom of an endpoint that dropped its history.
Next steps
Run a Ciphernode
Put the tested endpoint in the configuration and start the node.
Set up
Registration & Bonding
Bond FOLD, register the operator, and buy tickets.
Set up
Troubleshooting
Find the cause of common sync, network, and selection problems.
Maintain
Run a Ciphernode
Registration & Bonding
## /operate/registration
Run a Ciphernode
Registration & Bonding
Registration & Bonding
This page shows the on-chain steps that make a ciphernode an active operator. It is for operators
who installed the node as shown on
Run a Ciphernode
. You authorize a bond owner,
bond FOLD, register the operator, and buy tickets. At the end,
interfold ciphernode status
shows
Active: true
.
The dashboard does the same steps in a browser at
Run a
ciphernode
(opens in a new tab)
. It shows the live bond size, ticket
price, and operator status, and it sends each transaction from the connected wallet. The CLI
commands on this page are the reference path for automated and headless setups.
Operator key and bond owner
An operator position uses two roles. They can be the same wallet, but a separate cold wallet or Safe
as the bond owner is recommended. Then the node never holds the key that controls the collateral.
The
operator key
is the key that the node loads. It is the identity in the registry, holds the
tFOLD ticket balance, submits sortition tickets, and signs DKG proofs. Bans and slashes apply to
it. It calls
setBondOwner
one time.
The
bond owner
is the wallet or Safe that holds FOLD and the ticket collateral. It sends every
collateral and registration call (the
...For(operator)
functions). Exit payouts go to the bond
owner. The registry also sends rewards to the bond owner, or to the operator when no owner is set.
One bond owner can fund several operator keys.
totalBonded(owner)
returns the active and pending
FOLD of that owner across all its operators. A committee takes at most one operator from each bond
owner (see
Committee limits
).
Function (
BondingRegistry
)
Caller
CLI command
setBondOwner(bondOwner)
Operator key
ciphernode set-bond-owner
proposeBondOwner(operator, newOwner)
Current bond owner
ciphernode propose-bond-owner
acceptBondOwner(operator)
Proposed bond owner
ciphernode accept-bond-owner
bondCiphernodeFor(operator, amount)
Bond owner
ciphernode bond ... bond
registerOperatorFor(operator)
Bond owner
ciphernode register
addTicketBalanceFor(operator, amount)
Bond owner
ciphernode tickets ... buy
removeTicketBalanceFor(operator, amount)
Bond owner
ciphernode tickets ... burn
unbondCiphernodeFor(operator, amount)
Bond owner
ciphernode bond ... unbond
deregisterOperatorFor(operator)
Bond owner or operator key
ciphernode deregister
claimExitsFor(operator, maxTicket, 0)
Anyone
ciphernode bond ... claim --max-bond 0
claimExitsFor(operator, maxTicket, maxBond)
Bond owner
ciphernode bond ... claim
refreshOperatorStatus(operator)
Anyone
ciphernode activate
A call from the wrong wallet reverts with
NotBondOwner(caller, operator)
.
Before you start
Make sure that you have these items:
A node configuration with the operator key stored in it. See
Run a Ciphernode
.
The node must run before the operator can become active, because the node acknowledges its release
on-chain when it starts. The operator key needs ETH for that transaction and for ticket
submissions.
A bond owner that holds at least
requiredCiphernodeBond
FOLD, the ticket collateral for at least
minTicketBalance
tickets, and ETH for gas. See
Economic parameters
.
For a bond owner that is an EOA: a second configuration file whose stored wallet is the bond owner
key. Copy the node configuration into another directory, then run
interfold password set
and
interfold wallet set
with
--config
for that file. The key store is created next to that file,
apart from the node keys. This page calls the file
owner.yaml
.
For a Safe bond owner, send the same
BondingRegistry
calls through the Safe. Before
bondCiphernodeFor
, approve FOLD for the
BondingRegistry
. Before
addTicketBalanceFor
, approve
the ticket collateral for the
InterfoldTicketToken
contract, not for the
BondingRegistry
. Safe
amounts are in token base units.
On Sepolia, the fee token and the ticket collateral are
MockUSDC
, a test USDC that anyone can
mint. The faucet sends tokens to the wallet of the configuration, so use the bond-owner
configuration:
interfold --config /path/to/owner.yaml faucet --chain sepolia
. One call gives
1000 USDC and 1000 FOLD, which is enough for the 100 FOLD Sepolia bond. You can also call
faucet()
on the
Faucet
contract from the bond owner, or call
mint
on
MockUSDC
. E3 requests
on Sepolia stay paused until operators that run the 0.19.0 release register.
Read the token addresses
The CLI reads the token addresses from the
BondingRegistry
, so you do not need them for the CLI
steps. A Safe or a wallet needs them for the approvals. Read them with Foundry
cast
. Take the
BondingRegistry
address from
Contract addresses
.
BONDING
=<
BondingRegistry
address>
RPC
=
https://your-endpoint.example
# FOLD, the bond token
cast
call
"$BONDING"
"getCiphernodeBondToken()(address)"
--rpc-url
"$RPC"
# InterfoldTicketToken (tFOLD), the spender for the collateral approval
TICKET
=
$(
cast
call
"$BONDING" "getTicketToken()(address)"
--rpc-url
"$RPC")
echo
"$TICKET"
# The ticket collateral token that tFOLD wraps (sUSDS on mainnet)
cast
call
"$TICKET"
"underlying()(address)"
--rpc-url
"$RPC"
Register the operator
Authorize
The operator key sets the bond owner.
Bond
The bond owner bonds FOLD.
Register
The bond owner registers the operator.
Tickets
The bond owner deposits ticket collateral.
Active
The registry marks the operator active.
The order is fixed.
registerOperatorFor
needs the full bond, so the bond comes first.
addTicketBalanceFor
reverts with
NotRegistered()
before registration, so tickets come last.
Check the current status
Run this command with the node configuration:
interfold
ciphernode
status
A new operator shows this output:
Ciphernode status on mainnet:
Operator key: 0xOPERATOR
Bond owner: not configured
Registered: false
Active: false
Exit pending: false
Ticket balance: 0 (0 available)
Ciphernode bond: 0
Pending exits: tickets=0, bond=0
Requirements: minTickets=1, ticketPrice=1000 tFOLD, ciphernodeBond=32000 FOLD
Committees: none
The
Requirements
line shows the live values of
minTicketBalance
,
ticketPrice
, and
requiredCiphernodeBond
.
Authorize the bond owner
Run this command with the node configuration (the operator key):
interfold
ciphernode
set-bond-owner
--owner
0xB
OND_OWNER
The command prints
Authorized bond owner 0x… for operator 0x… (tx: 0x…)
. The owner must not be the
zero address. It can be the operator address.
⚠️
The bond owner receives every exit payout of this position. While the position is empty, the
operator key can call
set-bond-owner
again to correct the address. After the first bond, ticket
deposit, or registration, the call reverts with
BondOwnerAlreadySet
. Then only the current bond
owner can start a transfer (see
Change the bond owner
).
Bond FOLD
Run this command with the bond owner configuration:
interfold
--config
/path/to/owner.yaml
ciphernode
bond
\
--operator
0
xOPERATOR
bond
--amount
32000
--amount
is in whole FOLD, and decimals are allowed. When the FOLD allowance of the
BondingRegistry
is too low, the CLI first sends an approval for this amount. The command prints
Bonded 32000 FOLD for operator 0x… (tx: 0x…)
.
⚠️
This transaction moves FOLD from the bond owner to the
BondingRegistry
. The FOLD comes back only
through an unbond or a deregistration, then the
exitDelay
(30 days on mainnet), then a claim.
Bonded and queued FOLD can be slashed.
Register the operator
interfold
--config
/path/to/owner.yaml
ciphernode
register
--operator
0
xOPERATOR
The command prints
Registered operator 0x… on mainnet (tx: 0x…)
. The registry adds the operator to
CiphernodeRegistry
and emits
CiphernodeAdded
.
Buy tickets
interfold
--config
/path/to/owner.yaml
ciphernode
tickets
\
--operator
0
xOPERATOR
buy
--amount
1000
--amount
is an amount of the collateral token, not a number of tickets. When the collateral
allowance of the
InterfoldTicketToken
is too low, the CLI first sends an approval. After the
deposit, the CLI reads
availableTickets(operator)
and prints the ticket count, for example
Ticket balance is now 1 tickets
.
⚠️
This transaction moves the collateral from the bond owner into the
InterfoldTicketToken
contract. The registry mints non-transferable tFOLD to the operator key. The collateral comes back
only through the exit queue, after
exitDelay
.
Confirm the active status
interfold
ciphernode
status
--operator
0
xOPERATOR
An active operator shows this output:
Ciphernode status on mainnet:
Operator key: 0xOPERATOR
Bond owner: 0xBOND_OWNER
Registered: true
Active: true
Exit pending: false
Ticket balance: 1000 (1 available)
Ciphernode bond: 32000
Pending exits: tickets=0, bond=0
Requirements: minTickets=1, ticketPrice=1000 tFOLD, ciphernodeBond=32000 FOLD
Committees: none
If
Active
is
false
, see
Troubleshooting
.
The available tickets are
floor(ticket balance / ticketPrice)
. With a ticket price of 1,000 sUSDS
shares, a deposit of 1,000 sUSDS shares gives one ticket, and 1,999 shares still give one ticket.
For a self-owned position, use one configuration for all steps. Set the owner to your own address,
and omit
--operator
: the CLI then uses the address of the configured signer.
CLI commands
All commands below accept
--chain <name>
. It selects the chain entry by its
name
. Without it,
the CLI uses the first entry in
chains
. For
bond
and
tickets
, put
--operator
and
--chain
before the inner command (
bond
,
unbond
,
claim
,
buy
, or
burn
). The
CLI Reference
lists every flag.
Command
Signer
What it does
ciphernode set-bond-owner --owner <address>
Operator key
Authorizes the first bond owner.
ciphernode propose-bond-owner --operator <a> --new-owner <b>
Current bond owner
Proposes a new bond owner.
ciphernode accept-bond-owner --operator <address>
Proposed bond owner
Accepts the position.
ciphernode bond [--operator <a>] bond --amount <FOLD>
Bond owner
Approves FOLD if needed, then bonds it.
ciphernode bond [--operator <a>] unbond --amount <FOLD>
Bond owner
Queues FOLD for exit.
ciphernode bond [--operator <a>] claim [--max-ticket <n>] [--max-bond <n>]
Bond owner, or anyone with
--max-bond 0
Claims matured exits. Without limits, it claims all.
ciphernode tickets [--operator <a>] buy --amount <collateral>
Bond owner
Approves the collateral if needed, then deposits it.
ciphernode tickets [--operator <a>] burn --amount <tFOLD>
Bond owner
Burns tFOLD and queues the collateral for exit.
ciphernode register [--operator <a>]
Bond owner
Registers the operator.
ciphernode activate [--operator <a>]
Any wallet
Refreshes the status of a registered operator.
ciphernode deactivate [--operator <a>] [--tickets <n>] [--bond <n>]
Bo프로젝트로 돌아가기