Docs
chromia.com

FUNCTION

ensure_account_without_auth

function ensure_account_without_auth(account_id: byte_array, type: text): account
Source

Finds or creates an account of specific type.

Can only be called from an operation.

Throws "MISMATCHING TYPE" if an account with given ID exists, but the type is not the one passed.

Parameters

  • account_id — account id to find
  • type — expected account type