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. Account Resources

UnfreezeBalance

POST: http://172.104.51.182:16667/wallet/unfreezebalance

Unstake Aixc that has passed the minimum stake duration to release bandwidth and energy and at the same time Aixchain Power will reduce and all votes will be canceled

BODY PARAMS

{

owner_address string

resource string

receiver_address string

permission_id int32

visible boolean

}

Notes:

  • owner_address is default hexString

  • resource is stake Aiix for 'BANDWIDTH' or 'ENERGY'

  • receiver_address is optional,the address that will lose the resource, default hexString

  • permission_id is optional, for multi-signature use

  • visible is optional, Whether the address is in base58 format.

Input:

{

"owner_address": "ARSrWnjsK5ePhAVQGHr2JSFdKSjE3vKwE7",

"resource": "ENERGY",

"visible": true

}

Response:

{

"visible": true, "txID": "90eda9c182369c06e7dad3db7ac2cf72f6f2da8a77f4d5a5b97adefd2b2a5ed1", "raw_data": { "contract": [ { "parameter": { "value": { "resource": "ENERGY", "owner_address": "ARSrWnjsK5ePhAVQGHr2JSFdKSjE3vKwE7" }, "type_url": "type.googleapis.com/protocol.UnfreezeBalanceContract" }, "type": "UnfreezeBalanceContract" } ], "ref_block_bytes": "383e", "ref_block_hash": "205f2dfb256d5783", "expiration": 1640134338000, "timestamp": 1640134278356 }, "raw_data_hex": "0a02383e2208205f2dfb256d578340d0cbfffcdd2f5a55080c12510a34747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e556e667265657a6542616c616e6365436f6e747261637412190a1541a9c46373aeb4749e3ce45aca242b027a46f486f9500170d4f9fbfcdd2f"

}

=> Continue call gettransactionsign API then call broadcasttransaction API

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

{

"result":true,

"txid":"90eda9c182369c06e7dad3db7ac2cf72f6f2da8a77f4d5a5b97adefd2b2a5ed1"

}

PreviousFreezeBalanceNextGetDelegatedResource

Last updated 29 days ago