Interface

TransactionResponse

TransactionResponse

Properties:
Name Type Attributes Description
transactionId number

The unique sequence ID of the transaction

assetType string <optional>

The unique sequence ID of the transaction

starkKey string

The stark key of the operator for the transaction

vaultId number

The unique vaultID to store the fund of the assets

transactionType TransactionType

Transaction type (DepositRequest/WithdrawalRequest/...)

transactionStatus TransactionStatus

Transaction status (Prepare / FailedGateway / Pending / Success / Failed)

quantizedAmount string

The quantized amount of tokens in the transaction

  • If token type is NFT (ERC721, MINTABLE_ERC721), quantizedAmount should always be 1
  • If token type is ETH / ERC20 (ERC20, MINTABLE_ERC20)
  • 1 - Converter for Quantized Amount: It is calculated based on standard rule: (amount * 10^18) / 10 ^ 10
  • 2 - The calculate rule is convert the pure amount of token to WEI (10^10), then devide it by 10^10 (QUANTUM number defined in platform)
createdAt number

The created time of the transaction

updatedAt number <optional>

THe last updated time of the transaction

assetId string <optional>

The hex string for the asset ID for the transaction

View Source types/MintTypes.ts, line 44