trait_keyless

Function encode_transactional_account

Source
pub fn encode_transactional_account(
    app_agent_id: &AppAgentId,
    ta_id: &TransactionalId,
) -> AccountId32
Expand description

Builds a keyless account for the specified AppAgentId and TransactionalId.


The structure of a Transactional account: [0..=3] -> AppAgentId [4..4] -> Address type identifier (2) [5..=8] -> TransactionalId [9..=31] -> Checksum


§Arguments

  • app_agent_id - The AppAgentId used to build the keyless account.
  • ta_id - The TransactionalId used to build the keyless account.

§Returns

Returns the built keyless account as an AccountId32