Skip to content

Commit

Permalink
Merge pull request #2063 from dfinity/minor-typo
Browse files Browse the repository at this point in the history
Fix ledger reference typo
  • Loading branch information
jessiemongeon1 authored Oct 27, 2023
2 parents 708dfea + 0b5d819 commit 487aa47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/references/ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The ledger canister keeps track of **accounts**:
h = sha224(“\x0Aaccount-id” || principal || subaccount_identifier)


The following call to the method `account_identifier` on the ledger canister (`ryjl3-tyaaa-aaaaa-aaaba-cai`) can be used to get your account identifier; replace the value `PRINCIPAL` with your account's principal:
The following call to the method `account_identifier` on the ledger canister (`ryjl3-tyaaa-aaaaa-aaaba-cai`) can be used to get the account identifier of the first subaccount for your principal; replace the value `PRINCIPAL` with your account's principal:

```
dfx canister call ryjl3-tyaaa-aaaaa-aaaba-cai account_identifier '(record {owner = principal "PRINCIPAL"; subaccount = opt blob "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\01" })' --candid rs/rosetta-api/icp_ledger/ledger.did
Expand Down

0 comments on commit 487aa47

Please sign in to comment.