Where can I get the latest verison of icrc ledger

I had followed the tuitor to build icrc1 ledger canister locally then fetch did like this:

        "candid": "https://raw.githubusercontent.com/dfinity/ic/<REVISION>/rs/ledger_suite/icrc1/ledger/ledger.did"

But now I have tried numbers of past versions ,err as:

Caused by: Failed to build all canisters.
Caused by: Failed while trying to build all canisters.
Caused by: Failed to download https://raw.githubusercontent.com/dfinity/ic/d9fe2076f677a08734bed90c67b1c3f4056ed621/rs/rosetta-api/icrc1/ledger/ledger.did to /root/univoice/icp/AGC-DFX/.dfx/local/canisters/voice_ledger_canister/voice_ledger_canister.did.
Caused by: Failed to download from url: https://raw.githubusercontent.com/dfinity/ic/d9fe2076f677a08734bed90c67b1c3f4056ed621/rs/rosetta-api/icrc1/ledger/ledger.did.
Caused by: Not found: https://raw.githubusercontent.com/dfinity/ic/d9fe2076f677a08734bed90c67b1c3f4056ed621/rs/rosetta-api/icrc1/ledger/ledger.did

So I want to know how can I generate the correct link for Caused by: Failed to build all canisters.

Caused by: Failed while trying to build all canisters.
Caused by: Failed to download https://raw.githubusercontent.com/dfinity/ic/d9fe2076f677a08734bed90c67b1c3f4056ed621/rs/rosetta-api/icrc1/ledger/ledger.did to /root/univoice/icp/AGC-DFX/.dfx/local/canisters/voice_ledger_canister/voice_ledger_canister.did.
Caused by: Failed to download from url: https://raw.githubusercontent.com/dfinity/ic/d9fe2076f677a08734bed90c67b1c3f4056ed621/rs/rosetta-api/icrc1/ledger/ledger.did.
Caused by: Not found: https://raw.githubusercontent.com/dfinity/ic/d9fe2076f677a08734bed90c67b1c3f4056ed621/rs/rosetta-api/icrc1/ledger/ledger.did?

2 Likes
  1. GitHub - ICP-hub/icrc1-rust-implementation
  2. GitHub - zhangwei983/icrc1-ledger: This is an icrc1 ledger implementation decoupled from https://github.com/dfinity/ic.
    Both of these can be used

Thanks,I will try both.

The latest ICRC-1 ledger release from DFINITY can be found here Release ledger-suite-icrc-2024-11-28 · dfinity/ic · GitHub

You can see commit 2190613 which works with the guide here https://internetcomputer.org/docs/current/developer-docs/defi/tokens/ledger/setup/icp_ledger_setup

I’ll update the guide to reflect the correct link to releases.

https://raw.githubusercontent.com/dfinity/ic/3e24396441e4c7380928d4e8b4ccff7de77d0e7e/rs/ledger_suite/icp/ledger.did

I user this pattern can fetch idl now. Replace ‘rosetta-api’.
Aha