Module Values.GetTokenBalanceInputSource

Gets the balance of a specific token, including native tokens, for a given address (wallet or contract) on the blockchain. Only the native tokens BTC and ETH, and the ERC-20, ERC-721, and ERC 1155 token standards are supported.

Sourcetype nonrec t = {
  1. tokenIdentifier : TokenIdentifier.t;
    (*

    The container for the identifier for the token, including the unique token ID and its blockchain network.

    *)
  2. ownerIdentifier : OwnerIdentifier.t;
    (*

    The container for the identifier for the owner.

    *)
  3. atBlockchainInstant : BlockchainInstant.t option;
    (*

    The time for when the TokenBalance is requested or the current time if a time is not provided in the request. This time will only be recorded up to the second.

    *)
}
Sourceval context_ : string
Sourceval make : ?atBlockchainInstant:??? -> tokenIdentifier:TokenIdentifier.t -> ownerIdentifier:OwnerIdentifier.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Enum of string | `String of ChainAddress.t | `Timestamp of Timestamp.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t