Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions vms/avm/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,11 @@ curl -X POST --data '{
}
```


### `avm.getAllBalances`

:::caution

<Callout type="warn">
Deprecated as of [**v1.9.12**](https://github.com/ava-labs/avalanchego/releases/tag/v1.9.12).

:::
</Callout>

Get the balances of all assets controlled by a given address.

Expand Down Expand Up @@ -254,8 +251,7 @@ avm.getAssetDescription({assetID: string}) -> {
of this asset are displayed as 10.0. If denomination is 2, 100 units of this asset are displays as
.100, etc.

:::note

<Callout type="note">
The AssetID for AVAX differs depending on the network you are on.

Mainnet: FvwEAhmxKfeiG8SnEvq42hc6whRyY3EFYAvebMqDNDGCgxN5Z
Expand All @@ -264,8 +260,7 @@ Testnet: U8iRqJoiJm8xZHAacmvYyZVwqQx6uDNtQeP3CQ6fcgQk3JqnK

For finding the `assetID` of other assets, this [info] might be useful.
Also, `avm.getUTXOs` returns the `assetID` in its output.

:::
</Callout>

**Example Call:**

Expand Down Expand Up @@ -297,11 +292,9 @@ curl -X POST --data '{

### `avm.getBalance`

:::caution

<Callout type="warn">
Deprecated as of [**v1.9.12**](https://github.com/ava-labs/avalanchego/releases/tag/v1.9.12).

:::
</Callout>

Get the balance of an asset controlled by a given address.

Expand Down Expand Up @@ -668,9 +661,9 @@ curl -X POST --data '{

### `avm.getTxStatus`

:::caution
<Callout type="warn">
Deprecated as of **v1.10.0**.
:::
</Callout>

Get the status of a transaction sent to the network.

Expand Down