AIXChain Blockchain Document
  • INTRODUCTION
    • Getting started with smart contract development
    • Build a Decentralized Library
  • AIXC AND ARC TOKEN
    • ARC
      • ARX Transfer
      • Query ARX balance
    • ARC-10
      • Issue ARC-10 token
      • Participate ARC-10
      • ARC-10 Transfer
      • Query ARC-10 balance
      • ARC-10 Transfer in Smart Contracts
    • ARC-20
      • Protocol Interface
      • Contract Example
      • Issuing ARC-20 tokens tutorial
    • ARC-721
      • Protocol Interface
      • Contract Example
  • ACCOUNT MODEL
  • BUILD NODE
    • How to setup a Super node to produce Blocks
      • Recommended configuration & Environment
      • Example cloud services
      • Deployment guide
    • Super Representative
      • How to become a SR
      • Super Representatives Election
      • How to change witness name
  • HTTP API
    • Introduction
    • API Signature and Broadcast Flow
    • API List
      • Full Node API Overview
      • Address Utilities
        • GenerateAddress
        • CreateAddress
        • ValidateAddress
      • Accounts
        • CreateAccount
        • GetAccount
        • UpdateAccount
        • AccountPermissionUpdate
        • GetAccountBalance
      • Account Resources
        • GetAccountResource
        • GetAccountNet
        • FreezeBalance
        • UnfreezeBalance
        • GetDelegatedResource
        • GetDelegatedResourceAccountIndex
      • Query the Network
        • GetBlockByNum
        • GetBlockById
        • GetBlockByLatestNum
        • GetBlockByLimitNext
        • GetNowBlock
        • GetTransactionById
        • GetTransactionInfoById
        • GetTransactionInfoByBlockNum
        • ListNodes
        • GetNodeInfo
        • GetChainParameters
        • GetBlockBalance
      • ARC10 Token
        • GetAssetIssueByAccount
        • GetAssetIssueById
        • GetAssetIssueList
        • GetPaginatedAssetIssueList
        • TransferAsset
        • CreateAssetIssue
        • UnfreezeAsset
        • UpdateAsset
      • Transactions
        • GetContract
        • GetTransactionSign
        • BroadcastTransaction
        • BroadcastHex
        • EasyTransfer
        • EasyTransferByPrivate
        • CreateTransaction
      • Voting & SRs
        • ListWitnesses
        • CreateWitness
        • UpdateWitness
        • GetBrokerage
        • UpdateBrokerage
        • VoteWitnessAccount
        • GetReward
        • WithdrawBalance
        • GetNextMaintenanceTime
      • Smart Contracts
        • TriggerSmartContract
        • DeployContract
        • UpdateSetting
        • UpdateEnergyLimit
        • ClearAbi
        • GetContract
        • TriggerConstantContract
      • Proposals
      • Solidity Node API
    • RPC List
  • AIXCHAIN CLI
  • Aixchain SDK
    • Quickstart
    • Address and Signature
    • Sending Transaction
    • Smart Contract
  • Faucet Aixchain
  • Wallets
Powered by GitBook
On this page
  1. HTTP API
  2. API List
  3. ARC10 Token

UpdateAsset

POST: http://172.104.51.182:16667/wallet/updateasset

Update basic ARC10 token information.

BODY PARAMS {

owner_address string

description string

url string

new_limit int32

new_public_limit int32

permission_id int32 (Optional)

visible boolean (Optional)

}

Note:

  • owner address is the issuers address of the token, default hexString

  • description is the description of token, default hexString

  • url is the token's website url, default hexString

  • new_limit each token holder's free bandwidth

  • new_public_limit is the total free bandwidth of the token

  • permission_id for multi-signature

  • visible: whether the address is in base58check format.

Example:

Input:

{ "owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "description":"update token", "url":"testupdateasset", "visible":true }

response:

{

"visible": true, "txID": "26a2599bc08d660dc1a38622b74d4fa132c11f02a5c1791776214b3fd7c0a716", "raw_data": { "contract": [ { "parameter": { "value": { "description": "update token", "owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "url": "testupdateasset" }, "type_url": "type.googleapis.com/protocol.UpdateAssetContract" }, "type": "UpdateAssetContract" } ], "ref_block_bytes": "16bf", "ref_block_hash": "25f6814b2d96895b", "expiration": 1639715274000, "timestamp": 1639715215224 }, "raw_data_hex": "0a0216bf220825f6814b2d96895b4090fa95b5dc2f5a6e080f126a0a30747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5570646174654173736574436f6e747261637412360a15414203485a535a4072c9fbfaaddfe2a010ad0bcdb0120c75706461746520746f6b656e1a0f74657374757064617465617373657470f8ae92b5dc2f"

}

=> Continue call gettransactionsign API then call broadcasttransaction API

We will the final result: The account created success on WEL network.

{

"result": true, "txid": "26a2599bc08d660dc1a38622b74d4fa132c11f02a5c1791776214b3fd7c0a716"

}

PreviousUnfreezeAssetNextTransactions

Last updated 29 days ago

curl --request POST --url --header 'Accept: application/json' --header 'Content-Type: application/json' --data '{ "owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "description":"update token", "url":"testupdateasset", "visible":true }

http://172.104.51.182:16667/wallet/updateasset