OPERATION

register_account

@mount("ft4.admin.register_account") operation register_account(auth_descriptor: auth_descriptor)

Registers a new account on this chain.

Throws if not signed by the admin.

Throws if the account cannot be created. Common cases include:

  • errors with the args field:
    • some required flags are missing
    • in multi-sig auth descriptors, the required_signatures field:
      • is 0 or less
      • is greater than the number of signers
  • errors with the rules field:
    • rules is not null.to_gtv().to_bytes()

Parameters

  • auth_descriptor — the main auth descriptor for the account
© 2024 Chromia