avm.getUTXOs

Returns the UTXOs of the specified address.

Parameters

  • addresses: array of strings

    • REQUIRED. A list of UTXOs such that each UTXO references at least one address in the list of addresses.
  • limit: integer

    • The limit of UTXOs to return. If the limit is omitted or greater than 1024, it is set to 1024.
  • startIndex: object

    • If startIndex is omitted, it will fetch all UTXOs up to the limit. When using pagination (i.e., when startIndex is provided), UTXOs are not guaranteed to be unique across multiple calls. A UTXO may appear in the result of the first call, and then again in the second call.
      • address: string
        • The address at the start index.
      • utxo: string
        • The utxo at the start index.
  • sourceChain: string

    • The ID or alias of the chain the asset is being imported from.
  • encoding: string

    • The format for the returned UTXOs. Can only be hex when a value is provided. Defaults to hex.

Returns

  • numFetched: Int

    • Number of UTXOs fetched.
  • utxos: array of strings

    • A list of UTXOs.
  • endIndex: Object

    • Denotes the last UTXO returned. To get the next set of UTXOs, use the value of endIndex as startIndex in the next call.
      • address: string
        • The address at the start index.
      • utxo: string
        • The UTXO at the start index.
Language
Authorization
Header
Click Try It! to start a request and see the response here!