> ## 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/delegateresource | TRON

> TRON API method that delegates resources to another account. wallet/delegateresource JSON-RPC method available on the TRON blockchain via Chainstack.

TRON API method that delegates resources to another account. This method allows you to delegate bandwidth or energy resources obtained from staking TRX to another address, enabling that address to use your resources for transactions.

## Parameters

* `owner_address` — the address that owns the resources to delegate (hex format)
* `receiver_address` — the address that will receive the delegated resources (hex format)
* `balance` — the amount of TRX equivalent resources to delegate (in sun)
* `resource` — the resource type to delegate ("BANDWIDTH" or "ENERGY")
* `lock` — optional boolean to lock the delegation (default: false)
* `lock_period` — optional lock period in seconds (if lock is true)
* `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 containing delegation contract details
* `raw_data_hex` — hexadecimal representation of raw transaction data

## Use case

The `wallet/delegateresource` method is used for:

* Sharing bandwidth or energy resources with other accounts that need them.
* Implementing resource rental or delegation services in DApps.
* Allowing users to sponsor transaction costs for other accounts.
* Building resource management systems that optimize usage across multiple addresses.


## OpenAPI

````yaml openapi/tron_node_api/delegateresource.json post /95e61622bf6a8af293978377718e3b77/wallet/delegateresource
openapi: 3.0.0
info:
  title: wallet/delegateresource TRON API
  version: 1.0.0
  description: Delegate resources to another account
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/delegateresource:
    post:
      tags:
        - Resource Management
      summary: wallet/delegateresource
      operationId: delegateResource
      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: 41e9d79cc47518930bc322d9bf7cddd260a0260a8d
                balance:
                  type: integer
                  default: 1000000
                resource:
                  type: string
                  enum:
                    - BANDWIDTH
                    - ENERGY
                  default: BANDWIDTH
                lock:
                  type: boolean
                  default: false
                lock_period:
                  type: integer
                  default: 0
                visible:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Resource delegation 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

````