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

# Asset और Balance परिवर्तन

> Simulation API और Transaction Trace द्वारा लौटाए गए asset_changes ऑब्जेक्ट से टोकन डेटा और डॉलर मूल्य परिवर्तनों तक पहुँच प्राप्त करें।

RPC और API दोनों के simulation प्रतिक्रियाएँ, हुए asset और balance परिवर्तनों की जानकारी डॉलर मूल्यों में परिवर्तित करके प्रदान करती हैं। प्रदर्शित डॉलर मूल्य **वर्तमान डॉलर मूल्य** को दर्शाता है और [CoinGecko](https://www.coingecko.com/) से प्राप्त सबसे हालिया बाज़ार डेटा को प्रतिबिंबित करता है।

समर्थित टोकन मानक: **ERC20** और **ERC721**।

### RPC प्रतिक्रिया

Asset और balance परिवर्तन हमेशा प्रतिक्रिया के हिस्से के रूप में लौटाए जाते हैं जब आप `tenderly_simulateTransaction` (single simulation) और `tenderly_simulateBundle` (bundled simulations) दोनों RPC विधियों को कॉल करते हैं। देखें [RPC Reference](/node-rpc/rpc-reference)।

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
https://mainnet.gateway.tenderly.co/${TENDERLY_NODE_ACCESS_KEY}
```

इस जानकारी तक पहुँचने के लिए इन पथों का अनुसरण करें:

* **Asset Changes**: `result.assetChanges` के अंतर्गत देखें। यह ट्रांज़ैक्शन के दौरान असेट्स कैसे बदले या स्थानांतरित हुए, इसका विवरण प्रदान करेगा।
* **Balance Changes**: इन्हें `result.balanceChanges` के अंतर्गत खोजें। यह टोकन और डॉलर मूल्यों में बैलेंस के उतार-चढ़ाव के बारे में जानकारी देता है।

**उदाहरण प्रतिक्रिया**

```json title="example.json" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
{
  "assetChanges": [
    {
      "assetInfo": {
        "standard": "ERC20",
        "type": "Fungible",
        "contractAddress": "0xc02...c2",
        "symbol": "weth",
        "name": "WETH",
        "logo": "https://assets.coingecko.com/coins/images/2518/large/weth.webp?1696503332",
        "decimals": 18,
        "dollarValue": "2195.8701171875"
      },
      "type": "Transfer",
      "from": "0xd8...45",
      "to": "0x20...d6",
      "rawAmount": "0x1",
      "amount": "0.000000000000000001",
      "dollarValue": "10.0071875"
    }
  ],
  "balanceChanges": [
    {
      "address": "0x20...1d6",
      "dollarValue": "0.0000021958701171875",
      "transfers": [
        0
      ]
    },
    {
      "address": "0xd8...045",
      "dollarValue": "0.00021958701171875",
      "transfers": [
        0
      ]
    }
  ]
}
```

### API प्रतिक्रिया

Asset और balance परिवर्तन API प्रतिक्रिया के हिस्से के रूप में भी लौटाए जाते हैं जब आप `simulate` (single simulations) एंडपॉइंट को कॉल करते हैं:

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
https://api.tenderly.co/api/v1/account/${TENDERLY_ACCOUNT_SLUG}/project/${TENDERLY_PROJECT_SLUG}/simulate
```

और `simulate-bundle` (bundled simulations) एंडपॉइंट:

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
https://api.tenderly.co/api/v1/account/${TENDERLY_ACCOUNT_SLUG}/project/${TENDERLY_PROJECT_SLUG}/simulate-bundle
```

API प्रतिक्रिया में, संरचना समान रूप से सहज है:

* **Asset Changes**: `transaction.transaction_info.asset_changes` खोजें। यहाँ, आपको परिवर्तन के प्रकार (transfer, mint, burn), शामिल पते, और टोकन एवं इसके डॉलर मूल्य दोनों में राशि जैसे विवरण मिलेंगे।
* **Balance Changes**: `transaction.transaction_info.balance_changes` खोजें। यह अनुभाग आपको दिखाएगा कि ट्रांज़ैक्शन के परिणामस्वरूप टोकन और डॉलर के संदर्भ में बैलेंस कैसे बदले हैं।

**उदाहरण प्रतिक्रिया**

```json title="example.json" showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
{
  "asset_changes": [
    {
      "token_info": {
        "standard": "ERC20",
        "type": "Fungible",
        "contract_address": "0xc02...c2",
        "symbol": "weth",
        "name": "WETH",
        "logo": "https://assets.coingecko.com/coins/images/2518/large/weth.webp?1696503332",
        "decimals": 18,
        "dollar_value": "2195.8701171875"
      },
      "type": "Transfer",
      "from": "0xd8...045",
      "to": "0x20...d6",
      "amount": "0.000000000000000001",
      "raw_amount": "1",
      "dollar_value": "0.0000000000000021958701171875"
    }
  ],
  "balance_changes": [
    {
      "address": "0x20...d6",
      "dollar_value": "0.0000000000000021958701171875",
      "transfers": [
        0
      ]
    },
    {
      "address": "0xd...045",
      "dollar_value": "-0.0000000000000021958701171875",
      "transfers": [
        0
      ]
    }
  ]
}
```

अधिक जानकारी के लिए, [API reference](/api-reference) और [RPC references](/node-rpc/rpc-reference?network=ethereum-mainnet\&method=tenderly_simulateTransaction) देखें।
