Documentation exported from Syscoin Core 4.2.2

assetupdate (4.2.2 RPC)

blockchain

control

evo

evowallet

generating

governance

governancewallet

masternode

mining

network

rawtransactions

syscoin

syscoinwallet

util

wallet

zmq

assetupdate "asset_guid" "description" "contract" ( updatecapability_flags "notary_address" {"endpoint":"str","instant_transfers":bool,"hd_required":bool} {"auxfee_address":"str","fee_struct":[,,...]} )

Perform an update on an asset you control.

Arguments:
1. asset_guid                        (string, required) Asset guid
2. description                       (string, required) Public description of the token.
3. contract                          (string, required) Ethereum token contract for SyscoinX bridge. Leave empty for no smart contract bridge.
4. updatecapability_flags            (numeric) Ability to update certain fields. Must be decimal value which is a bitmask for certain rights to update. The bitmask 1 represents the ability to update public data field, 2 for updating the smart contract field, 4 for updating supply, 8 for updating notary address, 16 for updating notary details, 32 for updating auxfee details, 64 for ability to update the capability flags (this field). 127 for all. 0 for none (not updatable).
5. notary_address                    (string) Notary address
6. notary_details                    (json object) Notary details structure (if notary_address is set)
     {
       "endpoint": "str",            (string, required) Notary API endpoint (if applicable)
       "instant_transfers": bool,    (boolean, required) Enforced double-spend prevention on Notary for Instant Transfers
       "hd_required": bool,          (boolean, required) If Notary requires HD Wallet approval (for sender approval specifically applicable to change address schemes), usually in the form of account XPUB or Verifiable Credential of account XPUB using DID
     }
7. auxfee_details                    (json object) Auxiliary fee structure (may be enforced if notary is set)
     {
       "auxfee_address": "str",      (string, required) AuxFee address
       "fee_struct": [               (json array, required) Auxiliary fee structure
         ,                           (numeric or string, required) Bound (in amount) for for the fee level based on total transaction amount
         ,                           (numeric, required) The percentage in %% to share with the operator. The value must be
                                     between 0.00(0%%) and 0.65535(65.535%%).
         ...
       ],
     }

Result:
{                    (json object)
  "txid" : "hex"     (string) The transaction id
}

Examples:
> syscoin-cli assetupdate "asset_guid" "description" "contract" "updatecapability_flags" "notary_address" {} {}
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "assetupdate", "params": ["asset_guid", "description", "contract", "updatecapability_flags", "notary_address", {}, {}]}' -H 'content-type: text/plain;' http://127.0.0.1:8370/