Appearance
Check Status and Metadata of Various Contracts
To check the status and metadata of various contracts, you can use the following methods:
SalesOrderContract
getStatus: Fetches the status of the sales order.
- Returns:
Promise<number>
- Returns:
getSalesOrderStatus: Retrieves the sales order status by mapping its numeric result to a status key.
- Returns:
Promise<string>
- Returns:
getDetails: Retrieves a detailed summary of the sales order, including its associated metadata and state.
- Returns:
Promise<SalesOrderDetails>
- Returns:
PaymentCommitmentContract
getStatus: Retrieves the current status of the entity.
- Returns:
Promise<string>
- Returns:
getDetails: Retrieves all relevant details of the payment commitment.
- Returns:
Promise<object>
- Returns:
TokenExchangeContract
- getDetails: Retrieves all relevant details of the token.
- Returns:
Promise<TokenExchangeDetails>
- Returns:
TradeTokenContract
- getDetails: Fetches all details of a Trade Token, including name, symbol, owner, decimals, total supply, balances, and attachments.
- Returns:
Promise<TradeTokenDetails>
- Returns:
These methods provide comprehensive information about the status and metadata of the respective contracts, allowing for effective management and interaction with the blockchain entities.