# getAA(s)StateVars

Get state variables of an Autonomous Agent(s)

### Spec

```typescript
getAAStateVars(aa: string, startWith?: string, endWith?: string);
getAAsStateVars(aas: string[], startWith?: string, endWith?: string);
```



### Example

```javascript
await Client.getAAStateVars('7VW3WKTRDRI7DE6345LEN23C3FDUOT7H');
```

```javascript
await Client.getAAsStateVars(['7VW3WKTRDRI7DE6345LEN23C3FDUOT7H']);
```



### Response getAAStateVars

```json
{
  "adjustment_period": 345600,
  "asset_0SzqnsanCrfIbDq5lIzd1i3P8SY260x14P8Io4O+t/k=": {
    "a": 93680698.6552517,
    "creation_ts": 1705348726,
    "drift_rate": 0.01,
    "initial_price": 2840.71145328479,
    "last_buy": {
      "address": "EJC4A7WQGHEZEKW6RLO7F26SAR4LAQBU",
      "delta_s": 34752,
      "initial_p": 2486.46303763153,
      "tax": 6725909.71330605,
      "ts": 1705521116
    },
    "last_ts": 1705521116,
    "presale_amount": 600001000,
    "presale_finish_ts": 1706558326,
    "price_aa": "ENCHLNF5TH4XUJSQDTXFGAPTOQIYNG4J",
    "supply": 245967
  },
  "stakers_fee_share": 0.9,
  "staking_aa": "ZVKKTDYBRLFM5WXZZLVZ7T7MXOFGL5GD",
  "state": {
    "a0": 1.0010449239868,
    "asset0": "FPtxT1GPggcn025mDuC+EJz6gJqFAmSLUNajL1TX7/o=",
    "coef": 1.04441855195909,
    "last_buy": {
      "address": "EJC4A7WQGHEZEKW6RLO7F26SAR4LAQBU",
      "delta_s": 97613029,
      "initial_p": 1.02072465512887,
      "tax": 30790.9889875907,
      "ts": 1705518389
    },
    "reserve": 8774121410,
    "s0": 8052376083,
    "total_staker_fees": 22071982
  },
  "token_share_threshold": 0.15
}
```



### Response getAAsStateVars

```json
{
  "7VW3WKTRDRI7DE6345LEN23C3FDUOT7H": {
    "adjustment_period": 345600,
    "asset_0SzqnsanCrfIbDq5lIzd1i3P8SY260x14P8Io4O+t/k=": {
      "a": 93680698.6552517,
      "creation_ts": 1705348726,
      "drift_rate": 0.01,
      "initial_price": 2840.71145328479,
      "last_buy": {
        "address": "EJC4A7WQGHEZEKW6RLO7F26SAR4LAQBU",
        "delta_s": 34752,
        "initial_p": 2486.46303763153,
        "tax": 6725909.71330605,
        "ts": 1705521116
      },
      "last_ts": 1705521116,
      "presale_amount": 600001000,
      "presale_finish_ts": 1706558326,
      "price_aa": "ENCHLNF5TH4XUJSQDTXFGAPTOQIYNG4J",
      "supply": 245967
    },
    "stakers_fee_share": 0.9,
    "staking_aa": "ZVKKTDYBRLFM5WXZZLVZ7T7MXOFGL5GD",
    "state": {
      "a0": 1.0010449239868,
      "asset0": "FPtxT1GPggcn025mDuC+EJz6gJqFAmSLUNajL1TX7/o=",
      "coef": 1.04441855195909,
      "last_buy": {
        "address": "EJC4A7WQGHEZEKW6RLO7F26SAR4LAQBU",
        "delta_s": 97613029,
        "initial_p": 1.02072465512887,
        "tax": 30790.9889875907,
        "ts": 1705518389
      },
      "reserve": 8774121410,
      "s0": 8052376083,
      "total_staker_fees": 22071982
    },
    "token_share_threshold": 0.15
  }
}
```
