pub fn encode_create_vasp_domains_script_function() -> TransactionPayload
Expand 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

NameTypeDescription
accountsignerThe signer of the sending account of the transaction.

Common Abort Conditions

Error CategoryError ReasonDescription
Errors::ALREADY_PUBLISHEDVASPDomain::EVASP_DOMAINSA VASPDomain::VASPDomains resource has already been published under account.
Errors::REQUIRES_ROLERoles::EPARENT_VASPThe sending account was not a parent VASP account.