How to generate additional candid method for icp ledger

Hi all, I want to add new candid method for local test icp ledger

I can find ledger.did file
but I run “dfx build ledger” in icp_ledger directory, and it exports nothing for my new candid method.
so how can I do that?

I don’t think the did file is autogenerated. I would personally just add it by hand. Is that a feasible approach for you?

in rust canisters, there is a way to autogenerate did file, but I don’t know how to do it in icp ledger official code.

You can probably add this method:

1 Like

thx, I have read this blog before