pub fn encode_named_account(
app_agent_id: &AppAgentId,
name: &AddressName,
) -> AccountId32
Expand description
Builds a keyless account for the specified AppAgentId
and Name
.
The structure of a Named account: [0..=3] -> AppAgentId [4..4] -> Address type identifier (3) [5..=14] -> Address name [15..=31] -> Checksum
§Arguments
app_agent_id
- TheAppAgentId
used to build the keyless account.name
- TheAccountId32
used to build the keyless account.
§Returns
Returns a Result
containing the built keyless account as an AccountId32
if successful,
or a String
if an error occurs during the building process.