> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# wallet/undelegateresource | TRON

> TRON API method that revokes delegated bandwidth or energy resources from another address. wallet/undelegateresource on TRON via Chainstack.

TRON API method that revokes delegated bandwidth or energy resources from another address. This method allows you to reclaim resources that were previously delegated to another account using `delegateresource`, making those resources available to your own account again.

## Parameters

* `owner_address` — the address that originally delegated the resources (hex format)
* `receiver_address` — the address that was receiving the delegated resources (hex format)
* `balance` — the amount of TRX worth of resources to undelegate (in sun, where 1 TRX = 1,000,000 sun)
* `resource` — the resource type to undelegate ("BANDWIDTH" or "ENERGY")
* `visible` — optional boolean to specify address format (default: false for hex format)

## Response

* `visible` — boolean indicating address format used
* `txID` — transaction ID hash
* `raw_data` — raw transaction data object
* `raw_data_hex` — hexadecimal representation of raw transaction data

## Use case

The `wallet/undelegateresource` method is used for:

* Reclaiming bandwidth or energy resources that were delegated to other accounts.
* Managing resource allocation when delegation is no longer needed.
* Redistributing resources between different accounts in your control.
* Optimizing resource utilization across multiple addresses.


## OpenAPI

````yaml openapi/tron_node_api/undelegateresource.json post /95e61622bf6a8af293978377718e3b77/wallet/undelegateresource
openapi: 3.0.0
info:
  title: wallet/undelegateresource TRON API
  version: 1.0.0
  description: Revoke delegated bandwidth or energy resources
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/undelegateresource:
    post:
      tags:
        - Resource Management
      summary: wallet/undelegateresource
      operationId: undelegateResource
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - owner_address
                - receiver_address
                - balance
                - resource
              properties:
                owner_address:
                  type: string
                  default: 41608f8da72479edc7dd921e4c30bb7e7cddbe722e
                receiver_address:
                  type: string
                  default: 41e552f6487585c2b58bc2c9bb4492bc1f17132cd0
                balance:
                  type: integer
                  default: 1000000
                resource:
                  type: string
                  enum:
                    - BANDWIDTH
                    - ENERGY
                  default: BANDWIDTH
                visible:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Undelegate resource transaction
          content:
            application/json:
              schema:
                type: object
                properties:
                  visible:
                    type: boolean
                  txID:
                    type: string
                  raw_data:
                    type: object
                    properties:
                      contract:
                        type: array
                      ref_block_bytes:
                        type: string
                      ref_block_hash:
                        type: string
                      expiration:
                        type: integer
                      timestamp:
                        type: integer
                  raw_data_hex:
                    type: string

````