> For the complete documentation index, see [llms.txt](https://developers.aixchain.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.aixchain.com/http-api/api-list/account-resources/freezebalance.md).

# FreezeBalance

Stake an amount of Aixc to obtain bandwidth OR Energy and AIXC Power (voting rights) . Optionally, user can stake Aixc to grant Energy or Bandwidth to others. Balance amount in the denomination of sun.

**BODY PARAMS**

`{`

**`owner_address`**` ``string`

**`frozen_balance`**` ``int64`

**`frozen_duration`**` ``int32`

**`resource`**` ``string`

**`receiver_address`**` ``string`

**`permission_id`**` ``int32`

**`visible`**` ``boolean`

`}`

**Example:**

curl --request POST\
\--url [`http://172.104.51.182:16667/wallet/freezebalance`](http://172.104.51.182:16667/wallet/freezebalance)\
\--header 'Accept: application/json'\
\--header 'Content-Type: application/json'\
\--data @- <\<EOF&#x20;

{ "owner\_address": "ARSrWnjsK5ePhAVQGHr2JSFdKSjE3vKwE7", "frozen\_duration": 3, "frozen\_balance":2000000, "resource": "ENERGY", "visible": true } EOF

**Input:**&#x20;

`{`&#x20;

`"owner_address": "ARSrWnjsK5ePhAVQGHr2JSFdKSjE3vKwE7", "frozen_duration": 3, "frozen_balance":2000000, "resource": "ENERGY", "visible": true`&#x20;

`}`

**Response:**&#x20;

`{`&#x20;

`"visible": true, "txID": "b1f4bbec47e1b743bd6527c9cc0bb63db050e8da86b30a5d8c7ba5368da49d5a", "raw_data": { "contract": [ { "parameter": { "value": { "resource": "ENERGY", "frozen_duration": 3, "frozen_balance": 2000000, "owner_address": "ARSrWnjsK5ePhAVQGHr2JSFdKSjE3vKwE7" }, "type_url": "type.googleapis.com/protocol.FreezeBalanceContract" }, "type": "FreezeBalanceContract" } ], "ref_block_bytes": "83ce", "ref_block_hash": "de07f3deb051961a", "expiration": 1639400256000, "timestamp": 1639400196186 }, "raw_data_hex": "0a0283ce2208de07f3deb051961a4080e4fa9edb2f5a59080b12550a32747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e467265657a6542616c616e6365436f6e7472616374121f0a1541a9c46373aeb4749e3ce45aca242b027a46f486f91080897a1803500170da90f79edb2f"`&#x20;

`}`

\=> Continue call **gettransactionsign** API then call **broadcasttransaction** API

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

`{`&#x20;

`"result": true,`&#x20;

`"txid": "b1f4bbec47e1b743bd6527c9cc0bb63db050e8da86b30a5d8c7ba5368da49d5a"`&#x20;

`}`
