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. Voting & SRs

UpdateWitness

POST: http://172.104.51.182:16667/wallet/updatewitness

PreviousCreateWitnessNextGetBrokerage

Last updated 29 days ago

Edit the URL of the witness's official website.

BODY PARAMS {

owner_address string

update_url string

visible boolean (Optional)

permission_id int32 (Optional)

}

Note:

  • owner address is transaction creator address, in hex string format.

  • update_url is website url, default hexString

  • visible: whether the address is in base58check format.

  • permission_id, whether the address is in base58 format.

Example:

curl --request POST --url --header 'Accept: application/json' --header 'Content-Type: application/json' --data ' { "owner_address":"AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "update_url":"http://test_create_witness_update.vn", "visible": true }

Input:

{

"owner_address":"AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz", "update_url":"http://test_create_witness_update.com",

"visible": true

}

Response:

{

"visible": true, "txID": "ee802f9e179f4ecf29c9a0613a3a900be086ca32dca1ba077ce294125a94dff9", "raw_data": { "contract": [ { "parameter": { "value": { "update_url": "http://test_create_witness_update.com", "owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz" }, "type_url": "type.googleapis.com/protocol.WitnessUpdateContract" }, "type": "WitnessUpdateContract" } ], "ref_block_bytes": "e27e", "ref_block_hash": "45338cf38462a0b1", "expiration": 1640068461000, "timestamp": 1640068402623 }, "raw_data_hex": "0a02e27e220845338cf38462a0b140c8e3cadddd2f5a77080812730a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e5769746e657373557064617465436f6e7472616374123d0a15414203485a535a4072c9fbfaaddfe2a010ad0bcdb06224687474703a2f2f746573745f6372656174655f7769746e6573735f7570646174652e766e70bf9bc7dddd2f"

}

==> Continue you call gettransactionsign API then call broadcasttransaction API

We will the final result: The transaction created success on AIXChain network.

{

"result": true, "txid": "ee802f9e179f4ecf29c9a0613a3a900be086ca32dca1ba077ce294125a94dff9"

}

http://172.104.51.182:16667/wallet/updatewitness