Build against the spec.
A batch goes in, a sealed block comes back. Between those two moments the scheduler places sixteen lanes, catches the one account two of them wanted, and replays the loser. No package is published yet, so treat every call below as design.
POST /v1/batch
{
"shard": "0x00",
"transactions": 2000
}
200 OK
{
"block": 4128902,
"shard": "0x00",
"lanes": 16,
"collisions": 1,
"replayed": 1,
"state_root": "0x41f2c8a1",
"finality_ms": 762
}
The response carries the two figures a caller actually wants: how many collisions the batch produced, and how long the block took to settle. Both are results of execution, not inputs to it.
What the interface assumes
A caller never names a lane. The scheduler assigns one, and it may move a transaction off that lane if another transaction already holds the account it writes to. The receipt tells you which lane finished the work, not which lane started it.
Reads are free and never wait for the lane. A call against a shard is answered from the last committed root, so an RPC node can serve a hundred reads while a batch is still executing.
| Method | Path | Returns |
|---|---|---|
| POST | /v1/batch | a sealed block and its finality |
| GET | /v1/block/{height} | one block, its shard and root |
| GET | /v1/account/{address} | balance, nonce, owning shard |
| GET | /v1/tx/{hash} | receipt, lane, finality |
| POST | /v1/call | a read only result |
| POST | /v1/collisions | the collisions in one batch |
Six paths, no version negotiation, and no endpoint that lets a caller choose a lane. The last omission is deliberate: lane assignment is the scheduler's business.
- A transfer
- 21,000
- A mint
- 34,000
- A swap
- 88,000
- A cross shard message
- 41,000
- Contract deployment
- 240,000
- A replayed transaction
- charged once
A transaction that loses its lane race and re-executes is charged once. Paying twice for the scheduler's mistake would make the collision visible to the user, and the collision is the scheduler's business too.
Running a node on your own machine
The specification describes a single binary that can scaffold a project, start a validator against one shard, and print the height as blocks seal. This is the shape of it.
$ blockcore new vault-registry
created vault-registry/Cargo.toml
created vault-registry/src/lib.rs
created blockcore.toml
$ cd vault-registry
$ blockcore node --shard 0x00
validator listening on 127.0.0.1:8545
shard 0x00
lanes 16
batch 2000
height 0
No binary is published, so these commands do not run yet. They are the interface the specification asks a client to provide, written out so it can be argued with.
Where a collision shows up
Two transactions in one batch wrote to account 0x41f2. The scheduler caught it before either committed, held the second on lane 9, let lane 5 finish, and replayed the held transaction against the new state.
Both transactions are in the same block. Both receipts say the same height. One of them says lane 5.
Nothing here is live.
No host answers on 127.0.0.1:8545, no package is on a registry, and no key is asked for. The page describes the interface, not a service.
A hall and a cable landing.
One end of a network is software somebody runs. The other end is a building somebody maintains, and a cable somebody paid for.