Appearance
Info about Token Exchange
You can retrieve a variety of information about a token exchange using the methods provided by the TokenExchangeContract
and TokenExchange1155Contract
classes. Here are the details you can access:
Refutation Details: You can retrieve the details of refutation events, including exchange refutations and refutation nullifications, using the
refutationDetails
method.Refutations Timeline: The
refutationsTimeline
method fetches the refutation timeline based onExchangeRefuted
andRefutationNullified
events.Balances: To check the balance of a specific address, you can use the
getBalance
method.Tokens Involved: The
getTokens
method fetches balances for all token ID and address pairs fromTransferSingle
andTransferBatch
events.Exchange Type: The
getExchangeType
method retrieves the current exchange type for the contract.Exchange Request Details: The
exchangeRequestDetail
method retrieves details of all completed exchange requests associated with the sales order.Owner Details: The
getOwner
method retrieves the owner details of the exchange.Base Token Information: The
getBaseTokenAddress
andgetBaseTokenId
methods retrieve the base token address and ID of the token exchange.Quote Token Information: The
getQuoteTokenAddress
andgetQuoteTokenId
methods retrieve the quote token address and ID.Exchange Ratio: The
getRatio
method retrieves the exchange ratio as a string.Exchange Window: The
getExchangeWindow
method retrieves the exchange window details of the token exchange.Refutation Window: The
getRefutationWindow
method retrieves the refutation window details of the exchange.URI: The
getUri
method retrieves the URI associated with the token exchange.General Details: The
getDetails
method retrieves all relevant details of the token exchange.
These methods provide comprehensive information about the token exchange, including its refutation details, balances, tokens involved, and other relevant parameters.