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

UpdateBrokerage

POST: http://172.104.51.182:16667/wallet/updateBrokerage

PreviousGetBrokerageNextVoteWitnessAccount

Last updated 29 days ago

Update the witness's brokerage setting.

BODY PARAMS {

owner_address string

brokerage int32

visible boolean (Optional)

}

Note:

  • owner_address is super representative's account address.

  • brokerage is ratio of the super representative, for example: 20 means 20%, 100 means 100%

  • visible: whether the address is in base58check format.

Example:

curl --request POST --url --header 'Accept: application/json' --header 'Content-Type: application/json' --data ' { "owner_address": "414A193C92CD631C1911B99CA964DA8FD342F4CDDD" }

Input:

{

"owner_address":"AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz",

"brokerage":100,

"visible": true

}

Response:

{

"visible": true, "txID": "8f9f43af54fd7492d02113d8c5348bc74c77b2786684c5ef0ce2903812c6c2d0", "raw_data": { "contract": [ { "parameter": { "value": { "brokerage": 100, "owner_address": "AFzFXoQCgUeoApjejKM9B46NgFGHXvUyKz" }, "type_url": "type.googleapis.com/protocol.UpdateBrokerageContract" }, "type": "UpdateBrokerageContract" } ], "ref_block_bytes": "e7d7", "ref_block_hash": "e25e91b5b8c8be14", "expiration": 1640072568000, "timestamp": 1640072511110 }, "raw_data_hex": "0a02e7d72208e25e91b5b8c8be1440c0b9c5dfdd2f5a55083112510a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e55706461746542726f6b6572616765436f6e747261637412190a15414203485a535a4072c9fbfaaddfe2a010ad0bcdb010647086fdc1dfdd2f"

}

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

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

{

"result":true,"txid":"8f9f43af54fd7492d02113d8c5348bc74c77b2786684c5ef0ce2903812c6c2d0"

}

http://172.104.51.182:16667/wallet/updateBrokerage