Upgrading From Classic API¶
Earlier versions of CCF exposed an alternative governance API, now known as the “classic API”. The bulk of the endpoints from the classic API have a direct replacement in the new API, as laid out below. Note that the response format may not match exactly. For instance response fields in JSON objects will be camelCase
rather than snake_case
, and list responses may now be paged. See the API schema for the new version for a precise description of the response format of each request.
Note that all new APIs require the api-version
query parameter to be set, and will return an error if called without this parameter, or when its value does not match a known API version.
Proposals¶
Purpose |
Create a new proposal |
Classic |
|
Replacement |
Purpose |
Get single proposal |
Classic |
|
Replacement |
Purpose |
Get all proposals |
Classic |
|
Replacement |
Purpose |
Get actions of proposal |
Classic |
|
Replacement |
Purpose |
Withdraw a proposal |
Classic |
|
Replacement |
Ballots¶
Purpose |
Submit a ballot |
Classic |
|
Replacement |
|
Purpose |
Get a ballot |
Classic |
|
Replacement |
Member Activation¶
Note
The payload casing has changed, state_digest
has become stateDigest
.
Purpose |
Get a fresh state-digest to ACK |
Classic |
|
Replacement |
|
Notes |
Can also retrieve without refreshing, with |
Purpose |
Submit signed ACK |
Classic |
|
Replacement |
Transaction Status¶
Purpose |
Get status of single transaction |
Classic |
|
Replacement |
|
Notes |
Transaction ID has moved from query parameter to path parameter. |
Purpose |
Get latest committed transaction |
Classic |
|
Replacement |
Note
/node/tx
and /node/commit
remain available in the old style, for existing operator code.
Recovery¶
Purpose |
Get encrypted recovery share for a member |
Classic |
|
Replacement |
|
Notes |
The new endpoint is unauthenticated and takes the target member ID as a path parameter, where the Classic API required authentication as a member.
Since shares are encrypted, they can be safely read by anyone, without authentication.
|
Purpose |
Submit signed recovery share to advance recovery |
Classic |
|
Replacement |
Service State¶
Purpose |
Read details of currently service identity and recovery status |
Classic |
|
Replacement |
Purpose |
Read current constitution |
Classic |
|
Replacement |
|
Notes |
The new endpoint returns a |
Purpose |
Read list of current members |
Classic |
|
Replacement |
|
Notes |
Single endpoint replaces multiple previous endpoints.
Entry for single member is also available at
GET /gov/service/members/{memberId} . |
Purpose |
Read list of current nodes |
Classic |
|
Replacement |
|
Notes |
Single endpoint replaces multiple previous endpoints.
Entry for single node is also available at
GET /gov/service/nodes/{nodeId} . |
Purpose |
Establish what attestations are required for a new node to join the service |
Classic |
|
Replacement |
|
Notes |
Single endpoint replaces multiple previous endpoints.
|
Purpose |
Read details of currently deployed JavaScript app |
Classic |
|
Replacement |
Purpose |
Read details of accepted JWKs and their issuers |
Classic |
GET /gov/kv/jwt/public_signing_keys |
Replacement |
|
Notes |
Single endpoint replaces multiple previous endpoints.
|