pub fn encode_create_vasp_domains_script_function() -> TransactionPayloadExpand description
Summary
Publishes a VASPDomain::VASPDomains resource under a parent VASP account.
The sending account must be a parent VASP account.
Technical Description
Publishes a VASPDomain::VASPDomains resource under account.
The The VASPDomain::VASPDomains resource’s domains field is a vector
of VASPDomain, and will be empty on at the end of processing this transaction.
Parameters
| Name | Type | Description |
|---|---|---|
account | signer | The signer of the sending account of the transaction. |
Common Abort Conditions
| Error Category | Error Reason | Description |
|---|---|---|
Errors::ALREADY_PUBLISHED | VASPDomain::EVASP_DOMAINS | A VASPDomain::VASPDomains resource has already been published under account. |
Errors::REQUIRES_ROLE | Roles::EPARENT_VASP | The sending account was not a parent VASP account. |