Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

SetSyncRound - Algorand

Example code for the SetSyncRound REST method. Complete guide on how to use SetSyncRound REST in GetBlock Web3 documentation.

Sets the minimum sync round on the ledger.

Endpoint

POST /v2/ledger/sync/{round}

Path Parameters

Parameter
Type
Required
Description

round

integer

Yes

A round number.

Example

export ALGO_ALGOD=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl --location --request POST "${ALGO_ALGOD}v2/ledger/sync/REPLACE_ROUND" \
--header 'Content-Type: application/json' \
--data-binary '<request body>'

Response

Returns application/json. Top-level fields:

Field
Type
Description

(body)

application/json

Response body

Error Handling

Error
Message
Description

400

Bad request

A parameter was missing or malformed

404

Not found

The requested resource does not exist

403 / RBAC: access denied

Access denied

The GetBlock access token is missing or incorrect

Last updated

Was this helpful?