# new AssetRules()
- See:
-
- TracingPolicies for more information about tracing policies.
- add_operation_update_memo for more information about how to add a memo update operation to a transaction.
- SignatureRules for more information about co-signatures.
- add_operation_create_asset for information about how to add asset rules to an asset definition.
Methods
# static new() → {AssetRules}
Create a default set of asset rules. See class description for defaults.
# add_tracing_policy(policy) → {AssetRules}
Adds an asset tracing policy.
Parameters:
Name | Type | Description |
---|---|---|
policy |
TracingPolicy | Tracing policy for the new asset. |
# set_max_units(max_units) → {AssetRules}
Set a cap on the number of units of this asset that can be issued.
Parameters:
Name | Type | Description |
---|---|---|
max_units |
BigInt | Maximum number of units that can be issued. |
# set_transfer_multisig_rules(multisig_rules) → {AssetRules}
Co-signature rules. Assets with co-signatue rules require additional weighted signatures to be transferred.
Parameters:
Name | Type | Description |
---|---|---|
multisig_rules |
SignatureRules | Co-signature restrictions. |
# set_transferable(transferable) → {AssetRules}
Transferability toggle. Assets that are not transferable can only be transferred by the asset issuer.
Parameters:
Name | Type | Description |
---|---|---|
transferable |
boolean | Boolean indicating whether asset can be transferred. |
# set_updatable(updatable) → {AssetRules}
The updatable flag determines whether the asset memo can be updated after issuance.
Parameters:
Name | Type | Description |
---|---|---|
updatable |
boolean | Boolean indicating whether asset memo can be updated. |
- See:
-
- add_operation_update_memo for more information about how to add a memo update operation to a transaction.