Questions about accountIdentifier and subaccount in ICPledger?

An ICP account hash is a one-way hash of account principal and a sub account. You can’t get the principal and sub account from this address.

In comparison the newer ICRC1 address format is not a hash but a textual format that describes the principal and sub account. In this format you can still get the principal and sub account from the address.

So for sending ICP to a non ICRC1 address (old hash format in hex) you can use the older transfer method instead of icrc1_transfer on the ledger canister.